shadows of the household objects in gazebo
Hello, does anybody know how to spawn complex objects in gazebo and still render the shadows nicely?
I am using the meshes from the household database and spawning urdfs in gazebo. However, I get the following error:
gazebo: /tmp/buildd/ros-cturtle-visualization-common-1.2.0/debian/ros-cturtle-
visualization-common/opt/ros/cturtle/stacks/visualization_common/ogre/build
/ogre_src_v1-7-1/OgreMain/src/OgreShadowCaster.cpp:348:
virtual void Ogre::ShadowCaster::generateShadowVolume(Ogre::EdgeData*, const
Ogre::HardwareIndexBufferSharedPtr&, const Ogre::Light*,
std::vector<Ogre::ShadowRenderable*, Ogre::STLAllocator<Ogre::ShadowRenderable*,
Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0u> > >&, long unsigned int): Assertion
`numIndices <= indexBuffer->getNumIndexes() && "Index buffer overrun while generating
shadow volume!! " "You must increase the size of the shadow index buffer."' failed.
[gazebo-1] process has died [pid 2190, exit code -6].
log files: /afs/athena.mit.edu/user/m/i/mitko/.ros/log/7bb452c2-ad85-11e0-9e9f-0025900a1f7d
/gazebo-1*.log
By asking around I found that if I turn the shadows off in the world file this is fixed (and it is- I tried), but then the rendering is quite ugly and I actually need the rendering to be good (in order to export some videos). Does anybody know how I can increase the shadow index buffer, or use different shadowing technique? I tried:
<shadowTechnique>textureAdditive</shadowTechnique>
but the error persists.
Also, any ideas if I can turn the shadows off of only the household objects?
Thank you.