Gazebo | Ignition | Community
Ask Your Question

Exclude everything except specific models from simulated camera rendering

asked 2016-01-10 04:05:02 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi guys,

is it possible to exclude distinct parts of the scene graph, only for the simulated camera? I want to use both, the typical gzclient for visualization as well as a simulated camera which only renders models, i have defined a priori. I've seen, that there is something similar with the SkyX moon and clouds visualization. They seem to be de-activated during the rendering of the simulated camera view:

// Disable clouds and moon on server side until fixed and also to improve performance this->scene->SetSkyXMode(rendering::Scene::GZ_SKYX_ALL & ~rendering::Scene::GZ_SKYX_CLOUDS & ~rendering::Scene::GZ_SKYX_MOON);

Is it possible to do this for

  • ground color
  • models, like the ground plane e.g.,
  • sky color gradient ?

With best regards,


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-01-11 12:25:39 -0500

chapulina gravatar image

For the models you don't want to see, you might be able to do it by setting their visibility flag to GZ_VISIBILITY_GUI. This is how we keep things like joint visuals from showing up on cameras.

edit flag offensive delete link more


This seems to be an approach for models, but how to exclude the ground color (not ground plane) and the sky from rendering?

VehS gravatar imageVehS ( 2016-01-11 12:49:10 -0500 )edit

I'm not sure what you mean by the ground color, The default ground plane on Gazebo is a model like any other. I don't know if a straight forward solution for the sky, maybe you can disable it completely and change the background color?

chapulina gravatar imagechapulina ( 2016-01-11 12:57:21 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-01-10 04:05:02 -0500

Seen: 306 times

Last updated: Jan 11 '16