bevyengine / bevyengine/bevy

Add debug wireframe rendering for Aabb, Frustum, and Sphere

Open
#4,082 7 comments 6 reactions 0 assignees View on GitHub
A-Rendering A-Utils C-Feature C-Testing C-Usability
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?

Debugging intersections for the primitives currently used for culling for rendering is difficult without visualisation.

## What solution would you like?

Add debug wireframe rendering for Aabb, Frustum, and Sphere. Mesh types exist for all but Frustum so those should probably be reused, and then there will need to be a way to differentiate debug meshes and general meshes so that it doesn’t create a feedback loop of a mesh having an Aabb, with a debug mesh for the Aabb that itself gets an Aabb that gets a debug mesh…

## What alternative(s) have you considered?

None yet. Just noting that this would be good to do.

## Additional context

@aevyrie ’s bevy_mod_bounding has support for this already and there’s the primitive shapes RFC.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.