gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.15k stars 477 forks source link

Limiting the region in the scenario where the fog is active #2266

Open osrf-migration opened 7 years ago

osrf-migration commented 7 years ago

Original report (archived issue) by Musa Morena Marcusso Manhães (Bitbucket: musamanhaes).

The original report had attachments: Screenshot from 2017-05-04 10-20-31.png, Screenshot from 2017-05-04 10-24-45.png, Screenshot from 2017-05-04 10-25-54.png


Hello, I've have been working with underwater robotics simulation on Gazebo and one of the challenges is how to make the world more realistic. To simulate the water turbidity I tried using the fog from Gazebo, but I would like to have it only underwater. Is it possible to set the region where the fog should be generated?

osrf-migration commented 7 years ago

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


Currently we don't support setting the fog bounding box. Fog is normally a visual effect applied to the camera viewport and not tied to a 3D space in the world. You would need to look into writing your own shaders and setting them as the visual material for the underwater model to achieve the desired effect.

osrf-migration commented 7 years ago

Original comment by Musa Morena Marcusso Manhães (Bitbucket: musamanhaes).


I thought so. We have been applying the shaders to generate waves on the water surface and it works fine. I will look into shaders for fog and floating particles. Thanks for the information!