Skip to content

Postproduction styles PEN and PEN_SHADOWS reset runtime transformations applied via TransformControls #663

@JuanGCAD

Description

@JuanGCAD

Describe the bug 📝

When switching to the postproduction styles PEN or PEN_SHADOWS, any runtime transformation applied to a model using TransformControls is lost.
The model appears as if it was duplicated: one instance remains in the transformed position while the postproduction pass renders the element again in its original transform.
This causes a visual desynchronization between the scene state and the postproduction render output.

Expected behavior:
Postproduction styles should respect the current world matrices of transformed elements, or explicitly document that runtime transforms are not supported.

Actual behavior:
The postproduction pass re-renders the model using its initial transform, ignoring runtime modifications.

Components where this happens:
-Hider.
-Edit Elements.

Bug.mp4

Reproduction ▶️

No response

Steps to reproduce 🔢

  1. Load a model
  2. Apply TransformControls
  3. Switch the Postproductionrenderer to PEN or PEN SHADOWS

System Info 💻

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
    Memory: 16.28 GB / 31.81 GB
  Binaries:
    Node: 22.17.0 - D:\nodejs\node.EXE
    npm: 10.9.2 - D:\nodejs\npm.CMD
  Browsers:
    Chrome: 143.0.7499.170
    Edge: Chromium (140.0.3485.54)
    Internet Explorer: 11.0.19041.5794

Used Package Manager 📦

npm

Error Trace/Logs 📃

No response

Validations ✅

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
  • Check that this is a concrete bug. For Q&A join our Community.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions