blow
A model viewer that blows a space shuttle apart, with every light and fog parameter on a menu.
Controls
R1 and R2 step through the menu's pages and Select and Start through the pieces. On each page the d-pad, L1 and L2 adjust three values, and the symbol buttons the rest: the first page turns the piece, and Triangle and Cross bring the viewpoint nearer and further; the second moves the viewpoint; the third scales the piece; the next three aim and color the lights, Square and Circle choosing the component and Triangle and Cross changing it; then the ambient light; then the fog, its distance and color, and whether it is on; and last the explosion, its speed and whether it is going. Start and Select together quit.
A port of Sony's Net Yaroze demo "blow" (S. Ashley, 1997): a model viewer that blows its model up. A space shuttle, in five pieces, is read off the disc, and one piece at a time is shown at 512 by 240, turned, moved and scaled, under three directional lights, ambient light and fog, every parameter of which a menu of the library's font lets you change. The last page of the menu is the explosion: the piece's polygons fly apart along their normals, flashing white and burning through yellow and red to black while the screen flashes, and then it is put back together to go again. To do that the model is copied at startup with a separate set of vertices for every polygon, since a TMD shares its vertices between the polygons that meet at them, and the copy is what is drawn.
Differences from the original:
- The viewpoint moves in and out by fiftieths, where the original multiplies and divides by 1.02 in floating point.
- The model is read off the disc to the address the original's batch script sent it to, and the copy is checked to fit below it.
- The model's extent, which the original works out at startup and prints to the serial console, is left out, and so is the missing data's report, which the original would hang on.
Nothing allocates after startup.