question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

InstancedMesh shadows are wrong

See original GitHub issue
Description of the problem

InstancedMesh shadows don’t show up correctly. It seems only one instance shadow is rendered always at the origin.

This online experiment shows the bug. Please look at the center of the tower to see the instance shadow: https://yomboprime.github.io/instancedBricks/examples/instancedBricks.html

Three.js version
  • Dev
Browser
  • All of them
OS
  • All of them

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
mrdoobcommented, Oct 3, 2019

I made sure shadows worked when implementing InstancedMesh, I’ll have a look.

1reaction
mrdoobcommented, Oct 8, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

InstancedMesh shadows not working - Questions - three.js forum
It seems shadows are not working for InstancedMesh. Only one instance shadow is rendered, at the origin. ... Issue: InstancedMesh shadows are wrong....
Read more >
Shadows rendering incorrectly (displaced) with Instanced ...
Hi all, I'm using a Blueprint class to generate a random maze. It has two instanced static mesh components, Floor and Walls, that...
Read more >
THREE.js instanced geometries shadows - CodePen
an example of using shadows with THREE.js instanced geometries...
Read more >
Raycasting with InstancedMesh, InstancedBufferGeometry ...
My guess is my matrix coordinate calculation method is wrong. ... to matrix to InstancedMesh instance, this is kind of like a shadow...
Read more >
Some instanced meshes receive shadow, but not all?
PG Description: All boxes are instanced meshes the source mesh is set to receive shadows, and each instanced mesh is a shadow caster....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found