Skip to content

Trasparency fluctuates per camera position #26221

@obsius

Description

@obsius

Description

This may be more of a "bug" in the migration guide from 151 -> 152 then the code itself, but in r152, the following change (and corresponding PR) are mentioned in the release notes:

Sort on bounding sphere center, not origin. https://github.com/mrdoob/three.js/pull/25913 (@donmccurdy)

What used to be stable sorting for transparency now fluctuates as the camera is rotated:

example

It's not immediately clear to me if this is a preexisting issue with my use of THREE.js now revealed, or if this is a known and intended consequence of the change. Is there something I should be doing to restore r151 and earlier behavior? Also, I think it would be beneficial to mention this new behavior in the migration guide to save others the trouble.

Thanks.

Reproduction steps

Update from r151 to 152.

Code

Concerning aforementioned PR.

Live example

See gif above.

Screenshots

No response

Version

152

Device

Desktop

Browser

Chrome

OS

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions