tailieunhanh - 3D Game Programming All in One- P20
3D Game Programming All in One- P20: During the past several years while working on the Tubettiland “Online Campaign” software and more recently while working on the Tubettiworld game, I figure I’ve received more than a hundred queries from people of all ages about how to get started making games. There were queries from 40-year-olds and 13-year-olds and every age in between. Most e-mails were from guys I would estimate to be in their late teens or early 20s. | Testing Your Runabout 477 the midline of the tire are aligned with the origin bug. Testing Your Runabout In order to test the runabout we first need to export it from MilkShape. 1. After saving your work choose File Export Torque Game Engine DTS. You will see the Torque Game Engine DTS Exporter dialog box appear. 2. Use defaults but make sure they are correct. You want to have Export animation and Export material information selected and Collision Mesh should be set to Collision Meshes this is automatic if the exporter finds a mesh whose name starts with Collision . Click OK when ready. 3. Export your runabout to DTS format as C 3DGPAi1 racing data shapes car . 4. Open your wheel model and export Figure Seat mounts. Figure Collision mesh. it as C 3DGPAi1 racing data shapes car . Next you need to edit the script that controls the vehicle so it will look for your model and not the default one. 1. Locate the file C 3DGPAi1 racing server scripts and open it with UltraEdit. 2. There are two lines that say this shapeFile data shapes rifle Replace each of them with this line shapeFile data shapes tomygun 3. Then find the line that says this shapeFile data shapes buggy Team LRN 478 Chapter 15 Making a Vehicle Model And replace it with this line shapeFile data shapes car 4. Save the file. Okay now it s time to run the racing demo. The following may look familiar to you since we did this back in Chapter 9. 1. Browse to C 3DGPAi1 and click the Run racing Demo shortcut. 2. Click Start Mission. 3. In the Launch dialog box make sure that the Multiplayer Mission box is cleared. 4. Select Car Race Track from the mission list. 5. Click Launch. 6. After the game loads have at it You probably should switch to Chase view by pressing the Tab key there s more to see. See Table for the keyboard controls. Table Torque Racing Demo Controls Key Description mouse Up Arrow Down Arrow Tab Escape .
đang nạp các trang xem trước