gz-rendering icon indicating copy to clipboard operation
gz-rendering copied to clipboard

Point lights do not respect the material's cast shadows property (ogre2)

Open iche033 opened this issue 1 year ago • 0 comments

Environment

  • OS Version: Ubuntu 22.04

  • Source or binary build? Source, Harmonic, gz-sim8 branch.

  • If this is a GUI or sensor rendering bug, describe your GPU and rendering system. Otherwise delete this section.

    • Rendering plugin: [ogre2].

Description

  • Expected behavior: Point light should not cast shadows on objects that has a material with CastShadows set to false
  • Actual behavior: Point light ignores cast shadows property.

Steps to reproduce

With gz-sim,

  1. gz sim -v 4 shapes.sdf
  2. Add a point light using the GUI (via the Lights GUI plugin if not already open)
  3. Click on the point light, go to the component inspector and set Range to 10 and toggle Cast shadows to true.
  4. Click on rotate icon in the transform control tool and select the box to see that the rotate visual casts shadows:

Output

point_light_cast_shadows

iche033 avatar Sep 22 '23 23:09 iche033