The Mouse is a very important tool for viewer models and objects in 3D. Watch this video and learn how to handle mouse events in OpenGL and Pygame.
This Video is the third part of our Advanced python Project: "STL Viewer in Python".
🔗 Script found on my -more than sometimes used- GitHub: https://github.com/Younes-Toumi/YoutubeChannel/tree/main/STL%20Viewer%20in%20Python
In this video, you'll learn:
🔹 The Basic transformation including glRotate, glTranslate & glScale.
🔹 Handling Basic 2D & 3D transformation with the Mouse.
If you have any questions or suggestions, feel free to leave them in the comments section below.
Enjoy 🐍
[🖥️] GitHub Link: https://github.com/Younes-Toumi
[💼] LinkedIn Link: https://www.linkedin.com/in/younes-abdeldjalil-toumi-334b29207/
[🐍] Check out my Python Simulation Playlist: https://www.youtube.com/playlist?list=PLuhnI_TPaiGDuTuoxqkG4ayAXIf7mV7Sm
Outline of the video:
0:00 - Introduction
0:51 - Displaying a centred triangle
3:31- Basic Transformations in OpenGL
7:01 - Handling mouse Events for 2D triangles
12:25 - Handling mouse Events for the STL file