1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 7 <title>NW4C Sample Demos</title> 8 </head> 9 <body> 10 <h1>NW4C Sample Demos</h1> 11 12 <h2>Overview</h2> 13 <p><br> These demos perform drawing by simultaneously using the gfx library, layout library and OpenGL library. You can use the gfx library to adjust the number of models being drawn and check the amount of data to be drawn at either 60 fps or 30 fps. 14 </p> 15 16 <h2>Compiling</h2> 17 <p> 18 Change directories to $Library/demos/Nw4cDemo, and execute: 19 <pre><CODE>% omake</CODE></pre> 20 The executable (.cci) file is generated in: 21 <pre>$Library/demos/Nw4cDemo/images/(platform)/(target)/</pre> 22 23 </p> 24 25 <h2>How to Use</h2> 26 <p> 27 <ul> 28 <li>Touch Panel Operations</li> 29 <ul> 30 <li>Three tabs, Setting, Camera, and Help, are displayed on the touch panel screen. 31 <li>The Setting includes sliders that can be used to adjust the number of objects and/or particles drawn in the demo. 32 <li>The Camera tab displays a description of camera operations. 33 <li>The Help tab displays a description of pad operations. 34 </ul> 35 36 <li>Pad Operations</li> 37 <ul> 38 <li>A Button: Play/pause the demo</li> 39 <li>B Button: Restart the demo.</li> 40 <li>X Button: Advance one frame while demo is paused</li> 41 <li>R+A Buttons: Demo cost log output</li> 42 <li>R+B Button: Toggle between command single/double buffer.</li> 43 <li>R+X Button: Show/hide the CPU/GPU meters</li> 44 <li>R+Y Button: Show/hide the layout</li> 45 <li>START Button: Toggles between camera motion and free camera operation.</li> 46 </ul> 47 48 <li>Free Camera</li> 49 <ul> 50 <li>Slide pad: Camera control operations</li> 51 <li>Left part of touch panel: Toggles between camera motion and free camera operation.</li> 52 </ul> 53 54 </ul> 55 </p> 56 57 <h2>Description</h2> 58 <p> 59 <ul> 60 These demos perform drawing by simultaneously using the gfx library, layout library and OpenGL library.<BR> Models and particles that use the gfx library are drawn on the upper screen. A UI that uses the layout library and cost meters indicating the cost of using OpenGL are displayed.<BR> A UI (slider) that uses the touch panel can be used to adjust the number of models or particles to be drawn. The amount of data to be drawn in 60 fps or 30 fps can be adjusted dynamically.<BR> If all sliders are set to maximum, 3 clowns, three robots, 25 audience members, 13 particle sets, and 3 stage objects are drawn.<BR> Cost meters (for the CPU and GPU) are displayed in the touch panel upper screen. The meter center represents operations at 60 fps, and the right end of the meter represents operations at 30 fps. The demo starts at 60 fps, but adjusted to operate at 30 fps when the number of drawings is maximized. 61 </ul> 62 </p> 63 64 <h2>Description of the SampleData\Nw4cDemo Folder</h2> 65 <p> 66 <ul> 67 Gfx and Layout data used by the demo is stored in SampleData\Nw4cDemo.<BR> <br> 68 <li>ToyCommon folder</li> 69 <ul> 70 This folder includes textures, lights and light sets, and fog settings for the cube environment map used with ToyPierrot, ToyRobot, ToyStage, and ToyAudience. 71 </ul> 72 <li>ToyPierrot folder</li> 73 <ul> 74 Stores Pierrot data used by the demo. 75 </ul> 76 <li>ToyRobot folder</li> 77 <ul> 78 Stores robot data used by the demo. 79 </ul> 80 <li>ToyAudience folder</li> 81 <ul> 82 Stores audience model data used by the demo. 83 </ul> 84 <li>ToyCamera folder</li> 85 <ul> 86 Stores camera animations used by the demo. 87 </ul> 88 <li>ToyStage folder</li> 89 <ul> 90 Stores model data for the background and background decorations used by the demo. 91 </ul> 92 <li>ToyParticle folder</li> 93 <ul> 94 Stores particle data used by the demo. 95 </ul> 96 <li>LayoutDB folder</li> 97 <ul> 98 Stores unconverted layout data used by the demo. 99 </ul> 100 </ul> 101 </p> 102 103 <h2>Notes</h2> 104 <p> 105 <ul> 106 Avoid using current source code as-is, as it has not be refactored.<BR> 107 </ul> 108 </p> 109 110 <hr><p>CONFIDENTIAL</p></body> 111</html> 112 113