jogl and shader support

Hello,

can someone tell me , how i can bind a Cg and/or Ogsl vertex or fragment program to an jogl made application?

i have no clue , how i can do this, because i havn’t found tutorials about jogl and shader support.

???

thx

Hi
There is an example with cg shader in the jogl-demos package. It can be found here: https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=1700&expandFolder=1700&folderID=0

// Gregof

Ok, i have seen the example before, but the example didn’t work, i think its because i have nvidia Cg Version 1.3 installed , and jogl doesn’t support it yet.

so i will reinstall Version 1.21 , i hope that it will work then.

And what is with the OGLSL support for jogl? how can i start a jogl based application with ogsl shader ?

thx

Have a read of any of the basic GLSL tutorials or get hold of the Orange Book. Both have plenty of examples on how to get GLSL running.

yes i will buy it, but my question is : how can i run OgSL Shaders UNDER JOGL?

The answer is still the same - the same way that you run them with a C-based API. Those books will tell you how to do it in C, now just put a gl. in front of the function call and your code will run exactly the same.