| Poster | : YoYoFreakCJ | | Posts | : 22 | | Country | : Germany | | City | : around Stuttgart |
| | | | Posted by YoYoFreakCJ on 05/12/2008 at 19:50:57
| | Hi everybody
I already did some stuff with XNA, with much help from Riemers, but also by myself. My understanding was as following:
To draw 2D stuff, you only need Textures. They only have an X and Y coordinate. Now to show 3D stuff, you would need a camera and a viewport which will be talked about later in the tutorials here. But til now I thought that you have to have a 3D camera before you can display anything at all. So what is going on here? Don't you need a camera at all in XNA to draw something? Was this only in MDX? Or is this because of the effect by Riemers? This is the big question I'm asking myself [and you guys now] during this chapter.
Props,
CJ | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 06/12/2008 at 04:07:56
| | there is a camera the default one
wich is Matrix.Identity | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1388 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 06/12/2008 at 06:11:19
| | Ways to render 2D stuff to the screen in XNA:
- Simply using the SpriteBatch class, as shown in the 2D series
- More advanced: using triangles, defining only X and Y coordinates. Use the Pretransformed effect of series1
- Even more advanced: using a 3D camera. this allows you to add 3D objects. See 3D Series 1
Ways to render 3D stuff in XNA:
- using a 3D camera. See 3D Series 1 | |
|
|