Gazebo | Ignition | Community
Ask Your Question
0

How to add light source in gazebo which gives shadows.

asked 2021-06-29 22:47:50 -0600

awh18 gravatar image

I want to create an indoor environment and hence need an indoor light source, I have tried out the led plugin, but it does not give out any shadows. I have tried out the directional lights, but it could not be contained inside the walls. Can you please guide me regarding this.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-07-05 23:58:05 -0600

Veerachart gravatar image

So far Gazebo's point & spot lights don't cast shadows yet. Only directional lights cast shadows and the size is infinitely large, with position doesn't give any difference. Recently I saw that there is some update in Gazebo 11 adding texture for spotlight shadow https://github.com/osrf/gazebo/pull/2914, but last time I tried it didn't cast shadows yet.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2021-06-29 22:47:50 -0600

Seen: 31 times

Last updated: Jul 05