gazebosim / gazebo-classic

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

Point and spot lights don't cast shadows #2083

Open osrf-migration opened 8 years ago

osrf-migration commented 8 years ago

Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


... but directional lights do

point

pointshadow2.png

spot

pointshadow.png

directional

directionalshadow.png

osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


This is on purpose. Refer to RTShaderSystem.cc::ApplyShadows. Changing this issue to a feature request.

osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


osrf-migration commented 8 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


I wonder if there's a nice way to make users aware of this limitation, maybe a warning we can print somewhere... Or always return false for Light::CastShadows according to the type, and also display it as false on the GUI...

osrf-migration commented 7 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


link to RTShaderSystem.cc::ApplyShadows

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Why is this on purpose? Is it a performance issue?

osrf-migration commented 6 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Question on Gazebo Answers:

http://answers.gazebosim.org/question/18079/model-doesnt-stop-light

osrf-migration commented 6 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


There's also this older one:

http://answers.gazebosim.org/question/15708/light-through-the-wall-in-a-custom-model/

osrf-migration commented 6 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Similar issue for Ignition Rendering: https://bitbucket.org/ignitionrobotics/ign-rendering/issues/32/point-and-spot-lights-dont-cast-shadows

osrf-migration commented 5 years ago

Original comment by Bruno Pereira (Bitbucket: brschettini).


Hello everyone,

I'm working on some simulations where shadows from the lights are somehow important. Do you have any perspective to finish this enhancement soon?

Just let me know if you need some help.

Thanks!

osrf-migration commented 5 years ago

Original comment by Achmad Fathoni (Bitbucket: achmad-fathoni).


In my case, directional light doesn’t cast shadow neither, maybe because I use Intel and AMD GPU. Is there any workaround? a plugin? I know Gazebo maintainer and developer are busy so I want to implement it myself, I just don’t know how.

osrf-migration commented 5 years ago

Original comment by Ahmad Faris Fachrurrobbi Silmy (Bitbucket: Ahmad Faris Fachrurrobbi Silmy).


Also happen to me, LUbuntu 18.04 Intel NUC7i5BNH. Gazebo installed from ros melodic package.