Skip to content

My OpenGL solutions for INDI (EPSEVG) / IDI (FIB) at UPC. Study about OpenGL, an API for writing applications that produce 2D and 3D graphics. Code in GLSL and C++

Notifications You must be signed in to change notification settings

artHub-j/indi-opengl-full-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opengl-training

Activities Description
🗂 ACT1 Basic Transformations in XY axis and shaders.
🗂 ACT2 3D model, Camera Transformations and Euler Angles in XYZ axis.
🗂 ACT3 Phong Model, Multiple Light Focus and integration with Qt interfaces.
Activity Result Interaction Mouse/Keys

1

ACT1 Ⓒ: Crown Appears
Ⓒ: Red Striped shirt
Ⓡ: Rotate Y Axis

2

ACT2 : Move Euler Angles Camera
⇧: Move Morty Foward
⇩: Move Morty Backward
⇦: Rotate Morty 45° Y axis
⇨: Rotate Morty -45° Y axis
Ⓒ: Toggle Morty's 1st Person Cam/Euler Angles Cam
Ⓠ: Rotate Rick 45°
Ⓔ: Rotate Rick -45°
Ⓟ: Portal appears in front of him
Ⓟ: Close Portal in front of him.
Ⓡ: Restart Scene
▫ New Morty Appears if he walks through the portal

3

ACT3 Mouse/Keys
: Move Euler Angles Camera
Ⓦ/Ⓢ: Move active candle Up and Down
Ⓐ/Ⓓ: Move active candle Left and Right
Ⓣ: Toggle active candle
Ⓡ: Rotate active candle's Snitch

Qt Interfaces
▹ Radio Buttons: Toggle between left and right candle
▹ On/Off Button: Toggle On/Off Active candle focus light
▹ Dial: Modify Rotation Angle of active candle

Exams Folder Year
🗂 Exams/EXAM1 Examen OpenGL 2018-19
🗂 Exams/EXAM2 Examen OpenGL 2020-21
🗂 Exams/EXAM3 Examen OpenGL 2021-22
🗂 Exams/EXAM4 Examen OpenGL 2022-23
Exam Initial Scene Result Interaction Mouse/Keys

1

: Move Euler Angles Camera
(To do...)

2

: Move Euler Angles Camera
(To do...)

3

: Move Euler Angles Camera
(To do...)

4

: Move Euler Angles Camera
(To do...)

Previous steps and generation of executables

1. Installing Qt

Check if you already have a version of Qt installed:
qmake --version

If not, install Qt-5 using the following commands:

sudo apt-get install build-essential
sudo apt-get install qtcreator
sudo apt-get install qt5-default

2. Check OpenGL and install GLM (OpenGL Mathematics):

Install and validate that OpenGL is installed correctly in your graphics card's driver:

sudo apt install mesa-utils
glxinfo | grep -E "direct rendering|^OpenGL"

Your terminal output should be similar to this:

Then, install cmake (metacompiler), build-essential (package that includes the necessary to develop in C++)
and libglm-dev (GLM library):

sudo apt-get install cmake build-essential libglm-dev

3. Generate executables:

cd directory_act_ex/
qmake
make
./executable_name

About

My OpenGL solutions for INDI (EPSEVG) / IDI (FIB) at UPC. Study about OpenGL, an API for writing applications that produce 2D and 3D graphics. Code in GLSL and C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published