Tài liệu 2D Artwork and 3D Modeling for Game Artists- P13 docx

50 341 0
Tài liệu 2D Artwork and 3D Modeling for Game Artists- P13 docx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

8. Another way to adjust the weighting of the vertices is by using the Paint Weights option in the Skin modifier’s envelope rollout. For instance, press F3 to enter wireframe mode, and look at the tail area; I’d like to have the pelvis bone take control of this area, since the tail doesn’t do much else aside from following the pelvis in motion. With the Paint Weights button active, click the ellipse button to bring up the Painter Options screen. Here you can adjust the brush size and strength, along with about a billion other parame- ters. Change both the Max Strength and Max Size to 0.2; doing so will make the painting brush a small crosshair with not so much strength. Then, with the pelvis bone selected, just click and drag over the tail area to paint the weighting onto the vertices (Figure 14.40). The Paint Weights option is handy if you’re positioning bones and notice weird or improper bulges between bones. By painting on these affected areas, you’ll dynami- cally see the bulges shift around accordingly. Continue adjusting weights all over your model until you’re satisfied, then save your scene as a .MAX file. 574 14. Making the Slogre Game-Ready Figure 14.40 Use the Paint Weights option in the Envelope rollout to manually paint the vertices of the tail to be included with the Pelvis bone. TEAMFLY Team-Fly ® Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Adding and Manipulating Dummy Nodes You’ll need to create several dummy objects to represent those critical game hooks I mentioned in the previous chapter. Dummies are simply inert boxes you create, label, and link to specific parts of the character’s body so that the game engine knows where to place items like weapons, backpacks, and so on. Some common ones for Torque are ■ A mounting location called Mount0 . This is the primary weapon-mounting location on all characters; for the slogre, it will be on the hand of your choice. Required on all character models. ■ Secondary mounting locations, called Mount# , where # is a successive number 1, 2, and so on. These locations represent other mounting areas, so that the slogre can attach items like backpacks, other weapons, and vehicles. Mount1 and Mount2 are required dummies to be located just outside of the slogre’s back. ■ A dummy called Eye . This is located and oriented directly in front of the character’s face. Eye represents the camera through which the player sees the game world when playing the game, using the character model as his or her own player mesh. For bots (non-player characters), this might not be required. Consult your game engine’s requirements. ■ A dummy called Cam . This is the camera mounting location, which can repre- sent several things. For instance, when a player switches to a flying mode, in which he is no longer manipulating a character mesh (such as in post mortem, which is when you fly around the game world undetected until you re-spawn), the camera uses Cam to see the world. Some programmers use Cam to circle around a player who has been killed, as is the case in Unreal. For the Torque Engine, this dummy is attached to another dummy called Unlink . ■ Detail objects, called Detail# , where # defines the level of detail. Required for all models, you must have at least one detail dummy to represent the base polygon count of the character’s mesh. Level of detail (LOD) is critical for character meshes, because having a game full of 3,000+ characters walking around at all distances would be a complete waste of polygons. (See the LOD section ahead for details on creating, er, details.) ■ Vehicle dummies, such as Ski0 and Ski1 —which are located near the charac- ter’s calves—enabling the character to mount or sit in a vehicle. 575 Adding and Manipulating Dummy Nodes Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. ■ The character can also have Light# dummies to allow for a lighting source for special situations like self-illumination and so on. Some games and their engines might require additional mount and sprite loca- tions, such as an ExplodePoint location for the programmers to hook a death explo- sion sequence onto. It’s up to you to let the programmers know what will be attaching where, and what it will be called. For now, your slogre really only needs the Detail2 , Mount0 , Mount1 , Mount2 , Eye , Cam , Ski0 , and Ski1 dummy objects, plus another one called Unlink (for death camera purposes). Here’s what to do: 1. In the Create tab of the Command Panel, click on the Helpers button (it looks like a tape measure). 2. In the Object Type section, click the Dummy button. 3. In an orthogonal view, click and drag to create a small dummy box (see Figure 14.41), and posi- tion it in one of the slogre’s hands, just in front of the palm and between the thumb and first finger. This is where the slogre will hold the weapon. 4. Type Mount0 in the field in the Name and Color section. 576 14. Making the Slogre Game-Ready NOTE The size of the dummy is irrelevant; the Torque engine simply looks for a dummy object with the name Mount0 for a weapon mounting location, and references the dummy’s axes for weapons location and alignment. Figure 14.41 Create a dummy object named Mount0 and position it in the slogre’s hand.This will represent the mounting location for weapons. The Helpers button The Dummy button Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 5. You need to align the axes of the Mount0 dummy just like you did earlier with the slogre’s axes. In this case, however, the y axis must point in the direction you want the weapon to point. To begin, click on the Hierarchy tab in the Command Panel, then click the Affect Pivot Only button. 6. Use the Select and Rotate tool to rotate the axis so that the y axis points toward the slogre’s fingers (see Figure 14.42). Use the Angle Snap tool, located at the bottom of the screen, to constrain this rotation in degree increments. With the y axis pointing forward, the weapon’s grip will mount to it and face in the same direction. 7. Create and position two more dummies, Eye and Cam ; these should be placed right between the slogre’s eyes and a few inches ahead of them, respectively. 8. Align the pivot point so the y axes for both are pointing forward, with the z axes pointing up. 9. Create and position two dummies, Mount1 and Mount2 . Both of these should be located at the slogre’s back, between the shoulders. 10. Create and position another two dummies, Ski0 and Ski1 . The first should be located behind the left calf bone, and the second in the same location behind the right calf. Position the y axes so that they face forward. 11. Create a final dummy called Unlink . Just position it on the floor between the slogre’s feet. 577 Adding and Manipulating Dummy Nodes Figure 14.42 Align the pivot point (axes) of the dummy object so the y axis points in the direction that the weapon should point. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Linking the Nodes Now that you’ve created all of the basic nodes required to make the slogre work in Torque, you need to link them to the proper locations in the Schematic View. Open the Schematic View and link each node as follows: ■ The detail2 dummy must be linked to the Bip01 node (at the very top of the hierarchy). ■ The Mount0 dummy must be linked to the Bip01 Right Hand. ■ The Mount1 and Mount2 dummies must be linked to Bip01 Spine2. ■ The Eye dummy must be linked to the Bip01 Head. ■ The Unlink dummy must be linked to the Bip01 node. Then, the Cam dummy must be linked to the Unlink dummy. ■ The Ski0 and Ski1 dummies must be linked to the Bip01 Left Calf and Right Calf, respectively. Finally, the Bounds (bounding box) must be linked to the Bip01 node (at the top of the hierarchy). Figure 14.43 shows the exploded schematic view you should have. 578 14. Making the Slogre Game-Ready Figure 14.43 The properly attached nodes to the biped. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Create a Root Pose When you export the slogre to the Torque engine, he’ll need a default pose (unless you want him standing with his arms spread wide!). Create a root pose simply by manipulating and moving his arms and legs so he’s in a position of your liking. In Figure 14.44, I modified the biped in the slogre’s mesh so he looks ready to hold and fire the RF-9 plasma gun. Exporting and Viewing the Slogre in Torque Exporting with the DTS Exporter utility in the Utilities panel is a bit different this time than it was earlier in this chapter. Go to the exporter and select Whole Shape. Make the name player.dts, and save the file to the \RealmWars\rw\data\shapes\player\ area instead. Be sure to have your player.cfg file in the same directory, along with the 3D Studio Max .MAX file and the SlogreSkin.png skin file. The difference in exporting this time is that you need to create the .DTS object in the existing \player\ folder. Navigate over to that folder 579 Exporting and Viewing the Slogre in Torque Figure 14.44 Create a root pose by moving the bones of the slogre. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. and you’ll see over 30 different .DSQ files, which are Torque’s animation sequence files. These were also generated using the DTS Exporter utility. These files will ani- mate the slogre’s bones structure during game play. The exporter might take a bit longer than it did the last time, as there is a lot to process. Remember to look at the dump.dmp file if anything goes wrong, or if an animation sequence does not work properly. Sometimes when a certain animation sequence won’t work, you need to adjust the .CFG file and include or exclude node or bone labels. Once the model is loaded using the realmwars.exe -show utility, click on the Thread Control button. This will load a Thread Control panel that you can use to view the different animation sequences being applied to the bones in the slogre (see Figure 14.45). Make sure that the animations work or you’ll have problems using the slogre during the game! 580 14. Making the Slogre Game-Ready Figure 14.45 Use the Thread Control button in the Torque -Show utility to view the animation sequences driving the slogre. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Levels of Detail (LODs) Here’s the last thing you can do to optimize the mesh in the game, just as I said in the previous chapter. The levels of detail for the slogre represent the varying mesh densities the character will have in relation to the distances of the other players. It’s important to have these levels of detail, as it would bog down the game engine to unnecessarily process a 3,000-polygon model that a player can’t see from afar. In Chapter 13 I showed you how to make two LODs; here I’ll show you how to make two as well. 1. In the Schematic View you should have the detail2 and Slogre2 objects; they currently should not be linked to anything. Just link the detail2 dummy object to the Bip01 object (the root of the biped itself). This will represent the lowest level of detail—the higher the number, the higher the detail. Of course, these are just reference markers for the game engine to use. 2. With the detail2 object still selected, you need to create another dummy object representing the highest level of detail. The easiest way to do this is by clicking Edit, Clone on the top menu bar. In the Clone Options dialog box, make sure Copy is checked. For the name, type in detail64 and click OK. The number is arbitrary, but it’s good to keep the trailing number large, so you know that the larger the number, the higher will be the mesh density. Now look back to the Schematic View, and notice that the new detail marker has been added and attached to the Bip01 object, as it is a clone. 3. With the detail markers in place, you need to create a single level of detail mesh using the MultiRes modifier, just as you did for the RF-9 in Chapter 13. First select the Slogre2 object in the Schematic View, then create a clone of the mesh. Just click Edit, Clone, and name the new copy Slogre64 . This will represent the highest level of detail. 4. Finally, reselect the Slogre2 object. Then, in the Modifier panel, apply a MutliRes modifier to this mesh. In the MultiRes rollout, click Generate. Change the Vert Percent parameter to 50.0; this will reduce the polygon count to 50% of the original mesh, or in this case about 1500 faces—not bad, considering there’s not much loss in detail. This represents the lowest level of detail that will be seen by other players from afar. You should now have two slogre meshes in your scene ( Slogre2 and Slogre64 ) that are refer- enced, by the Torque engine, by the detail dummy markers detail2 and detail64 , respectively. Be sure that you can view these two detail meshes in the RealmWars.exe -show feature, using the Details button. 581 Levels of Detail (LODs) Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Last Note on Other Game Engines You’re probably wondering about using the RF-9 and Slogre models in other games. Most of the information about creating meshes, skinning them, and setting them up for use in the Torque engine apply to other games like Half-Life, Quake, and Unreal. All that’s really necessary is to obtain the 3D Studio Max plug-ins for those games in order to export your models and change the naming of an object or two, add a dummy, and so on. I decided to avoid getting into any detail on those engines, as getting permissions to use plug-ins, screen shots, and so on from com- panies like that is very difficult, not to mention time-consuming. GarageGames were kind enough to allow me to use Torque, an excellent 3D game engine, and coupled with the fact that it’s so affordable ($100), what could be better! Remember, for that small price you’re not just getting a game, but an entire game engine whose code you can modify to create your own game, including your own personalized graphics. Anyway, for other game engines, just get on the Web and download their SDK (software development kit) for which you want to develop; I’m sure the kits (not the engines) will be free of charge. See Appendix E, “Related Websites and Links,” for information on popular game engine sites. The SDKs are usually free for download, and contain the plug-ins and instructions necessary to get you rockin’ and rollin’. Summary The last stage in preparing a character mesh for a video game is usually the most time consuming—installing a skeletal system to animate the mesh itself. Applying a texture to your mesh, installing biped systems, adjusting skin envelopes, setting up dummy objects for game hooks, and adding levels of detail are just the basics of readying your character for a game engine. Most games work in such a similar manner, and it’s only a matter a making a few adjustments to get your model to work in them. This chapter covered these foundations in detail. 582 14. Making the Slogre Game-Ready Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. PART FIVE Bringing it All Together Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. [...]... used a 3D modeling program before, or if you’re relatively new to 3D modeling, then this is the appendix for you It covers the basic terminology and components of 3D modeling, including ■ ■ ■ ■ ■ ■ The principles of 3D objects in a 3D world Object and world axes and coordinates The constituent vertices, edges, and faces of objects Triangles and polygons that make up the mesh of a 3D object Modeling. .. responsible for creating textures for player and object skins, as well as for maps/levels He or she should also be capable of U-V manipulation and setup for texture design Lead artist The Lead artist has a good deal of experience creating concept and texture art for games, and supervises (and participates in) the work flow of the 2D art team Typically this person is also good with other game arts like modeling. .. like modeling and animation 3D modeler This individual spends much of his or her time creating 3D mesh objects for a video game This is more of an entry-level position, but fun nonetheless Other responsibilities include U-V manipulation and prepping models for the texture artist and animators The 3D modeler is often the animator as well, and is usually expert with at least one high-end 3D modeling package... splines and NURBS objects Properties of the normals of an object’s faces Object Geometry in 3D Space A 3D object in a modeling program is anything that has, at the very least, exactly what its adjective describes: three dimensions Every 3D modeling program and every 3D game is designed around a Cartesian coordinate system that is used to describe the dimensions and positions of a 3D world and the objects... manipulate the terrain Texture the landscape with your own images Add and manipulate your own game objects Have fun playing with your own game art creations! Playing Realm Wars Using the Slogre and RF-9 The Torque demo, as I mentioned in Chapters 13, “Making the RF-9 Plasma Gun Game- Ready with 3D Studio Max,” and 14, “Making the Slogre Game- Ready with 3D Studio Max and Character Studio,” is aliased Realm... A 3D Modeling Primer B A 2D Graphics Primer C Photoshop 6 Keyboard Shortcuts D Glossary of 2D- and 3D- Related Terminology E Related Web Sites and Links F What’s on the CD-ROM? TE AM FL Y A ® Team-Fly Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark APPENDIX A A 3D Modeling Primer Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark A 606 A 3D Modeling. .. GarageGames.com offers this engine for a mere $100; using it, you can reprogram and develop your own publishable game So unless you can shell out the $50,000–$300,000 required for high-end game engines like Quake and Unreal, I think Torque will do In this chapter you will ■ ■ ■ ■ ■ Use the Torque game engine demo to see your character, weapon, and textures in live gaming action Learn how to create and. .. Postscript Finding Work as a Game Artist Tools of the Trade Before even setting foot on a game company’s soil, you should already have a decent knowledge of a handful of popular 2D and 3D art tools Nobody wants to hire someone who only knows 3D Studio Max, even if you’re an expert at it Your job, even if you’ve been hired as an animator, will always require little in-betweens like modeling or texture mapping... effort to make his or her artwork better than the best Programmers often forget that the creative process isn’t easy; it, too, requires a lot of work, especially when making and animating outstanding characters for a game Plus, programmers often forget that artists aren’t getting paid as much as they are, which may explain why many artists feel they shouldn’t have to work as hard As a programmer and. .. submit—paper or digital—depends on what type of position you seek For example, if you’re looking to get hired as a texture artist, your portfolio would consist of printouts of all your best textures (For variation, you should toss in textures suitable for all sorts of games, like Quake-type games,World War II games, children’s games, medieval games, and so on.That way, the company can see that you’re capable . “Related Websites and Links,” for information on popular game engine sites. The SDKs are usually free for download, and contain the plug-ins and instructions. allow for a lighting source for special situations like self-illumination and so on. Some games and their engines might require additional mount and sprite

Ngày đăng: 24/12/2013, 06:16

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan