Game Development Reference
In-Depth Information
Figure 12-7. The background stored in background.jpg, 512×512 pixels
As previously shown in Figure 12-4 , we only need to use the top-left region of this image to
render a full frame (480×320 pixels).
Those are all the UI elements we need. Now we can look at our 3D models and their textures.
The Game Assets
As mentioned in Chapter 11, going into detail on how to create 3D models with software like
Wings3D is beyond the scope of this topic. If you want to create your own models, choose an
application to work with and plow through some tutorials, which are often freely available on the
Internet. For the models of Android Invaders, we used Wings3D and simply exported them to the
OBJ format, which we can load with our framework. All models are composed of triangles only
and have texture coordinates and normals. We won't need texture coordinates for some of the
models, but it doesn't hurt to have them.
The ship model and its texture are illustrated in Figure 12-8 .
 
Search WWH ::




Custom Search