-
Book Overview & Buying
-
Table Of Contents
PlayStation Mobile Development Cookbook
By :
This recipe demonstrates adding a 3D model to your project as well as the code required to load and display it on screen.
If you haven't already, load PlayStation Mobile Studio and create a new project. This example and many that follow are going to make use of a fully textured and animated model that is shipped with the PlayStation Mobile SDK, walker.mdx. This is because a great deal of small issues can be introduced when exporting a model from various 3D programs, so it is best to start with a model we know. If you choose the default install, the model file will be available at C:\Users\Public\Documents\PSM\sample\Model\BasicModelSample\walker.mdx.
Add the model file to your project, and then be sure to set its Build Action to Content. You also need to add a reference to the library, Sce.PlayStation.HighLevel.Model. The code for this example is available as Ch8_Example2.
Open AppMain.cs and enter the following code:
using System...
Change the font size
Change margin width
Change background colour