Hallo
Please see two screenshots of a model with and without shadowing. Any mesh that does not have texture on it (e.g. just a normal material e.g. diffuse colour) turns black, when running via the update function. When it is displayed normally e.g. smgr->drawall, the materials are the correct colours (obviously no shadows).
What can be causing this?
Here is a code snippet
Code: Select all
if (Device.ShowShadows(pDwg))
{
Device.effects->update();
//Device.driver->draw2DImage(Device.effects->getShadowMapTexture(),position2d<s32>(0,0));
}
else
smgr->drawAll();
http://www.cad-essence.com/genes1s/shadows.JPG. You will notice that all the windows/roof are now black.
Thanks
Anton