Rotating an object with mouse in 3D WebGL - ProgrammingTIL #120 WebGL Tutorial Video Screencast 0063

preview_player
Показать описание
In this episode, I discuss how to rotate an object with the mouse in 3d space using the mouse in WebGL.

🤯 Support on Patreon

Concepts:
* Rotating in 3d with a mouse

Current Schedule:
Daily - React and/or WebGL

Resources:
Рекомендации по теме
Комментарии
Автор

Epic. I needed a rotation solution for my webgl project and your tutorial explained it in a few minutes. Good job!

TOminerTV
Автор

You're one of the few people making tutorials on WebGL, keep it up! Code looks very nicely structured.

eugene
Автор

i would also like to add a zoom effect, can it be done ?

cromartie
Автор

Thank you for the amazing content! Your tutorials are one of the best I've seen! I have a question regarding the rotation. If you flip the cube upside down, the x rotation also gets flipped. How do you fix that? Thank you!

sinefinehabitarevolo
Автор

This won't work! You will get a gimbal lock with this approach! Try and see for yourself. Rotate around y for 180 degrees then immediately rotate around x. You will see the problem.