Draw a plane with a texture...

Started by
1 comment, last by Andy474 11 years, 1 month ago

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?

Advertisement

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

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.

This topic is closed to new replies.

Advertisement