Рет қаралды 3,721
In Episode #3 of Shaders Monthly, we introduce the OpenGL modelview matrix, which allows you to perform 3D transformations, such as translation, scaling, or rotation. We look into the mathematical theory of these transformations and implement the corresponding shaders in GLSL.
The implementation is based on the following example from episode #2:
www.gsn-lib.org/index.html#pr...
Here are the links to the resulting shader code:
GSN Composer: www.gsn-lib.org/index.html#pr...
C++: www.mathematik.uni-marburg.de...
Java: www.mathematik.uni-marburg.de...
00:00 Introduction
00:24 OpenGL Pipeline
02:16 Shader Implementation
05:45 Translation
10:11 Scaling
11:28 Rotation
14:09 3D Transformations in Projective Space
15:24 Transformation of the Camera
18:43 gluLookAt
23:50 Transformation of the Surface Normal
Music: Left U Into - Otis McDonald (KZbin Audio Library)