Open hydrophis-spiralis opened 11 years ago
Can you give a link to a collada file that demonstrates this bug? I would like to fix it but my blender skills are almost non-existent.
Yes, here it is: http://ge.tt/6Atgb0p/v/0?c
Great, thanks for the file.
I think I may see the problem. I believe this line in the .dae file is ignored:
<extra><technique profile="MAYA"><double_sided>1</double_sided></technique></extra>
mesh_loader.cpp does a bunch of checking of amat->Get(AI_MATKEY_<stuff>, ...)
, but it does not check AI_MATKEY_TWOSIDED
which is mentioned on the assimp materials page: http://assimp.sourceforge.net/lib_html/materials.html .
So I think rviz needs to look for AI_MATKEY_TWOSIDED in mesh_loader.cpp and needs to call pass->setCullingMode(Ogre::CULL_NONE)
if it is there.
I don't have time to work on this just now, so I'm just recording this guess for now.
After blender mirror tool models, exported in collada, are being displayed with normals directed inside. I stuck into it while modelling palm part of robotic hand. What i did:
Right palm appeared as desired, but mirrored one appeared with wrong directed normals. Switching normals or normal recalculation in blender didnt work. p.s. not sure if it is rviz bug or blender.