Jump to content
  • Advertisement
Sign in to follow this  

Light issue.

This topic is 3339 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:

glLightfv(GL_LIGHT1+x, GL_DIFFUSE,LIGHT[x].colours);
glLightfv(GL_LIGHT1+x, GL_POSITION,LIGHT[x].position);
glLightfv(GL_LIGHT1+x, GL_SPOT_DIRECTION,LIGHT[x].direction ); 		

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
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!