behold - trackball rotation!!
it was super fun implementing this, had to properly learn a few quaternion things I was only vaguely aware of before!
=> More informations about this toot | More toots from acegikmo@mastodon.social
@acegikmo Oh hell yes.
(Love it for viewport control too, but I know that's... eh... contentious. 😆)
=> More informations about this toot | More toots from joshuaelliott@mastodon.social
@acegikmo I think quaternians are fun, they also make my head hurt. Long time ago I made a earth and sun 3d model. The earth rotated on its axis and orbited the Sun. The viewer could start on the surface and see date and time appropriate light/shadows. Could rise up and still traverse a virtual shell of the surface or change to a view from the elliptic and traverse a shell around the orbiting and spinning earth.
=> More informations about this toot | More toots from stepheneb@ruby.social
@stepheneb @acegikmo you may want to look into the geometric algebra approach. It boils down to the same calculations for the most part, but with a much more sensible formalism (at least IMO).
=> More informations about this toot | More toots from oblomov@sociale.network
@acegikmo Very cool, thanks for showing us.
=> More informations about this toot | More toots from aarbrk@mstdn.mx
@acegikmo sweet :)
(quaternions are awesome)
=> More informations about this toot | More toots from re@fuzzies.wtf
@acegikmo
Next step (?)
A popular interaction is:
When the mouse is within the ball, the trackball rotation is active (as in your demo)
When the mouse is out of the ball, activate a planar rotation: axis is screen ortho and through the ball center
=> More informations about this toot | More toots from BabareTheTerrible@mastodon.social
@BabareTheTerrible that's already implemented, it's the outer ring!
=> More informations about this toot | More toots from acegikmo@mastodon.social
@acegikmo
great
😀
=> More informations about this toot | More toots from BabareTheTerrible@mastodon.social
@acegikmo Back in the day I would render the rotation quaternion during the mouseDown to show what the change would be in case they wanted to cancel out of it.
=> More informations about this toot | More toots from alexr@mastodon.online
@acegikmo
I remember doing something similar a long time ago. Rotation (especially screen space) was quite tricky to get to work in a way a user expects. Good job.
=> More informations about this toot | More toots from Fr4nz@mastodon.gamedev.place This content has been proxied by September (3851b).Proxy Information
text/gemini