Jump to content
  • Advertisement
Sign in to follow this  
ProgrammerDX

SetTransform

This topic is 2916 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

Is it possible that instead of using SetTransform on the device, you do the vertex manipulation yourself?

I'm looking at an old (3D) game made with DirectX 6 and noticed it never uses SetTransform (except once for D3DTS_PROJECTION at the initD3D phase), which was the reason I ask this question. (I dont have the source code, I'm looking with an assembler)

Share this post


Link to post
Share on other sites
Advertisement
Yes, it's entirely possible. Although modern games won't do it, because it's almost always faster to do the vertex transformation on the GPU, or to let Direct3D do it if your GPU doesn't support hardware vertex transform (Pre GeForce 2 era).

Share this post


Link to post
Share on other sites
Quote:
Original post by ProgrammerDX
Alright Thanks.

So the GPU will do the actual transformation later, interesting.
Yes. if you're using Direct3D 7 or below you need to create a TnLHAL device to tell the GPU to do the vertex transform, on DX8+ it's done if you create a device with the D3DCREATE_HARDWARE_VERTEXPROCESSING flag (Or D3DCREATE_MIXED_VERTEXPROCESSING).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!