-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed
Milestone
Description
Description
Good news guys, I'm finding all the TSL edge-cases 😂. Custom Geometry with MorphAttributes causes some edge-case error with InstancedMesh.
Big Error loop from the renderer once the instancedMesh is added to scene.
SES_UNHANDLED_REJECTION: TypeError: sphere is undefined
copy three.core.js:10141
computeBoundingSphere three.core.js:25482
....
SES_UNCAUGHT_EXCEPTION: TypeError: geometry.boundingSphere is undefined
_projectObject three.webgpu.js:52789
_projectObject three.webgpu.js:52847
_projectObject three.webgpu.js:52847
_renderScene three.webgpu.js:51553
render three.webgpu.js:51338
....
Reproduction steps
- Created several geometries from scratch using a catmull3 and TubeGeometry
- Created a combined root geometry with two morphTargets.
- Created a dummy-mesh for InstancedMesh() generation.
- WebGPURenderer Crashes out if instancedMesh is added.
Not doing anything drastically different from the instancingMorph webGPU example. Edge-case vibes IMO.
Code
All the really relevant code is in the fiddle. Notable we only crashout if the instancedMesh is added to the scene, the root mesh can be added on it's own and everything renders fine.
// SEE HERE!!!
// We crashout if we add the instancedMesh
// Works fine if we only add the dummy Mesh
// (dummy mesh is used for construction of the InstancedMesh)
scene.add(instancedM)
//scene.add(dummy)Live example
https://jsfiddle.net/s6ado1g9/1/
Screenshots
This is what the core-mesh looks like. It's a hopf fibration with morphtargets for different states.

Version
r176
Device
Desktop
Browser
Firefox, Chrome
OS
MacOS
Metadata
Metadata
Assignees
Labels
No labels