Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera culls 3D model too early #8461

Closed
Shatur opened this issue Apr 22, 2023 · 3 comments
Closed

Camera culls 3D model too early #8461

Shatur opened this issue Apr 22, 2023 · 3 comments
Labels
A-Animation Make things move and change over time A-Math Fundamental domain-agnostic mathematical operations A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior

Comments

@Shatur
Copy link
Contributor

Shatur commented Apr 22, 2023

Bevy version

0.10.1

What you did

I downloaded character model from Mixamo in FBX format and re-exported it to GLTF using Blender. I spawned a model and move my camera closer to it.

What went wrong

The model looks okay, but it disappears even if the camera is farther away than the default near in projection settings (10 cm).

Additional information

Looks like happens only with this model. Other models that I create in Blender works just fine.
Minimal project to reproduce: bevy_camera_bug.zip
Screenshots:
изображение
изображение

@Shatur Shatur added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Apr 22, 2023
@nicopap
Copy link
Contributor

nicopap commented Apr 22, 2023

I think I found the issue. The model is weirdly backed. Try deleting the skeleton in blender and see that the "original" model is actually a very different shape than the T-pose.

The bounding box doesn't match the visible model, and bevy thinks the model is not visible.

currently bevy doesn't handle well bounding boxes of animated stuff.

related:

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen A-Math Fundamental domain-agnostic mathematical operations A-Animation Make things move and change over time and removed S-Needs-Triage This issue needs to be labelled labels Apr 22, 2023
@alice-i-cecile
Copy link
Member

I think this is a duplicarte of #4971, which is easier to understand and address.

@Shatur
Copy link
Contributor Author

Shatur commented Apr 22, 2023

Thanks, you are right closing as a duplicate.

@Shatur Shatur closed this as completed Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Animation Make things move and change over time A-Math Fundamental domain-agnostic mathematical operations A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

No branches or pull requests

3 participants