-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Dedicated primitive example #11697
Dedicated primitive example #11697
Conversation
The generated |
1 similar comment
The generated |
138fa9f
to
879e2e5
Compare
For anyone reviewing this: Please note that I extracted a bugfix which was previously included. The polygon in 2D will be fixed. The bugfix can be found here f7473ec |
This is just a minor fix extracted from #11697 A logic error. We tried to close the polygon shape, if the user specifies an unclosed polygon. The closing linestring previously didn't close the polygon though, but instead added a zero length line at the last coordinate. Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
This is just a minor fix extracted from bevyengine#11697 A logic error. We tried to close the polygon shape, if the user specifies an unclosed polygon. The closing linestring previously didn't close the polygon though, but instead added a zero length line at the last coordinate. Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typos and naming nits
This is just a minor fix extracted from bevyengine#11697 A logic error. We tried to close the polygon shape, if the user specifies an unclosed polygon. The closing linestring previously didn't close the polygon though, but instead added a zero length line at the last coordinate. Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
c0a8faa
to
ce7954b
Compare
I'm not really sure how to do this (yet?). Somehow it's hard for me to position the text consistently between 2D and 3D views. On my screen it looked ok but I see that the current state won't work for everyone. If you have any ideas on how to resolve that, let me know. |
@Jondolf just addressed the last issue in my lunch break 👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bug with text not updating (see review comment below) and a few more nits, but otherwise the example looks good now!
It could be nice to show the active dimension with text too, but I won't block over that
28f3b73
to
b5617f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File name should be snake-cased, but otherwise LGTM
The generated |
2 similar comments
The generated |
The generated |
Meshing for most 3D primitives was added in #11688, so this example should probably be updated to reflect that |
fee8daa
to
bd8316d
Compare
@Jondolf done 👍🏼 |
This should also help users to check which primitives have rendering support already. Authored-by: RobWalt <robwalter96@gmail.com>
Authored-by: RobWalt <robwalter96@gmail.com>
superseded by dedicated example Authored-by: RobWalt <robwalter96@gmail.com>
Authored-by: RobWalt <robwalter96@gmail.com>
Authored-by: RobWalt <robwalter96@gmail.com>
Authored-by: RobWalt <robwalter96@gmail.com>
Authored-by: RobWalt <robwalter96@gmail.com>
Authored-by: RobWalt <robwalter96@gmail.com> Reviewed-by: Joona Aalto <jondolf.dev@gmail.com>
The issue was that, by default, only one camera renders the UI. This was defaulted to the 3D camera we spawned. A recently merged PR added the functionality to change which Camera UI Nodes are rendered on via a component. (`TargetCamera`) We use that here and it works. Thanks to @teodosin on discord helping me to find this out <3 Authored-by: RobWalt <robwalter96@gmail.com>
Authored-by: RobWalt <robwalter96@gmail.com> Reviewed-by: Joona Aalto <jondolf.dev@gmail.com>
Authored-by: Aviac <aviac@mailbox.org>
Authored-by: RobWalt <robwalter96@gmail.com>
Authored-by: Aviac <aviac@mailbox.org>
bd8316d
to
d773e15
Compare
I just implemented this to record a video for the new blog post, but I figured it would also make a good dedicated example. This also allows us to remove a lot of code from the 2d/3d gizmo examples since it supersedes this portion of code.
Depends on: #11699