Difference between revisions of "Game Programming Class12"
(→DealLines) |
(→Billboards) |
||
Line 9: | Line 9: | ||
<html> | <html> | ||
<a href="http://creators.xna.com/en-US/sample/3daudio"> | <a href="http://creators.xna.com/en-US/sample/3daudio"> | ||
− | <img src="http://creators.xna.com/assets/cms/images/XNA_Audio3D_02_small.jpg">http://creators.xna.com/en-US/sample/3daudio</a> | + | <img src="http://creators.xna.com/assets/cms/images/XNA_Audio3D_02_small.jpg"></a> |
+ | <br /> | ||
+ | <a href="http://creators.xna.com/en-US/sample/3daudio"> | ||
+ | http://creators.xna.com/en-US/sample/3daudio</a> | ||
</html> | </html> |
Revision as of 19:09, 25 April 2011
Safe Cropping zones
Show safe zones for XBox
Billboards
Billboards are basically textured squares (two triangles) that point towards the camera and appear to be a 3D model. They are cheaper and easier to work with than models many early 3D games consisted mainly of billboards. Billboards are still used to fake 3D objects.
The XNA 3DAudio example from
http://creators.xna.com/en-US/sample/3daudio
has a good example of using billboards. This example also demonstrates 3D audio.
Quad Drawer Class
- SpriteEntity/Quad Sprite I changed the name
I've added these two classes to our IntroGameLibrary Project. Here's an example. I did change the projection view size and some of the scales of the billboards.
IntroQuad Project
Meshes
A mesh is a collection of vertices, faces and edges that define a 3d shape. XNA can import .X or .Fbx files. .X files are Files created for DirectX, while FBX is an platform independent 3D mesh file type.
FBX is now a platform and has its own API and SDK from Autodesk
http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=6837478
Mesh Example IntroMesh.zip
IntroMesh
You can get some free models from TurboSquid, or you can make your own models with Blender.
Blender
Blender is a free 3D program. It can export fbx models for xna.
- Installing Blender
- Getting Started with Blender 3D and XNA
- Blender Manual
- Blender_3D:_Noob_to_Pro
- Beginner_Tutorials/Print_version
Homework
Try out blender. Make a model and load it into XNA and draw a picture with models