-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Warn when no camera exists to render an object #1432
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
Comments
From a comment I left in #1440:
|
The same argument could be made for 2D render passes. But 3d has no "reasonable default", so it might make sense to warn if you try to draw a 3d object when there is no camera. |
Show a warning if meshes get rendererd without a camera. Fix: bevyengine#1432
Show a warning if meshes get rendered without a camera. Fix: bevyengine#1432
I am here because this issue is marked as a good first issue. However, related items indicate that this issue is possibly resolved. Is there any more work to be done here? |
Hrm 🤔 The associated PR was closed because it added a check on each frame. The goal is to achieve a warning without using a system. I'll take a poke around, see what the current state is, and whether there might be a semi-obvious solution in 2024. |
If it's taken 3 years and multiple attempts to fix I am forced to revise my estimation of difficulty upwards ;) |
Yeah, I'm gonna call defeat on this one until I am more of an "expert" (or less of an ignoramus!) |
What problem does this solve or what need does it fill?
Beginners commonly attempt to get started with adding 2D/3D/UI graphics, forget to add a camera, and then are confused when nothing appears.
What solution would you like?
Warn when no camera of the appropriate type exists.
What alternative(s) have you considered?
Improve documentation further, especially in the Bevy book.
Additional context
The exact timing / details of when this should trigger need some work by others who understand the rendering pipeline more clearly.
We should also be careful not to create unsilenceable warnings in cases where the lack of camera may actually be intended.
The text was updated successfully, but these errors were encountered: