Jump to content
  • Advertisement
Sign in to follow this  
xynapse

Light issue.

This topic is 3251 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Damn, never experienced it before. I set a light with:
;

x=1;
glLightfv(GL_LIGHT1+x, GL_DIFFUSE,LIGHT[x].colours);
glLightf(GL_LIGHT1+x,  GL_LINEAR_ATTENUATION,LIGHT[x].linear); 
glLightfv(GL_LIGHT1+x, GL_POSITION,LIGHT[x].position);
glLightfv(GL_LIGHT1+x, GL_SPOT_DIRECTION,LIGHT[x].direction ); 		
glEnable(GL_LIGHT1+x);




attenuation=1; colors{100,0,0}; position{0,10,0}; direction(0,0,0}; And when seen, it acts very strange. It is placed in one position above players head, but when i rotate the camera around it 'gets translated' ? Or it is a mistification i see...
>Lights problem YT I am wondering, why do i have an issue with that light - when i do not update it's possition?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!