Force render?

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
gamebeavis
Posts: 12
Joined: Mon Jun 25, 2007 11:45 pm

Force render?

Post by gamebeavis »

I would like to use shadow volumes for my objects, but have a question about how they are rendered first. I know irrlicht uses bounding boxes to determine if an animatedscenenode is visible or not, and then culls the ones that are not. However, you can easily render a scene where the object is not visible but part of the shadow is. So, how does irrlicht handle cases like this? If I cant see an object, will I not see its shadow either? If so, is there a way to "force" irrlicht to render an object even if it isnt visible, thus casting a visible shadow...

Thank you.
gamebeavis
Posts: 12
Joined: Mon Jun 25, 2007 11:45 pm

Post by gamebeavis »

Ok, never mind. I did a test run and found that if a shadow comes into view and the object goes out of view the shadow does indeed stop, as well as if an object is not in view the shadow is never rendered to begin with. So culling dosnt take into account the objects shadow at all. BUT I did do a little digging and found a way to force the render of an object. Now all I have to do is figure out how to determine if an objects shadow is "likely" to be in view before the object is..... Oh what fun, lol.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You simply change the culling of the scene node. It's not really magic to keep a scene node visible...
Post Reply