Problems with materials not lit when using xeffects

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
aheymann
Posts: 153
Joined: Wed Aug 22, 2007 12:25 pm
Location: England

Problems with materials not lit when using xeffects

Post by aheymann »

SORRY - I posted in wrong thread - can it moved please!

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();               
Screenshots : http://www.cad-essence.com/genes1s/noshadows.JPG

http://www.cad-essence.com/genes1s/shadows.JPG. You will notice that all the windows/roof are now black.

Thanks

Anton
Post Reply