# lighting issues....

## Recommended Posts

adam17    227
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
drawModel

now when i do drawscene() this way, i get the weird lighting
updatePlayerPosition
drawModel

//within my drawModel function
positionALLlights
enableLighting
drawPolygonsAndTextures

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

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account

## Sign in

Already have an account? Sign in here.

Sign In Now