PDA

View Full Version : nv_fragment_program inside arb_fragment program



Yuri Kryachko
01-15-2004, 06:53 AM
As I know, there is a hack, thats allows
to pass NV_fragment_program as ARB.
Is that true?

A've compiled my program with cg -fp30 profile and pass result listing.
"!!FP1.0
....
# NV_fragment_program generated by NVIDIA Cg compiler
"
The when the shader need not a constants
all works ok. But when shader use constants they always zero((
Constants passed bu using
glProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_ ARB, n, f4);
and for the test
glProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_ NV, n, f4);
But result is the same!
Help me please!

jeremyz
01-15-2004, 09:51 AM
What card and driver are you using? If you're
using an nVidia card with an older driver,
you might want to update your driver. I think
there was a bug a while ago where
glProgramLocalParameter4fvARB was broken.

Zengar
01-15-2004, 10:14 AM
You can pass NV programs as ARB, it works - but don't rely an that!
But I don't know about parameters. I guess you should still use gl..parameter..nv

Yuri Kryachko
01-16-2004, 12:39 AM
Originally posted by jeremyz:
What card and driver are you using? If you're
using an nVidia card with an older driver,
you might want to update your driver. I think
there was a bug a while ago where
glProgramLocalParameter4fvARB was broken.


53.03 or 45.33