Jump to content
  • Advertisement
Sign in to follow this  

lighting issues....

This topic is 4806 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

in my program i am having problems with the lighting. if i place the lights statically/hardcoded i have no issues. if i load the lighting data from my ASE file this is where i start having issues. its the same problem everyone has seen before at one time or another. the lights move with the camera (gluLookAt()). here is a simple psuedocode of my drawscene() with hardcoded lights:
updatePlayerPosition() //gluLookAt
refreshLighting //i restate the position and the diffuse colors
now when i do drawscene() this way, i get the weird lighting

//within my drawModel function
i have tried switching the positionALLlights to the end of drawModel but i still get the same problem. any ideas? btw i have searched gamedev and came up with nothing

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!