gz-rendering icon indicating copy to clipboard operation
gz-rendering copied to clipboard

Object visible with a camera but invisible in the 3D World

Open ahcorde opened this issue 5 years ago • 8 comments

Porting the ros_ign_gazebo_demos I found this issue. The cone is visible with the camera but it's invisible in the 3D world.

cone

I'm compiling from source dome.

@iche033 or @chapulina any thoughts?

ahcorde avatar Jun 16 '20 07:06 ahcorde

Not sure. The world is sensors_demo.sdf from ign-gazebo right? I just tested that world in ign-gazebo2, 3, 4 but the cone is shown in both 3d window and sensors. Is it visible for you if you just launch the world using ign instead of ros2?

iche033 avatar Jun 16 '20 17:06 iche033

I am facing the same problem in Ubuntu 18.04 after installing dome from source and launching the world with ign gazebo.

I've also tried to launch some more models and it happens exactly the same. It seems that meshes in .obj like this one will work, but .dae or .stl like this one won't. This happens as well with models from YCB, where those formats are available for the same downloaded object.

mcres avatar Jun 29 '20 14:06 mcres

I can't reproduce this issue using ros_ign_gazebo_demos with:

  • Ubuntu Focal (Docker)
  • Either Citadel from debs or Dome from source
  • Foxy from debs

Do you see any errors / warnings when running verbose?

Also, when you expand the "Construction" entity on the tree, does it show that it has a visual?

chapulina avatar Jul 01 '20 21:07 chapulina

I don't see any errors or warnings related. The Construction entity does have a visual in the tree, but I can't see any difference between visuals of the different models when using the Component Inspector.

mcres avatar Jul 02 '20 07:07 mcres

Using this env variable fix the issue

export LC_NUMERIC="C"

can you confirm this @mcres ?

ahcorde avatar Sep 01 '20 13:09 ahcorde

export LC_NUMERIC="C"

Ohhhh locales strike back! Nice catch!

chapulina avatar Sep 01 '20 19:09 chapulina

should we need to add any reference to this issue in the installation guide or the troubleshooting sections?

ahcorde avatar Sep 02 '20 10:09 ahcorde

I think we should be able to fix this programmatically. Were you able to pin-point the place where the locale made a difference? Is is when parsing the COLLADA files, when loading them into rendering...?

chapulina avatar Sep 02 '20 18:09 chapulina