bevy/examples/3d
Rob Parrett 61a3494a06 Add 3d shapes example (#4613)
# Objective

- As requested here: https://github.com/bevyengine/bevy/pull/4520#issuecomment-1109302039
- Make it easier to spot issues with built-in shapes

## Solution

https://user-images.githubusercontent.com/200550/165624709-c40dfe7e-0e1e-4bd3-ae52-8ae66888c171.mp4

- Add an example showcasing the built-in 3d shapes with lighting/shadows
- Rotate objects in such a way that all faces are seen by the camera
- Add a UV debug texture

## Discussion

I'm not sure if this is what @alice-i-cecile had in mind, but I adapted the little "torus playground" from the issue linked above to include all built-in shapes.

This exact arrangement might not be particularly scalable if many more shapes are added. Maybe a slow camera pan, or cycling with the keyboard or on a timer, or a sidebar with buttons would work better. If one of the latter options is used, options for showing wireframes or computed flat normals might add some additional utility.

Ideally, I think we'd have a better way of visualizing normals.

Happy to rework this or close it if there's not a consensus around it being useful.
2022-05-02 13:20:56 +00:00
..
3d_scene.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
lighting.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
load_gltf.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
msaa.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
orthographic.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
parenting.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
pbr.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
render_to_texture.rs Render to texture example: No need to create an image handle manually. (#4223) 2022-03-16 01:53:04 +00:00
shadow_biases.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
shadow_caster_receiver.rs ParamSet for conflicting SystemParam:s (#2765) 2022-03-29 23:39:38 +00:00
shapes.rs Add 3d shapes example (#4613) 2022-05-02 13:20:56 +00:00
spherical_area_lights.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
texture.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
two_passes.rs Add infallible resource getters for WorldCell (#4104) 2022-04-25 23:19:13 +00:00
update_gltf_scene.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
wireframe.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00