Archived

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

T&L in DX7

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

Don't you just tell DirectX that you want a T&L HAL, not just HAL device when you enumerate them? I think you can specify this in D3DXCreateContext() in the deviceIndex member with enum value D3DX_HWLEVEL_TL. Just a thought.

Share this post


Link to post
Share on other sites
You will have to use DirectX7's own transforming engine. (Do not transform and light the vertices on your own). Then you will be able to use H T&L by enumerating your GeForce card.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
what's the dx7 transforming eengine and where in the sdk is it?

Share this post


Link to post
Share on other sites
You set the TransformStates(World,View,Matrix) by using the IDirect3DDevice::SetTransform()-function. When you set these states DirectX performs the transformation for you. You just have to change the matrices and not all vertices.

Share this post


Link to post
Share on other sites
how do I have to perform the matrixtransformation to benefit from hardware t&l in future cards like geforce? does the class D3DXMatrixStack this job (e.g D3DMatrixStack::Rotate())? Has sb already tested this on a geforce?

Share this post


Link to post
Share on other sites