with DeviceNull can't create shadows

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
wts
Posts: 5
Joined: Thu Nov 12, 2009 8:04 am

with DeviceNull can't create shadows

Post by wts »

Hi,
I noticed that node->addShadowVolumeSceneNode (shadowMesh) returns null if I use DeviceNull, is it correct?
I think that the node should be created even by the null device (like other nodes).
I'm using it for unit testing and it's useful that preserves the same behaviour of others devices.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The null device currently doesn't support stencil buffers, hence the shadow is not generated. This can also happen on other drivers if the current setup does not support stencils, so you probably want to cope with that anyway.
Post Reply