bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
34.98k stars 3.42k forks source link

Tracking issue: Amazing Gizmos #9400

Open nicopap opened 1 year ago

nicopap commented 1 year ago

This issue tracks the progress on Gizmo features

Contributing

Want to check off one of those checkboxes? Nothing easier!

  1. Open a feature request you can copy/paste the description if you feel lazy!
  2. Implement the feature and open a PR!

All related issues will be listed in this tracking issue.

The (IMO) easy ones

All features

Not sorted in any specific order:

brandon-reinhart commented 12 months ago

I'm now using gizmos extensively for debug visualizations.

Here's a +1 for filled shapes. One of my gizmos is visualizing a quadtree, another is the nav mesh (using the quadtree) and filled gizmos would let me make an Unreal-style navigable area preview. It works now, just not as easy to look at as it could be.

dmyyy commented 11 months ago

https://github.com/bevyengine/bevy/issues/9475 also seems relevant.

musjj commented 11 months ago

Could you also add regular and irregular polygons to the list of shapes?

nicopap commented 11 months ago

Could you also add regular and irregular polygons to the list of shapes?

I think it could be better expressed as "2D meshes". I'll reword the post to be more inclusive.

SIGSTACKFAULT commented 9 months ago

Text in 3d space: Gizmo should let print text in 3D games, may chose to keep the same size with distance or apply perspective.

Should have the choice between the text being billboarded or facing a specific direction

SIGSTACKFAULT commented 9 months ago

Could write a polyhedron function with a similar interface to OpenSCAD's polyhedron() function. And by being less strict about the faces argument (since we only actually care about edges) it would work for polygons too.

SIGSTACKFAULT commented 9 months ago

Under arrows, could you add "double-ended"? thought of it just now but i'll forget by the time i can do it

nicopap commented 9 months ago

I think passing a Mesh to the gizmos would be enough for the polyhedron API (it's listed in the issue as "3D Mesh")

Under arrows, could you add "double-ended"? thought of it just now but i'll forget by the time i can do it

Should have the choice between the text being billboarded or facing a specific direction

Added them!

SpecificProtagonist commented 8 months ago

Could you add "Compatibility with FixedUpdate"?

Jondolf commented 7 months ago

11072 technically addressed support for tons of new shapes:

They don't have their own gizmo methods (except ellipses), but work through the primitive_2d and primitive_3d methods.

musjj commented 7 months ago

Just asking, but does "Round joints" mean that you can have round corners for the gizmos? Would love to be able to draw rectangles, polygons, etc. with rounded corners.

nicopap commented 7 months ago

does "Round joints" mean that you can have round corners for the gizmos?

Not exactly. Try drawing a rectangle with the current gizmos and a large line width. You'll notice the corners are "cut". The joints would fill the corners. There are several ways to fill the corners, one of them is to fill it with a rounded shape, which we call "rounded joint".

_Ascreencap

musjj commented 7 months ago

Ah alright, thanks for the explanation. Should I make a new issue about this, or could this just be added to the list above?

nicopap commented 7 months ago

Well, there is "Rounded cuboid" but not "rounded arbitrary shapes" which seems to be a bit harder to implement. Though no reasons to add them to the wish list: added!

pablo-lua commented 6 months ago

I think we have to support a better way of using multiple windows with gizmos without having to create multiple configs for all windows

pablo-lua commented 6 months ago

Can you mark grid as resolved and add a sub-section "cubic grid"?

lynn-lumen commented 5 months ago

Can you mark 3d grid #12430, dotted lines #12394 and line joints as resolved please?

simbleau commented 4 months ago

Text gizmos... please

SIGSTACKFAULT commented 3 months ago

@nicopap double-ended can be ticked off. actually a good few can be ticked off. (unless i'm stupid and you're waiting for the features to actually ship)