Wednesday, January 9, 2008

Shadows added


New screenshot of my engine where shadows were added.

Shadows techniques are cpu-expensive I will need to find how to limit them and make them lod dependent.

Any way it is progressing well.

2 comments:

Amir H. Fassihi said...

Nice, what kind of shadows are these?

Steven 'lazalong' Gay said...

The shadows techniques are those defined by the Ogre library.
The screenshot uses Ogre::SHADOWTYPE_STENCIL_MODULATIVE. Unfortunately it is the most expensive and it shows on the framerate... The most cpu friendly is SHADOWTYPE_TEXTURE_MODULATIVE but the result was not so crisp - hopefully I find a way to make it better with the texture technique.

You can find information and the techniques here:
http://www.ogre3d.org/wiki/index.php/HowTo_%28part_II%29#How_to_get_some_shadows_in_your_scene
http://www.ogre3d.org/wiki/index.php/Shadows
http://www.ogre3d.org/docs/manual/manual_67.html#SEC286