|
|
I am trying to integrate Cg into my Qt applications, but with very
little luck so far. Everything renders fine when using plain OpenGL
calls, but if I enable shaders and load the cg profile, I only get a
black render window. In the archives I found one thread on Cg and Qt,
but this one was left unanswered. So I was wondering whether someone
had some success in the meantime....
Yes, we have a simple "placeholder" case working as part of some new
product development here. If your shaders seem to be loading OK, try
changing the fragment shader to return a fixed color. This well let you
verify that the shader is getting loaded and called correctly. We had a
case where the specular and diffuse values were set to zero unexpectedly
in a shader that was known to be working and ended up with the dreaded
black render window. We have not yet figured out the problem, but
forcing these two values to 1.0 in the shader gave us a nicely rendered
object.
Regards,
August
---------
August Swanson Darkling Simulations
august@xxxxxxxxxxx www.darksim.com
On those stepping into rivers staying the same other and other waters flow.
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|