Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Draw a plane with a texture...


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 WeNeedFocus   Members   -  Reputation: 154

Like
0Likes
Like

Posted 02 March 2013 - 10:31 AM

I've done some searching on this, but it seems Xna wasn't built for 3D, but there are workaround.

 

The problem is I can't find a simple tutorial on how to draw only one plane with a texture. All the tutorials have to be complicated 3Dmodels.

Help?



Sponsor:

#2 CC Ricers   Members   -  Reputation: 652

Like
0Likes
Like

Posted 02 March 2013 - 02:49 PM

With most code I've seen, people write their own simple class for rendering quads for planes. You have a method for setting the plane dimensions and the texture, another one for updating the vertices, and one to draw the quad. Here's a tutorial with an example.
 


My development blog: Electronic Meteor

#3 Andy474   Members   -  Reputation: 690

Like
0Likes
Like

Posted 02 March 2013 - 04:48 PM

but it seems Xna wasn't built for 3D

 umm yes it is :P

 

your best bet will be to follow a tutorial such as this: http://www.riemers.net/eng/Tutorials/XNA/Csharp/series1.php

 

and learn to draw using VertextPositionColors or your own custom structure.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS