I'm working on a mechanical simulation application using Ogre 1.9 in Windows, and have been experimenting with shadows. Since it's just a simulator, I don't need anything sophisticated, so I'm using SHADOWTYPE_STENCIL_ADDITIVE. That's to say, for my scene manager I call:
Code: Select all
m_ogreSceneManager->setShadowTechnique(Ogre::SHADOWTYPE_STENCIL_ADDITIVE);
Code: Select all
e->setCastShadows(true);
Has anybody come across this problem? Any idea how to fix it? My guess is that the problem is related to the way STL files only represent flat facets, with no sharing of vertices, and that means in effect that the meshes are full of tiny holes. On the other hand, I'm not sure how that would explain the effect I'm seeing.
All help much appreciated, thanks.
Andrew