MVP is a methodology for showing the vertices in a comfortable way to present the object's local coorinates, camera, and perspective.
MVP is a methodology for showing the vertices in a comfortable way to present the object's local coorinates, camera, and perspective.<br/>
In this tutorial, you can get the knowledge of what Model-View-Projection is, how to express different objects differently, and how to show the camera's view.
Explanation
...
...
@@ -23,11 +22,15 @@ Next, , you can see the matrix for vertix translation using ranging inputs at th
</div>
You can see the change of the screen using these inputs and move the object and view point using different types of translations. <br/>
The only object you can move in the world coordinate is the cube object which is in the middle.
The only object you can move in the world coordinate is the cube object which is in the middle. <br/>
<br/>
Using the inputs on the left side, we can control the position and rotation of the cube object. Using the right side inputs, we can control the position and rotation of the camera. <br/>
During the changing input, we can see the change of the Model and View matrices on the top-right side. The Projection matrix is fixed.
Code
============
Finally, you can check the code in the WebGLHelloAPI.js, setCamera, drawcube functions to check how to differently implement the objects and camera.
Finally, you can check the code in the WebGLHelloAPI.js, setCamera, drawcube functions to check how to implement the objects and camera differently.