Shader Eclipse Plugin: Second Release (with GLSL)

I’m currently coding a cg Eclipse plugin in order to create, compile and edit the cg shaders inside the eclipse IDE.
Ritght now, the compiler and the editor is almost finished.

http://trevidos.free.fr/images/cgEditor.JPG

Some prefrences are ready:

http://trevidos.free.fr/images/cgPref.JPG

I have to work on new Project and New file action, in order to make it easier to use, but the first realesed will be on the week end.

if you are interessed to see and test it, send me an email trevidos@hotmail.com

Regards

Vincent Martinez aka Trevidos

I am glad to hear this since Eclipse is my favorite and only IDE :D… Good work!

Cool. :smiley:

Will it very hard to add GLSL support in the
editor? This will be very helpful for those who
do not use Cg, like me ;D

.rex

It’s not an hard work to add an editor or a compiler to eclipse, but it can be just a long work…
In order to add GLSL support, I need:

  • an GLSL compiler
  • the full keywords allowed for editor coloring.

Right now, I prefer first finish the Cg Editor (I work on auto-completion, boring work too…) and in a second pass, see GLSL.
If you have any docs, files… give it to me.

Just a question for the Cg users: do you want to keep the asm file generate by the compiler or no? For the moment, I just compile the cg code with -nocode options, because I never keep the asm file. What about you? Trevidos

GLSL’s compiler exists in the actual graphics drivers themselves, theres no build-time compilation step needed.

However 3dLabs have a ‘verifier’ available for free from their website. This is basically a compiler just for checking syntax, so that should be good enough. Not sure if it comes with source but it’s a command line tool so I suppose you could always parse the output.

That’s the way I do for cgc compiler. I only found the source code of the GLSL compiler, and I don’t have any C/C++ compiler. I’ve got only a 56k modem so I can’t download a full cygwin/gcc distribution for windows.
Someone can send me the compiler binarys please?

http://developer.3dlabs.com/downloads/glslvalidate/index.htm

CgPlugin for eclipse, first release:

DOWNLOAD:
http://trevidos.free.fr/cgPlugin/cgplugins.zip

DOCS:

download and unzip the plugin file into your eclipse’ plugin directory. Then, run eclipse.

To active the runtine compilation of the Cg file, you have to activate this mode via a new popupmenu on the project.

http://trevidos.free.fr/cgPlugin/cg%20doc/activeCgCompiler.JPG

Go into the eclipse preferences and find Cg Preferences. Set the location of your cgc file as:

http://trevidos.free.fr/cgPlugin/cg%20doc/cgCompilerPreferences.JPG

You can also change the editor prefrences:

http://trevidos.free.fr/cgPlugin/cg%20doc/cgEditorPreferences.JPG

After that, rename or create new cg file. To run properly the editor and the compiler, the vertex program files must have the “.vp” extension and the fragment program “.fp”
You can used new file command.

http://trevidos.free.fr/cgPlugin/cg%20doc/newCgFile.JPG

For any question and suggestion, send me an email at trevidos@hotmail.com.

In next release, I’ll try to add some cool features: auto-completion, auto-indent, GLSL support…

Very nice. :slight_smile:

* Markus_Persson holds breath for a glsl version.

  • face turns blue in anticipation for a GLSL version * ;D

A new version is released. It’s my buildnight version, but it seems to work enough to be distribute.
NEW
GLSL editor and Compiler. The support is made by using the 3DLab’s front end compiler. see 3Dlab web site for source.
You can download a binary version for windows here: http://trevidos.free.fr/cgPlugin/glslc.zip

The new plugin files are there:
http://trevidos.free.fr/cgPlugin/Shaderplugins.zip

As always, send me an email if you have question/suggestion.

Trevidos
PS:
Markus_Persson, rexguo, you can breath now!

Any chance you can make an eclipse update site for this rather than just providing the zip files? :wink:

404’d! Anyone got a working link?

I’m sorry, i didn’t post the new link.

First, the source code is released on sourceforge here: http://sourceforge.net/projects/glshaders/
You can get a zip version of the plugin.

For a web update version, add the site http://trevidos.free.fr/GLShaders to your eclipse update site.

Have fun

Trevidos