static shadow volumen ?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
User avatar
Kristian
Hobgoblin
Posts: 542
Joined: Sun Jan 12, 2003 7:35 pm
Location: Copenhagen, Denmark

static shadow volumen ?

Post by Kristian »

Hi,

I was wondering if it is possiblet to manually define a static shadow volumen space by some geometry and apply it to the world geometry which is affected by beeing part of the volumen. ( with the existing shadow system )

Regards
Kristian
Kristian, crying out loud: "If it works. Don't fix it!" :p
HCA
HCA2
GuppyLife

User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19265
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

Yes, you just have to implement custom ShadowCaster and ShadowRenderable classes. See how Entity does it - for your custom version you can precompute the shadow volumes and just store them if you know that neither the object, nor the light, are going to move.

Post Reply