Skip to content

Frustrum culling with displacement issue #3026

@MileBoldi

Description

@MileBoldi

Release Type: Official Release

Version: 4.3.0.2507

Platform(s): Win

Describe the bug
When applying vertex displacement on a mesh (plane rn) it gets culled when the original mesh's bounding box gets outside of the view frustrum, adjusting the bounding box of the mesh from code doesnt seem seem to do anything.

To Reproduce

  1. Create a mesh (plane for ex)
  2. add a displacement map to it
  3. when the pivot of the mesh gets outside of the frustrum, the mesh gets culled, even when there are parts of it that are still visible (cuz of displacement)
  4. adjust the mesh's bounding box/sphere so it fits the modified mesh
    issue persists
    EDIT:
    the reason for 4. not working could be this part
Image

another solution would be adding a "bypass culling" bool in the render object class, and reading that in the visibility group etc.
(this is kinda whacky tho)

Expected behavior
I thought adjusting the bounding box size to fit the modified mesh would keep it from getting culled.

Screenshots
If applicable, add screenshots to help explain your problem (use GitHub drag & drop)

Image Image

https://github.com/user-attachments/assets/47570e7b-0483-4cbe-b69b-57d552186866
(this is in the editor ik, but same thing happens in play mode too)

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