Presentation is loading. Please wait.

Presentation is loading. Please wait.

3D Models, Textures and Bone Animations for Games.

Similar presentations


Presentation on theme: "3D Models, Textures and Bone Animations for Games."— Presentation transcript:

1 3D Models, Textures and Bone Animations for Games.

2 Overview: Tools – Advantages & Disadvantages Tools – Advantages & Disadvantages Low-poly models – from scratch Low-poly models – from scratch Texturing – UV maps and skins Texturing – UV maps and skins Bone Animation – setting up skeleton, inverse & forward Kinematics Bone Animation – setting up skeleton, inverse & forward Kinematics

3 The Tools Blender Blender Maya * Maya * 3DS 3DS Wings 3D Wings 3D Ultimate Unwrap * Ultimate Unwrap * Caligari Truespace * Caligari Truespace * Photoshop * Photoshop *

4 Blender –Pros: Free, Relatively Powerful. Free, Relatively Powerful. Can do skeletal animations. Can do skeletal animations. Easy to import/export. Easy to import/export. –Cons: Learning Curve; Learning Curve; counter-intuitive, “clunky” interface. counter-intuitive, “clunky” interface.

5 Maya Pros: Pros: –Extremely powerful. –Well documented. –Elegant, fast interface. –Becoming industry standard. Cons: Cons: –~$2,000. –Very good, but not excellent UV mapping

6 3DS Pros: Pros: – Very powerful. –Similar to Maya Cons: Cons: –Expensive.

7 Wings 3D Fast. Fast. –Easy to use. –Can make excellent Low-Poly models Cons: Cons: –No animation / UV mapping. – Hard to make complicated / High-poly models

8 Ultimate Unwrap Pros: Pros: –Best UV mapping tool on the market (in my opinion) –Very fast, simple interface. View texture on model in 3D environment. View texture on model in 3D environment. Automatically updates texture when saved Automatically updates texture when saved All the functionality of more expensive tools All the functionality of more expensive tools –Cheap (~$70) Cons: Cons: –Only good for UV mapping –Not directly compatible with Maya Need to “juggle” model formats *.obj -> *.mb Need to “juggle” model formats *.obj -> *.mb

9 Caligari Truespace Pros: Pros: –Relatively powerful Decent skeletal animations Decent skeletal animations UV mapping UV mapping –Cheap (couple hundred $ for latest version) Cons: Cons: – Extraordinarily awkward interface – Somewhat slow

10 Photoshop A necessity A necessity Uses Layers Uses Layers Highly Versatile tool set Highly Versatile tool set Great for creating skins to texture models Great for creating skins to texture models

11 3D Modeling Technique Art through extrusion Art through extrusion Minimize Polygons Minimize Polygons

12 Art through Extrusion Start with basic shape (cube) Start with basic shape (cube) –Extrude a Face –Adjust size of face –Collapse vertices / edges to make angles –Repeat above Use Symmetry Use Symmetry

13 Minimize Them Polies! Use triangular points (when possible) Use triangular points (when possible) Focus attention on salient areas Focus attention on salient areas Rely on texturing for detail – keep it simple Rely on texturing for detail – keep it simple Orient human models in standard position (shown) Orient human models in standard position (shown)

14 Some Buildings… Both < 20 polies Both < 20 polies

15 Some Space Ships… Both <80 polies

16 UV / Texture Mapping Different Types Different Types Methods Methods Minimize Size of Images Minimize Size of Images

17 There’s more than one way to Skin a Cowboy… Face Painting Face Painting –Paint a fixed texture to individual faces Pros: easy, fast Pros: easy, fast Cons: looks atrocious up close Cons: looks atrocious up close Materials Materials –Apply a “material” or surface texture to a face Phong, Metallic, etc. Phong, Metallic, etc. Diffuse, Ambient, Emissive, Specular, lightings Diffuse, Ambient, Emissive, Specular, lightings Pros: Looks really good. Pros: Looks really good. Cons: Requires in-game light source. Expensive. Cons: Requires in-game light source. Expensive. UV Mapping * UV Mapping * –“Unwrap” polygon model to flat surface –“Paint a picture” over unwrapped polies Pros: Can make low-poly models look good! Pros: Can make low-poly models look good! Cons: Difficult to learn / do well. Cons: Difficult to learn / do well.

18 UV Mapping Import Model Import Model Unwrap as desired Unwrap as desired Create Texture Create Texture

19 Import Model Disorganized UV map Disorganized UV map

20 Unwrap Model as Desired Many Different Types Many Different Types –Box, cylindrical, plane, etc. Make it “easy to paint” Make it “easy to paint” Conserve space Conserve space Devote more space to salient parts Devote more space to salient parts

21 Paint Texture Onto Model Use many layers (Photoshop / PSP) Use many layers (Photoshop / PSP) Low opacity Air Brush for shading Low opacity Air Brush for shading Darken Edges & Brighten centers of polygons Darken Edges & Brighten centers of polygons –Gives a more “rounded” appearance Keep textures small! Keep textures small!

22 Skeletal Animations (Maya) Set up Skeleton Set up Skeleton Organize bones into Hierarchy Organize bones into Hierarchy Inverse / Forward Kinematics Inverse / Forward Kinematics Skinning Your Character Skinning Your Character Get the MOST from your model Get the MOST from your model

23 Set up Skeleton Maya: Skeleton -> Joint Tool Maya: Skeleton -> Joint Tool Be anatomically accurate Be anatomically accurate Start from pivot; work outward Start from pivot; work outward Use at least 2 perspectives Use at least 2 perspectives

24 Use Mirror Joint Orient Model to the Origin!!! Orient Model to the Origin!!! Only way to ensure symmetry Only way to ensure symmetry Much easier Much easier Mirror Joint Mirror Joint –Select highest-order bone: hip –Maya: skeleton -> mirror joint

25 Use Hypergraph Label bones Label bones Organize into hierarchy Organize into hierarchy –Click / drag

26 Bind to Skin Attaches skeleton to model Attaches skeleton to model Maya: skin -> bind skin -> smooth bind+ Maya: skin -> bind skin -> smooth bind+ –Set max influence = 1 –Too many slows down in-game animation

27 Time to Animate Set a “neutral pose” Set a “neutral pose” –Select All –Key Everything at time = -10

28 Inverse Kinematics Use IK Handles Use IK Handles –Maya: Skeleton -> IK Handle Tool Allows fast and positioning Allows fast and positioning

29 OH NO! Sometimes difficult to get specific pose… Sometimes difficult to get specific pose… Then use Forward Kinematics Then use Forward Kinematics

30 Have animation reference Easy to google Easy to google Search for image displaying desired animation keyframes Search for image displaying desired animation keyframes

31 Loop Animations Save Effort – Copy / Paste Keyframes Save Effort – Copy / Paste Keyframes –Click on keyframed object / IK handle –Right click on Maya Timeline -> copy –Move timeline -> paste

32 Create more animations Skip a few frames Skip a few frames Select all Select all Key all Key all –So animations don’t interpolate between each other Skip a few more frames Skip a few more frames Have at it! Have at it!

33 Export your Animation Can download exporter from Ogre3d site Can download exporter from Ogre3d site


Download ppt "3D Models, Textures and Bone Animations for Games."

Similar presentations


Ads by Google