what am I doing wrong? (shading)

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
Rabid Mantis
Posts: 61
Joined: Sun May 08, 2005 11:30 am

what am I doing wrong? (shading)

Post by Rabid Mantis »

all of my character models work fine, but for some reason the ground isnt shading/lighting right. I don't need a full 3d environment for my game, so I just made a flat textured ground for my models to walk around on and cast shadows on.

All my models are .x format, and I use the same procedeure to load all my models, but for some reason my characters are shaded/lighted properly, but the ground only responds to ambient lighting. heres a screenshot:

http://rexxz.atrugod.com/lut/screen.JPG

I made sure my ground is loaded with:
ground->setMaterialType(video::EMT_SOLID);
ground->setMaterialFlag(video::EMF_LIGHTING, true);

I'm still learning irrlicht so I played around with different device parameters, but nothing seems to make any difference. any any idea what i could be forgetteng?
Post Reply