Closed franklinblanco closed 8 months ago
I would guess that this is due to your camera now having both of these components:
Projection
(You're inserting this)
PerspectiveProjection
(Part of Camera3dBundle
, and still holding the default projection)
Could you try modifying your code to instead insert
Projection::from(PerspectiveProjection {
fov: 60.0_f32.to_radians(),
near: 0.001,
..Default::default()
})
Bevy's handling of these components is a bit awkward.
Related issue: #11807
@rparrett Thank you for the reply. Currently testing to see if it happens again. If I don't see it in a couple of days I'll let you know and close this. Thank you!
I think this is enough time. This fixed the issue for me. If I encounter it again I'll reopen. Thank you very much!
Bevy version
0.12
Relevant system information
cargo 1.77.0-nightly (1ae631085 2024-01-17)
AdapterInfo { name: "Apple M1 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
What you did
Nothing specific. This bug just happens randomly, approximately 1/12-1/20 times I start a bevy app.
What went wrong
When starting the app, the camera seems to be culling meshes near the edges of the screen. I can't seem to fix this issue by resizing the window or doing anything really, I just have to restart the App.
https://github.com/bevyengine/bevy/assets/72827992/ef3b6de8-e0d9-4ba9-94b6-809f9ccbcedb
Additional information
Camera setup: