Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
3D Game Programming All in One- P17: 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. | MilkShape 3D 387 1. Using Windows Explorer browse your way to C 3DGPAi1 resources tools and launch UVMapper.exe. 2. Maximize the window when it opens. 3. Find the file you exported C 3DGPAi1 resources ch9 mynewcan.obj and open it. 4. You will see an alert listing some statistics about the object. Click OK. 5. You will see a bunch of triangles fill your window. Ignore them for the moment. 6. Choose Edit New UV Map Cylindrical Cap. You will get a Cylindrical Cap Mapping dialog box. 7. Click OK. You will then get a layout of the can s triangles like that in Figure 13.7 with a rectangular block of triangles across the middle and a circle of triangles at both top and bottom. 8. Choose File Save Model. The OBJ Export Options dialog box then appears. 9. Set the options boxes as shown in Table 13.1 and click OK. 10. Replace the OBJ file C 3DGPAi1 resources ch9 mynewcan.obj by saving over it. 11. Choose File Save Texture Map. The BMP Export Options dialog box appears. 12. Set the options to the values shown in Table 13.2. 13. Save to the file name C 3DGPAi1 resources ch9 mynewcan.bmp. This is the texture map or UV mapping template for your can. 14. Switch back to MilkShape. 15. Choose the Groups tab and select the can group. 16. Click the Delete button. You will replace this object with the one you exported from UVMapper. 17. Choose File Import Wavefront Obj and import the mynewcan.obj file you saved from UVMapper. 18. On the Groups tab locate your new object mynewcan.obj select it and rename it if you like. 19. With the new object selected choose the Materials tab. 20. Choose the label mater- ial and then click Assign. Figure 13.7 Unwrapping the can in UVMapper. Team LRN 388 Chapter 13 Introduction to Modeling with MilkShape Table 13.1 UVMapper OBJ Export Options Values Value Option clear set set clear clear clear clear clear set set clear clear clear Export As Single Group Export Normals Export UV Coordinates Flip Texture UV Coordinates Vertically Flip Texture UV .