Skip to main content
gamedev.net
🔒 Locked

SetTransform

Started by ProgrammerDX Sep 27, 2010 at 5:56 AM 2 replies 1k views
Original Post
ProgrammerDX
ProgrammerDX
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)
Evil Steve
Evil Steve
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).
ProgrammerDX
ProgrammerDX
Alright Thanks.

So the GPU will do the actual transformation later, interesting.
Evil Steve
Evil Steve
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).

Topic Locked

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

Sign in to reply to this topic.