Jump to content
  • Advertisement
Sign in to follow this  

[.net] untransformed triangle(XNA)

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

Hey guys, I have just barely started with XNA and I've already run into a little snag. I am following Riemers' tutorial and I am on the one where you draw a triangle with untransformed vertices via the "Colored" technique in the supplied .fx file. When I used the pretransformed technique with pretransformed vertices it worked perfectly but the untransformed way throws an InvalidOperationException on the call to DrawUserPrimitives() and I can't see to figure out why. The code i exactly as on Riemers' site, so I don't feel I need to post it, but here is a link to the code if you need to look at it. Thanks for the help. [Edited by - u235 on October 13, 2007 6:33:03 PM]

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!