Join Pablo Colapinto for an in-depth discussion in this video Introducing matrix transformations, part of Learning OpenGL.
-So we have a coordinate system and we…understand that it's right handed,…the z-axis come out towards us.…So what is a matrix?…Well, we're not going to delve into the mathematics…of matrices in this course, except to explain…that we use them to calculate the final position…of a vertex on the screen.…In simple terms, a matrix is an array of numbers…that can be be multiplied by another array.…Think of the position of a single vertex as…an array of three numbers.…Well, what if we want to transform this position?…We multiply it by a matrix.…More specifically, in 3-D, we homogenize the…3-D position by adding a fourth coordinate with…a value of one.…
Then multiply it by a four by four matrix.…Going into why we need to homogenize the 3-D…position is out of the scope of this tutorial.…It helps to know why there are all these "Vec 4s"…flying around our code.…So what can we do with a matrix?…Well, we know we can transform vertex positions.…We can scale, rotate or translate them.…We can remap the vertex position to…a different coordinate system, say, relative to our eye.…
- 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" ..