Overexposed Meshes

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
riddler2006
Posts: 10
Joined: Thu May 24, 2007 3:42 pm

Overexposed Meshes

Post by riddler2006 »

Hi Guys,
u helped me out the last time (Thank u) and I hope u are able to do it once again. The problem is rather old and I found some Forum entries which deal with the same problem but unfortunately it won't help me cause I'm using Irllciht.Net.

My problem are complete overexposed Meshes; if I turn on the ligth and place a Light somewhere in the Scene.. my MD2 or .X Meshes will be totally black at first.. when I change the ratio just a little bit they are completely white.

my code;
ILightSceneNode m_LightSceneNode;
Vector3D m_Position = new Vector3D(10, 100, 10);

m_LightSceneNode = sceneManager.AddLightSceneNode(null, m_Position, n new Colorf(255.0f, 255.0f, 255.0f, 200), 250.0f, mID);

m_LightSceneNode.LightData.DiffuseColor.Set(255, 255, 255);


Another point is that if I set the ratio to 200 (for instance) my meshes are black... so i have to set it to 250.0f if u mind that it's too high
Mesh Normals are recalculated;

Thanx for help
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The problem is that the light attenuation factors are not correct. Have a quick look at this post.

Travis
Post Reply