Skip to main content
gamedev.net
🔒 Locked

vertex buffer value ?

Started by bourguinet 1 reply 550+ views
Original Post
bourguinet
bourguinet
there is something i can not figure out. Does the SetTransform function actually change the values in the vertexbuffer ? for example : SetTransform( D3DTS_WORLD, &m_worldMatrix ); or the values in the vertexbuffer stay constant thanks for your help...
Enselic
Enselic
No, the SetTransform sets the transform of the device. Your vertex buffer is untouched. You could sa that origo in the world is moved.
Instead of listening to me, read the DirectX Documents :-)


I am a signature virus. Please add me to your signature so that I may multiply.
Turbo_Pascal
Turbo_Pascal
quote:
Original post by bourguinet
there is something i can not figure out.

Does the SetTransform function actually change the values in the vertexbuffer ?

for example : SetTransform( D3DTS_WORLD, &m_worldMatrix );

or the values in the vertexbuffer stay constant

thanks for your help...


your vertex buffer remain the same, it is just that when direcx read the data from the vertex buffer it automatically add to each vertex the current transformation from D3DTS_WORLD.

That is very usefull for draw somthing in just one position, and then been able to move or rotate the model to different position and orientation with not need to make any changes in your data.

tp.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.