PDA

View Full Version : Per Pixel Lightning : problem



Leyder Dylan
09-22-2002, 12:44 AM
Sorry to take the message from another forum but I don't know how can I insert some source code.

Here's my message :
http://www.flipcode.com/cgi-bin/msg.cgi?showThread=00006016&forum=3dtheory&id=-1

Thanks for you answers ...

Liquid
09-26-2002, 10:10 AM
SetupRegisterCombiners():

glCombinerParameterfvNV(GL_CONSTANT_COLOR0_NV, (float *) &light_color);

should be:

glCombinerParameterfvNV(GL_CONSTANT_COLOR0_NV, (float *) light_color);

No "&" infront of "light_color".
Perhaps this will work!?

SirKnight
09-26-2002, 10:12 AM
... but I don't know how can I insert some source code.


Check the FAQ for this discussion board on how to do things like that. http://www.opengl.org/discussion_boards/ubb/biggrin.gif

-SirKnight

Leyder Dylan
09-26-2002, 04:49 PM
Thanks for your help, the problem was coming from the blending, if you want to follow the full story, see :
http://www.gamedev.net/community/forums/topic.asp?whichpage=2&pagesize=20&topic_id=115412