In this video we continue developing the 3D picking demo into something that allows us to move a selected object using the mouse. We do this using a purely math technique called Ray Casting. This video is part of my OpenGL series but since this technique is math-only you can easily adapt it to other APIs as well.
🔥 See the list of the books that I'm using as background information for my tutorials: https://ogldev.org/books.html. I highly recommend them for learning more about OpenGL and Vulkan. These are affiliate links so if you use them to buy any of the books the price is the same for you and I will get a small commission (thank-you!).
Background:
3D picking tutorial: • Selecting 3D Objects With The Mouse U...
Vertex pipeline finale: • Clipping And Viewport Mapping // Ope...
Perspective projection: • Perspective Projection - Part 1 // Op... (part 1), • Perspective Projection - Part 2 // O... (part 2)
Article by Anton Gerdelan: https://antongerdelan.net/opengl/rayc...
Video by ThinMatrix: • OpenGL 3D Game Tutorial 29: Mouse Pic...
Make sure to watch all the previous tutorials in the "OpenGL For Beginners" playlist at • OpenGL for Beginners
Please visit https://ogldev.org to see more of my tutorials on modern OpenGL.
Link to source: https://github.com/emeiri/ogldev/blob...
OpenGL 4.6 specification: https://www.khronos.org/registry/Open...
Email: [email protected]
Github: https://github.com/emeiri/ogldev.git
Twitter: @ogldev
TikTok: / ogldev
One time donations (Paypal): https://ogldev.org/donate.html
Patreon: / ogldev
Credits:
Sound effects - AllSounds (youtube)
Image by 1117826 from Pixabay
Image by Clker-Free-Vector-Images from Pixabay
Image by Larisa Koshkina from Pixabay
Image by Gordon Johnson from Pixabay
Music - "Positive Fuse" by French Muse (youtube audio library)
Feel free to comment below.
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials