Join Pablo Colapinto for an in-depth discussion in this video Working with the View matrix, part of Learning OpenGL.
- Let's take a look at what we can…accomplish by transforming our view matrix.…This is the matrix that takes our world space…coordinates and transforms them into…I-space coordinates, relative to a virtual camera.…On line 170 in our OnDraw function,…we use GLM vec 3 to specify an I-position…that's rotating around in space,…based on our increasing time counter,…so we have an X-position that's changing…with the cosine of the time, and a Z-position…that's changing with the sine of the time.…
They're scaled slightly differently.…In line 172, we feed this I-position,…which is a vec 3, into our GLM lookAT function.…Our target and our up direction remain the same.…The target's fixed at the origin and…our up direction is just pointing in the Y direction.…Our projective transformation is the same as before.…We feed these values to our shader.…On lines 185 to 206, we generate a bunch of triangles.…
Basically, we're defining a volume of triangles,…10 wide, 10 high, and 10 deep.…We create a translation vec 3 based on…the position in the array,…
- What is OpenGL?
- Setting up an OpenGL workflow
- Creating a window with GLFW
- Working with geometric primitives
- Rotating, translating, and scaling
- Understanding matrix transformations
- Creating mesh data structures
- Buffering mesh data
- Getting mouse and keyboard input
Skill Level Intermediate
Q: Why am I getting errors saying I don’t have GLEW installed when I try to create the Xcode projects with Cmake?
1) Download, Install, and Run Xcode
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install glew
./bootstrap && make && make install
brew install cmake
cd Exercise Filesmkdir xcodecd xcodecmake -G "Xcode" ..