Conversation
|
The current docs, for reference https://docs.rs/bevy/latest/bevy/prelude/struct.Camera.html. I'm in favor of this direction. The important part is that the existing 2d/3D cameras are still called "cameras". |
|
I would like if we could also take this opportunity to rename the Camera::hdr field to something that doesn't imply HDR output to an HDR monitor. |
|
@cart may or may not have thoughts on this based on the discussions around splitting and/or renaming Personally, I would be in favor of the rename. I think |
Agreed, a camera entity currently has multiple
To me Looking at the linked discussion, I don't think this change runs amok of Cart's reasoning - the fields are still monolithic and kept together, it's more about giving this a more accurate name for how it is already being used, and make it more obvious to newcomers how it is intended to be used. e..g if I start a new project and search for a |
|
The film analogy is 🤌 |
|
I don't outright hate it (as it does resolve the Camera vs Camera2d concerns), but I do have a number of sticking points that make it feel like a major downgrade to me:
To me, it seems like the right "conceptual framing" is for something that has If The concern that people will reach for an "empty" base |
|
Thanks for the great explanation! How would you prefer to see this resolved? Professionals buy a camera expecting to also need to give it a lens, so how do we create that expectation for |
|
I think the "warning light" should be a "warning log entry". |
|
triage: Has merge conflicts, received SME feedback. Probably needs to be closed and converted into a discussion where the design can be further discussed. |
I'm sure this will be controversial, but I wanted to start a discussion with a concrete first step.
There are other things to rename to be consistent, but rather than do everything at once, I've started very small.
Rough proposal on discord: https://discord.com/channels/691052431525675048/743663673393938453/1300556420881846323
Discord thread converted to issue: #16249
Related to #16247
Objective
Cameraa more accurate name. Reading the docs and fields, this is what the component is for. The colloquial usage ofCamerais more appropriate for our existingCamera3dorCamera2d, which split out of the oldCamerastruct, if I recall correctly.Cameraas the common component to reason about where pointers are on screen. This is misleading, becauseCamerahas nothing to do with 3d (although it still retains transforms, maybe erroneously). The reason picking uses this component is because aCamera, orRenderSurfacejust defines:RenderSurfaces to the render targetRenderSurface(Camera) is to define how to composite layers of 2d images onto a target.RenderSurface.Solution
Migration Guide
CameratoRenderSurface.