Skip to content

WebGPURenderer: Geometry transformations are broken at large scales #30955

@gkjohnson

Description

@gkjohnson

Description

When rendering objects at a large distance from the origin in WebGPURenderer the transformations are choppy and imprecise. There are no issues with WebGLRenderer. My assumption is that the model * view transformation is being performed on the GPU vs CPU, as is done with WebGLRenderer.

Related to NASA-AMMOS/3DTilesRendererJS#1079

Reproduction steps

  1. Render objects with transformations that are far from the origin.
  2. Notice incorrect, jittery transformations.
  3. Notice that animations look correct with WebGLRenderer.

Code

// positions the whole scene very far from the origin
scene.position
  .set( 1, 1, 1 )
  .multiplyScalar( 1e8 );

Live example

https://jsfiddle.net/1z9wjtk0/2/

Replace WebGPURenderer with WebGLRenderer in the above demo to see the difference.

Screenshots

No response

Version

175

Device

No response

Browser

No response

OS

No response

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