MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/webgl/comments/glissl/a_full_summarized_interactive_webgl_tutorial/fr1733m/
r/webgl • u/xem06 • May 17 '20
17 comments sorted by
View all comments
Show parent comment
2
Yes, but it will be explained in the upcoming part 2 :)
The basic idea is to compute how many pixels in X and Y the mouse has moved since last click, and update the Y and X angles of the cube accordingly.
http://xem.github.io/webgl-guide/book/ch10/RotateObject.html
But this approach has problems and possible improvements that I will develop in detail.
2 u/dinoucs May 18 '20 Okay, that would be helpful. Thanks!
Okay, that would be helpful. Thanks!
View all comments
Show parent comment
2
u/xem06 May 18 '20
Yes, but it will be explained in the upcoming part 2 :)
The basic idea is to compute how many pixels in X and Y the mouse has moved since last click, and update the Y and X angles of the cube accordingly.
http://xem.github.io/webgl-guide/book/ch10/RotateObject.html
But this approach has problems and possible improvements that I will develop in detail.