Open osrf-migration opened 6 years ago
If the engines are similar enough, I could try to implement point light shadows like how I did here: https://github.com/osrf/gazebo/pull/3051.
That would be nice! ign-rendering
uses the same Ogre 1 version as Gazebo classic, so I think that it should be relatively straight-forward to port that implementation.
changes to the core classes should be straight forward to port. The demo world will likely have to live in ign-gazebo because ign-rendering does not support parsing sdf files.
I'll also see if I can get it working for Ogre2.
directional light and spot light shadows should be working in ogre2. However, there is an issue with having directional light and point light shadows enabled at the same time as found in https://github.com/ignitionrobotics/ign-gazebo/pull/587#issuecomment-769507138
Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).
Summary
All lights have the Light::SetCastShadow function, but it only works if the light type is directional.
Motivation
I noticed this while reviewing this Ign-Gazebo PR. The issue is analogous to Gazebo issue 2083.
Describe alternatives you've considered
Additional context
This blue spot light had shadows on: