Hi All!
I have problem with starting lerning Cg on a jogl…
Can anyone give simple example with using com.sun.opengl.cg library…
because i dont know how to set the profile and other fueteres :-\
I’m at the same point as you are. The jogl-demos contain two very simple cg-demos.
You have to download the cg-sdk from nvidia. In addtion you should put the dll-files (for windows) to the library path. After that you can run the demos.
Greets
Klemens
Saxer,
mm)) thanks…you are open my yeys
but if i true understand you…i must copy the librarys from C:\Program Files\NVIDIA Corporation\Cg\bin\ to folder where my jogl library???
you could simply copy the dll’s to the location where you stored your jogl-dlls. OR you can adjust you vm-settings with -Djava.library.path=""
no…no…thanks…will be better if i’m put it in directory with jogl
Another option would be to use GLSL instead of CG, since GLSL is the official OpenGL shader language.
cylab
my video card doesn’t support GLSL language :-…but have extension GL_ARB_vertex_program…and i dont want to write shader on assm ;D…in Cg this is a profile arbvp1 …
What card do you have. Sure it’s not a driver issue?
GeForce 4 mx440 :
Yes…i know …i want to buy new v.card e.t.c. but now i dont have any money resources do do it