Page 1 of 1

question about Irrlicht shadows.

Posted: Sat Feb 04, 2006 10:45 pm
by Rabid Mantis
In my scenes, I'm using .x models, and i know how to create lights and set the model material etc, but the models arent casting shadows on each other. Can irrlicht not do this yet or is there something special I need to do to cast shadows? I don't need to create a whole world for what i'm doing so i was just trying to make a flat .x plane as my ground.

Posted: Sun Feb 05, 2006 12:18 am
by AndyCR
see http://irrlicht.sourceforge.net/tut008.html , particularly:
anode->addShadowVolumeSceneNode();
replace anode with the name of your IAnimatedMeshSceneNode.

In addition, be sure that the 5th parameter of createDevice is true and not false.

Posted: Sun Feb 05, 2006 9:40 pm
by Rabid Mantis
thanks. guess I missed that one :oops:

Posted: Thu Feb 09, 2006 9:28 am
by Guest
me is having another question about shadow.

maybe you already notice the shadow bug which make your shadow to be drawn even behind the wall of a map.

so, i'd like to use another kind of shadow. i'd like to have a more or less black disc under my model and not to use the shadow volume.

the problem is that i don't know how could i do this.
any idea?