Search code examples
drake

Changing the sky background color


I want to change the background colour (default blue sky) for rendering. How would I go about doing this?

I'm using MakeRenderEngineGl for rendering.


Solution

  • You want to set the default_clear_color in the RenderEngineGlParams struct. See the C++ documentation or the python docs here.

    The term "clear color" is a term of art from OpenGl. It's what the buffer is "cleared" to before drawing. So, it is the "background" color.