Gazebo | Ignition | Community
Ask Your Question
1

Model doesn't stop light

asked 2017-12-11 06:21:43 -0600

this post is marked as community wiki

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

Hello community!

I'm building a gazebo track where I need the light from a light bulb (simulated as a white sphere with a pointlight) to be stopped by the model's wall so that way the light does not reach to other parts of the track. But, the light seems to go through the model's walls and reaches more zones than desired.

image description

In the image, we can see that light reaches the other end of the track. This happens becasue the light goes through the red wall, illuminates one side of the yellow wall and then goes through the yellow wall, reaching the other end. Also, notice that one side of the green wall -not visible in the image- is illuminated but the other side isn't, and the light still reaches outside the track.

Note: The pointlight is very close to the ground, so that discards that the problem is happening because the light illuminates the whole track from above. Note 2: Simulating with a spotlight seems to have no different effect.

So the question is, How can we stop the light from going through the wall so that way it doesn't reach the other part of the track? How can we make the lights stay trapped in the track's walls?

As always, thanks for your awsome help.

edit retag flag offensive close merge delete

Comments

Any help is appreciated :)

imstevenpm gravatar imageimstevenpm ( 2017-12-11 06:22:39 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-12-11 12:11:47 -0600

chapulina gravatar image

Unfortunately, it is a known issue that spot and point lights don't cast shadows, only directional lights do:

https://bitbucket.org/osrf/gazebo/iss...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-12-11 06:21:43 -0600

Seen: 866 times

Last updated: Dec 11 '17