This time we talked how we can render out a 2D image from the 3D shade.
we start form Model space change it to the World space where the object really are.
Then get it to the view space which means the camera view. It always facing forward, if we want to move it,We just change all the objects to the negative direction.
At last we change the view space to the project space. The project is a piece of paper which we put in front of our camera (wherever we want).
When we want to move our object we usually change the rotation first and then do the translation
To finish the assignment
First Add the Index Buffer into code just like the vertex Buffer, I just change the vertex Buffer code to Index Buffer's
Add Mesh and Camera files
Add transform_modelToWorld, transform_worldToView,transform_viewToProjected
This is screen-cut
updata



没有评论:
发表评论