Original Post
Hi!
I´ve got a problem with Jim´s lighting system. I can´t get any kind of light to work, only the ambient light.
I´ve loaded a x-file and checked the normals in my 3d-program. They are all pointing outwards.
What´s wrong?
Michael
// in BOOL cApp::Init() m_Graphics.EnableLighting(TRUE); m_Spot.SetRange(1000.0f); m_Spot.SetType(D3DLIGHT_POINT); m_Spot.SetDiffuseColor(50,230,90); m_Spot.SetAttenuation0(1.0f); m_Spot.SetAmbientColor(55,50,0); m_Spot.Move(-631.281f, 10.0f, -330.671f); m_Graphics.SetLight(0,&m_Spot); m_Graphics.EnableLight(0,TRUE);