As you know when we want to draw a three demensional object in DirectX we should define
a camera. Now we have a Device object that it’s name is ‘device1’.it is my question :
device1.View = Matrix.Look…(New Vector3(),New Vector3(),New Vector3());
Argument #3 is Up Vector. What does it exactly do?
As you know when we want to draw a three demensional object in DirectX
Share
As the name says, it defines in which direction “up” is. That’s quite an important thing. You need to know the position of the camera, you need to know which direction it’s facing, but you also need to know how it’s turned – i.e. what will be perceived as up and down, left and right.
In our real world, the “up” vector of our field of vision is (usually) implied by the field of gravity, i.e. it’s the reverse (up, not down!) of the vector of gravity exerted by Earth.