Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Apr 24, 2025

Fixed #30987.

Description

As explained in #30987 (comment) the PR makes sure to use ShadowMaterial with plane geometries to avoid rendering issues.

@Mugen87 Mugen87 added this to the r177 milestone Apr 24, 2025
@WestLangley
Copy link
Collaborator

For testing: https://rawcdn.githack.com/Mugen87/three.js/dev5/examples/physics_rapier_instancing.html

Something seems to be wrong. The plane hides the scene when the camera is rotated to look from the bottom up.

Move the camera slowly. It only happens at certain angles.

@Mugen87
Copy link
Collaborator Author

Mugen87 commented Apr 24, 2025

I think the issue is that you see the collider cube. Let's fix this by making the mesh invisible.

@Mugen87 Mugen87 merged commit a3fe811 into mrdoob:dev Apr 24, 2025
11 checks passed
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
* Examples: Fix shadows in physics instancing demos.

* Clean up.
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
* Examples: Fix shadows in physics instancing demos.

* Clean up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

physics_rapier_instancing example has shadow rendering issues

2 participants