Skip to content

Instanced Mesh [TSL/WebGPU] - Crashout Inside WebGPURenderer Logic #31003

@Bug-Reaper

Description

@Bug-Reaper

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

  1. Created several geometries from scratch using a catmull3 and TubeGeometry
  2. Created a combined root geometry with two morphTargets.
  3. Created a dummy-mesh for InstancedMesh() generation.
  4. 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.
Image

Version

r176

Device

Desktop

Browser

Firefox, Chrome

OS

MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions