Jump to content
  • Advertisement
Sign in to follow this  
Zernin

SetTransform and DrawIndexedPrimitive

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

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