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

How can modify the code to achieve this scaling gizmo #303

Open
lungsdude opened this issue Jul 5, 2023 · 4 comments
Open

How can modify the code to achieve this scaling gizmo #303

lungsdude opened this issue Jul 5, 2023 · 4 comments

Comments

@lungsdude
Copy link

Hello, this is not actually an issue with the library, I just find the library to not be sutible for what I am trying to achieve.
The default scaling gizmo scales the model in 2 directions.
Brick-Stacker-OpenGL_2elXmeQSta
But this is the style of scale gizmo I want to achieve, where there are these sticks in 6 directions, and not only 3. Note that I am not aiming for copying the visual look, only the behaviour.
BrickBuilder_M7kbZEvgw0 (2) (2)
I don't ask for this to be implemented into the library itself, I am just a little bit confused about how to approach doing this.
In advance, thanks.

@CedricGuillemet
Copy link
Owner

gizmos are processed in 3 steps. For example, using scaling gizmo:

I suggest you to try to have the display correct with all the axis you need. then try to detect various hot areas for your gizmo. and at the end, compute the corresponding matrix.

@lungsdude
Copy link
Author

Ok, thanks, I'll tinker with it as soon as possible. 👍

@ddetone
Copy link

ddetone commented Feb 15, 2024

@lungsdude did you ever figure out how to do this? also curious

@lungsdude
Copy link
Author

@ddetone sadly I couldn't achieve anything, so I am stuck with default behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants