Join Pablo Colapinto for an in-depth discussion in this video Using Model, View, and Projection matrices, part of Learning OpenGL.
-We've seen how we can use a four by four matrix…to re-position our vertices so that they don't…stretch as we re-size our screen.…So what other things can we do with matrices?…Well, quite a lot.…The first thing we can do with them is take our local…vertex positions, we call that "local space,"…and put them in a world, which we call "world space."…We do that with the model transformation matrix.…Now, the model transformation matrix can…do three things to our vertices.…It can scale them, relative to the origin.…
It can rotate them, relative to the origin.…Or it can translate them, relative to the origin.…The order in which we do these three operations matters.…We always want to scale, then rotate, then translate.…The reason for this is because we're executing…these transformations relative to the origin.…If we were to translate first and then rotate,…we would get unexpected results.…With that in mind, we need to remember that the last…matrix to be multiplied is the first one to be applied.…
That means that if we want to generate a matrix…
- 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" ..