-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
PlayStation Mobile Development Cookbook
By :
In Chapter 7, Into the Third Dimension, we applied a number of visual effects on a cube using vertex and fragment shaders. The Model library provides the BasicProgram class to simplify this process. In this example, we are going to load a 3D crate model and show how to alter its transparency, change its color, and even swap textures completely using BasicProgram.
Load PlayStation Mobile Studio, create a new project, and add a reference to Sce.PlayStation.HighLevel.Model. Instead of building the cube from scratch like we did in Chapter 7, Into the Third Dimension, we are going to load it as a model. You can either create your own textured box, or download a working example from http://bit.ly/PtMj9w. The ZIP includes a .mdx file of a textured cube, as well as a second texture for the cube. Download and extract the archive, and add box.mdx and crateNeon.png to your project, setting Build Action to Content for both of them...
Change the font size
Change margin width
Change background colour