Jump to content
  • Advertisement


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


Matrix Operations not Being applied?

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

Dear all, I''m having trouble with SetTransform. I generate a view, world, and projection matrix, but when I render my test triangle, nothing changes. Seems like my matrix settings are not being applied. Anyone have any idea why they would be? I''m really not doing anything intresting, just rendering a triangle with a texture on it :-)... Jesse

Share this post

Link to post
Share on other sites
Are you using pre-transformed vertices (rhw)?

Well dont.


MSDN says:
If you include the D3DFVF_XYZRHW flag in your vertex format description, you are telling the system that your application is using transformed and lit vertices. This means that Microsoft® Direct3D® doesn''t transform your vertices with the world, view, or projection matrices, nor does it perform any lighting calculations. It assumes that your application has taken care of these steps. This fact makes transformed and lit vertices common when porting existing 3-D applications to Direct3D. In short, Direct3D does not modify transformed and lit vertices at all. It passes them directly to the driver to be rasterized.

Share this post

Link to post
Share on other sites

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