Hello, I tried a few snippets from here : http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Basic+Tutorial+2&structure=Tutorials#Using_Shadows_in_Ogre , but nothing casts the shadows except rat ? What it is ? In previous iterations I had no problems turning the shadows that way .
I do in void RenderManager::rrCreateRenderedMovableEntity(RenderedMovableEntity* renderedMovableEntity)
- {l Code}: {l Select All Code}
if(ent != nullptr)
ent->setCastShadows(true);
Do we want a shadowed version of OD or not ? I think the shadowed version looks much nicer.
BTW : what';s so special in that rat ?
EDIT : I of course enable it when the sceneManager is created :
- {l Code}: {l Select All Code}
mSceneMgr->setAmbientLight(Ogre::ColourValue(0, 0, 0));
mSceneMgr->setShadowTechnique(Ogre::SHADOWTYPE_STENCIL_ADDITIVE);