Gazebo | Ignition | Community
Ask Your Question

Remove the flaring edge of Moon/Earth in SkyX

asked 2015-04-09 15:13:00 -0500

IsaacS gravatar image

updated 2015-04-09 18:43:35 -0500

Using this pull request to gazebo_models and the suggestions there, we're now holding a moonlight earthlight party using Gazebo, by simply replacing SkyX_Moon.png with an earth image included in this PR.

tetris simulation with earth from the lunar surface

I think the flaring rim surrounding the earth was suitable for the moon seen from the earth, but not the other way round. Where should I edit SkyX to remove it? Thank you.

UPDATE: Thanks to @iche033's answer, we now enjoy even more serene moment.

earth w/o fragment

$ diff /usr/share/gazebo-2.2/media/skyx/ /usr/share/gazebo-2.2/media/skyx/SkyX_Moon.fragment
<   haloIntensity = pow(haloIntensity, uMoonPhase.z);
>   haloIntensity = pow(0.0, uMoonPhase.z);

Catch for me was that this .fragment file seems to not work right with some comment-out formats; I was trying to use # and it just didn't show the earth at all.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-04-09 16:22:24 -0500

iche033 gravatar image

try setting the haloIntensity to 0.0 in SkyX_Moon.fragment

edit flag offensive delete link more

answered 2015-04-10 02:17:02 -0500

Kei Okada gravatar image
edit flag offensive delete link more


No this question is about the "flaring" around the earth, not the clouds.

IsaacS gravatar imageIsaacS ( 2015-04-10 03:48:08 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-04-09 15:13:00 -0500

Seen: 432 times

Last updated: Apr 10 '15