artifacts when visualizing mesh with librviz
I'm working on a project in which we are trying to visualize large meshes with textures in a custom written app that uses librviz. When loading collada files that were downloaded from 3D Warehouse, we notice a few bad things that happen when visualizing them.
Specifically, we experienced two problems when visualizing this mesh:
- Some textures weren't loaded at all - After we downloaded it, we had to fix the .dae file so that librviz wouldn't crash because the image paths were wrong. First, we had to go change the file paths of the textures so that they were correct. Then we had change the filenames so they were case sensitive. At this point, we didn't get any errors or warnings from rviz (even with the rviz logger set to DEBUG).
- ex. Check out the cars in the images below.
- White "artifacts" when visualizing the mesh from some perspectives. If I were to move the camera around, the white lines would disappear in some areas and show up in other areas. It's difficult to find a perspective that makes them disappear.
- ex. Check out the white lines in the images below.
I've seen the very impressive gazebo worlds that the folks at OSRF made for the DRC, so I would bet it's either a problem in rviz that doesn't exist in gazebo OR I'm doing something wrong.
Any advice on how to make the meshes visualize properly from ALL perspectives and to make all of the textures load would be much appreciated.
(Please note that I really don't know much about 3D graphics in general.....so I use the term "artifacts" here because I hear people using it to describe a whole bunch of crap that happens when working with meshes. Please tell me if there is a real term that describes what we're seeing...)