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

Wireframe rendering & Debug lines #409

Closed
Neo-Zhixing opened this issue Sep 1, 2020 · 6 comments
Closed

Wireframe rendering & Debug lines #409

Neo-Zhixing opened this issue Sep 1, 2020 · 6 comments
Labels
A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible C-Usability A targeted quality-of-life change that makes Bevy easier to use

Comments

@Neo-Zhixing
Copy link
Contributor

While developing games, it would be tremendously helpful to have mesh wireframes & debug lines.

We should be able to enable wireframe rendering easily. In the mean time, there could be a separate DebugLinesComponent similar to Amethyst's implementation for drawing debug lines manually.

We should be able to mark the type of the debug line so that it is possible to enable or disable the rendering of a specific type of debug line globally.

@karroffel karroffel added C-Feature A new feature, making something new possible A-Rendering Drawing game state to the screen labels Sep 1, 2020
@verzuz
Copy link
Contributor

verzuz commented Sep 19, 2020

add polygon_mode: PolyonMode to RasterizationStateDescriptor to allow drawing wireframes 336d070b260591e546ad9372f6423e0be6afbe97
Commit date: 1 week ago (09.09.2020 21:34:37)
was added to wgpu https://github.com/gfx-rs/wgpu - we might use that?

@Neo-Zhixing
Copy link
Contributor Author

@verzuz This is great news! Yeah wgpu didn't allow us to set the ploygon mode, and it was a major blocker. Now that this was added we can start to look into wireframes and debug lines!

@Neo-Zhixing
Copy link
Contributor Author

blocked by #542

@alice-i-cecile
Copy link
Member

Nice functionality for debug lines currently exists in bevy_mod_raycast. This is a helpful stopgap, and worth looking at for when we want to include this functionality natively.

@alice-i-cecile alice-i-cecile added the C-Usability A targeted quality-of-life change that makes Bevy easier to use label Feb 17, 2021
@lassade
Copy link
Contributor

lassade commented Mar 7, 2021

Hey a bit of shameless self promotion I'm working on a crate to implement debug gizmos (bevy_gizmos)[https://github.com/lassade/bevy_gizmos] I got many features working as well as debug lines, thers also other crate liked in,

bevy_mod_raycast have debug lines?

@Neo-Zhixing
Copy link
Contributor Author

With #562 merged we can close this issue now. For debug lines they could be implemented in external packages. We can open a separate issue if we want debug lines in the core package as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible C-Usability A targeted quality-of-life change that makes Bevy easier to use
Projects
None yet
Development

No branches or pull requests

5 participants