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