Mesh disappearing/flickering
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version and features
bevy 0.17.2
default features + "bevy_dev_tools"
## Relevant system information
SystemInfo { os: "Windows 11 Home", kernel: "26100", cpu: "AMD Ryzen 7 9800X3D 8-Core Processor", core_count: "8", memory: "61.6 GiB" }
AdapterInfo { name: "NVIDIA GeForce RTX 2080 Ti", vendor: 4318, device: 7687, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "581.08", backend: Vulkan }
## What you did
Remeshed voxel chunks using surface nets, minimized/maximized window
## What went wrong
Meshes disappeared occasionally when minimizing/maximizing window, but also re-appeared sometimes after re-meshing or re-minimizing/maximizing.
I've also had cases where the camera looking away from the mesh made it disappear, however I have `NoFrustumCulling` on the meshes, and it seems to occur on all of my meshes at once.
## Additional information
They are all under a single parent, while the fence/other meshes are not, which makes me think it could potentially be something around visibility calculation on that?
edit: Doesn't seem like the issue is related to visibility or AABBs, unless the system is running on it regardless and mislabeling it:
This shows that Visibility::Visible and no AABB, just NoFrustumCulling still causes the issue:
edit: Limiting FPS to 60 also doesn't seem to fix the issue so probably not related to the much higher framerates.
Potentially related to https://github.com/bevyengine/bevy/issues/21631 issues
https://github.com/user-attachments/assets/eeee4800-f4e7-4ad2-a0c8-23085c306871
https://github.com/user-attachments/assets/ac8c79bb-7ba0-432c-88c6-d58d384256b7
Doesn't seem like the issue is related to visibility or AABBs, unless the system is running on it regardless and mislabeling it:
This shows that Visibility::Visible and no AABB, just NoFrustumCulling still causes the issue:
https://github.com/user-attachments/assets/e0c204c8-df56-404d-8f2c-fe1fb9d35c99
Contributor guide
Research direction
Start by reproducing the report on Bevy 0.17.2 with the stated Windows/Vulkan setup: remesh voxel chunks with surface nets, then minimize and maximize the window while observing meshes under one parent. Compare behavior with Visibility::Visible, NoFrustumCulling, and the camera-facing-away case; done means identifying a reliable cause and a verified fix or minimal reproduction. No source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100