Gazebo | Ignition | Community
Ask Your Question

Drop shadow not according to lightsources

asked 2018-02-08 04:27:36 -0600

Cesare gravatar image

updated 2018-02-09 03:56:30 -0600

I'm working with Apriltags in Gazebo and I'm having some lighting issues, the shadows don't respect the light source... or I'm just very noob, most likely.

Is currently selected the sun, as you see the cube drops the shadow in the wrong direction and there is no other light in the world :(

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-09 11:16:20 -0600

chapulina gravatar image

Besides a light's pose, they also have a direction property. Here's where it is defined for the sun.

Unfortunately, the direction is not reflected in the 3D green lines, nor it is displayed in the world tree. Basically, as a new user, you had no way of knowing it ;)

edit flag offensive delete link more


Hoo, I see... I assumed that the direction would have been derived from the position of the object in the scene, thank you ^_^

Cesare gravatar imageCesare ( 2018-02-21 03:45:37 -0600 )edit

The position of a directional light is not important, just its orientation. The position of a point light for example would matter.

chapulina gravatar imagechapulina ( 2018-02-21 16:34:14 -0600 )edit

Question Tools

1 follower


Asked: 2018-02-08 04:25:19 -0600

Seen: 578 times

Last updated: Feb 09 '18