Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Draw a plane with a texture...

4: Adsense

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   

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?



#2 CC Ricers   Members   

1491
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.
 


New game in progress: Project SeedWorld

My development blog: Electronic Meteor


#3 Andy474   Members   

694
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.