Material Lighting

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
unclejoe
Posts: 10
Joined: Fri Mar 28, 2008 2:27 pm
Location: Europe

Material Lighting

Post by unclejoe »

Bonjour tout le monde! :D
I've been using Irrlicht for a while now, and i've made myself a shiny custom scene node!
Nothing more than a mesh pyramid with a nice texture on it in fact, but now i'm experimenting with light sources. I've set lighting to "true" in the material options for my pyramid, and I've added a simple white light source as the child of the camera, so you could say "hey, compañero, there's light coming out of the camera".
Well, it works quite good, better than I expected, but there's one strange little problem I can't explain: the part of the pyramid I'm looking at for the moment is highlighted, but soon as I get real, real close, the pyramid darkens again until it is a black object.
All material settings are normal and the light is no custom one, just the factory built-in ILightSceneNode (created by SceneManager->addLightSceneNode(cam).)
Is there anyone who knows what i'm doing wrong?
Post Reply