Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iche033 opened this issue Sep 22, 2023 · 0 comments
Open
Labels
bug Something isn't working ogre2.x

Comments

@iche033
Copy link
Contributor

iche033 commented Sep 22, 2023

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 iche033 added the bug Something isn't working label Sep 22, 2023
@iche033 iche033 changed the title Point lights do not respect the material's cast shadows property Point lights do not respect the material's cast shadows property (ogre2) Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ogre2.x
Projects
Status: To do
Development

No branches or pull requests

1 participant