Sign in to follow this  
Zernin

SetTransform and DrawIndexedPrimitive

Recommended Posts

Zernin    122
So I have set my view, projection, and world matrices with SetTransform. Next I am drawing from my index buffer with DrawIndexedPrimitive. The problem I am running into is anything I draw using DrawIndexedPrimitive is not being transformed before being drawn. To make sure my matrices are all valid I threw a teapot mesh into my scene, and that reacts as expected. What am I missing here?

Share this post


Link to post
Share on other sites
Formski    138
I can't say I've used the fixed function pipeline for a very long time (read 3 years) but from what I can remember the vertex declaration (or FvF) you use will have an effect on whether they are transformed or not.

The other option is colour/lighting, especially if you are using the Direct3D lighting pipeline.

Have you tried the Pix debugger to see what the output is?

Formski

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this