Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Drath

Translating a XYZRHW vertex

This topic is 5675 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I set the transform settings to translate a XYZRHW vertex? I tried: D3DXMATRIX wld; D3DXMatrixTranslation(&wld, 200.0f, 200.0f, 0.0f); g_Graphics.GetDeviceCOM()->SetTransform(D3DTS_WORLD, &wld); but it has no effect. I don''t want to actually modify the vertex and I don''t need a vertex shader example for I can already do that. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
The problem is that an xyzrhw IS a transformed vertex, this is that the vertex position is the final position on screen, you have to use a xyz vertex to translate it with matrix calculation

If God with me, Who against me?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!