FATEtutorial3dsmax v1
FATEtutorial3dsmax v1
3
© 2007, Apricottwist
This tutorial will explain you how to create a simple monster for FATE. You
may apply the techniques you learn in this tutorial to more complex
scenarios. Make sure you read through the tutorial before attempting to
create any complex characters.
1. Creating a mesh:
a. Standard Primitives
For this tutorial we will use a sphere, and convert it into the main body of a
monster.
1
From the primitives panel I have selected Sphere and from the side
command panel I have changed the number of segments it will be made
up of to 14 (keeping the number of faces and verteces to a minimum is
desired to minimize in-game processing time once the model is finished).
Clicking on the top viewport I have created my object.
2
Right Clicking on my mesh I select to convert to Editable Mesh, so that I
can start manipulating it. When I select vertex, I can see my sphere’s
points which I can work on.
By right clicking on the mesh I can Rotate and Move the verteces as I
please. There goes a simple mesh.
I will select the mesh by polygons this time and will add new faces to my
object to form a face. In the command panel on the right I have selected
the Extrude function so that I would be able to add a new component to
my mesh. I can do something similar with the Bevel tool to create a sort of
hat for my character.
3
b. Shapes
With the first part of my model ready I can now move on to creating
another component of the character by using the shapes. I am not very
good at freehand with the mouse, so I will create a heart by helping
myself with a ready made pic.
I will first need to create panel mesh on to which to add the pic I’m going
to work on. I will do this through the Standard Primitives menu. Once done
I will upload my picture onto max. Pressing M will call the Material Editor
window, once inside, scrolling down and opening the Maps tab will reveal
a command panel as the one below. Clicking on the empty slot near
Diffuse Colour I will display a Material Browser so that I can select my
Bitmap.
4
Once selected the picture, I will Go To Parent panel and tell max to Show
Map In Viewport. I can then drag my map onto the panel so that it will be
associated with the mesh. This is a very simple way of loading your map
onto the mesh. Note that in the picture below I have changed my front
view to display as Smooth + Highlights.
Now that I have a picture to work with I will create a spline (a line mesh)
through the Create > Shapes > Line function. In the side panel under
Creation method I will select a Corner Drag Type, so that I will have rigid
segments without curves.
Note:
5
I will then connect the two points to make a continuous spline. I need to
drag the two end verteces towards each other, select both of them when
they’re overlapping and choose Connect from the side panel. I might
need to zoom in a little.
6
2. Modifiers
a. Extrude
The first half of the heart is ready. To convert the spline from a linear shape
into a 3D model I will make use of a Modifier called Extrude. I can set the
number of segments I want to subdivide my 3D shape into and the width
amount.
b. Symmetry
I can create the second half of the heart by using another modifier,
named Symmetry.
This is easily accessed through the side panel’s drop-down list.
7
In the hierarchy panel I will select Affect Pivot Only so that I can move my
pivot as any other object.
I can now perform symmetry, choose the mirror axis and to weld the two
halves at the interface.
Note:
I could have obtained a similar result by creating a
Mirror Clone through the Tools menu, but this at times
produces incorrect results.
I would then have had to connect the two
components through Compound Objects > Connect >
Pick Operand and clicking on my other component. I
could then have welded the verteces of the two parts.
This manual method sometimes produces errors but it’s
valid still.
Separate polygonal meshes can also be joined
through the Attach function in the Polygons submenu.
8
c. Smooth
I now have a complete heart but looks too square, so I will smoothen its
edges through the Smooth modifier. This is simple to use and I only need to
select any smoothing group to obtain the desired result.
3. Mapping
All the objects’ meshes are finished and can be assigned material maps. I
have prepared a map I will use for all of my meshes, I can select different
parts of my picture to be assigned to different components. To do this I will
first associate the picture to the two different meshes as I did before with
the panel object.
I will first map the heart. In the modifier list I select Unwrap UVW, and in the
object’s mesh I select the top faces of the heart. In the Map Parameters
panel I select Planar > Align to Z, to align my map’s plane with the top
face of the object. Make sure you deselect the Planar command
afterwards.
9
Once in the Edit UVW window I have loaded my map
through the scroll down list on the right. I can now
position my mesh to overlapthe picture of the heart in
my texture map.
10
4. Adding Biped Bones
I will select both the meshes and choose the Physique modifier in the side
panel. After selecting Attach to Node, by clicking on the Centre of Mass
(the diamond-shaped bone in the pelvis) and clicking on Initialize, I will
associate the skeleton to the mesh. The result will appear as an orange
stick figure inside the skeleton.
11
Supposedly once the skeleton is linked to the mesh, the verteces should
be assigned automatically but this is not always the case, so it is
convenient to assign the verteces manually. To associate the verteces to
the skeleton of one of the meshes, I will select the mesh I’m interested in
select Vertex under the Physique entry and will be able to access a panel
as the one below.
The functions are self explanatory.
Link verteces to the desired links by selecting the desired verteces, clicking
on Assign to Link and highlighting the Green cross. Click on one of the links
to complete the task. Once assigned, the vertices should turn from blue to
green. You may assign a single vertex to more than one link. In that case
the vertex points will appear of a darker hue.
When the links have been assigned you may click on the skeleton to
move your model, at which point you may proceed to creating
animations.
Note:
If I desired to add additional bones I may have done so through the Bones
tool in the Systems panel. The width, height and taper may all be
specified. To associate non-biped bones to the mesh you will have to
select the Skin modifier. This works in a simpler way than the biped.
12
than doing the same through envelopes unless you know what you’re
doing! Nonetheless manual assignment may be useful for rigid characters
as robots. The non-biped bones may be linked to the biped skeleton
through the Link function on the main command panel.
This will make sure that as your biped skeleton moves, your
other bones will move with it. This may also be applied to
different meshes.
The Skin modifier gives the advantage that the verteces are connected to
bones through gradients of influence and thus produce better flexing
joints. This advantage may also be made use of with biped skeletons
instead of the Physique modifier, however if you’re going to use the Skin
modifier make sure that your mesh is of the correct size as you want it to
appear in the game, otherwise you will need to restart the bone-
connecting part all over again just to resize your model.
5. Animating a model
13
From then on, whatever bone you will move on the other frames, the
skeleton will automatically be made to move from its starting position to
the final you have assigned to it.
Trajectories:
To move the biped skeleton in space you need to click on the Trajectories
option in the motion panel. Move only the centre of mass. You still need to
set a starting position for the trajectory, but the rest is as simple as it is.
6. Adding Weapons
a. Prop Bones
When you are in the Structure menu of your biped, you can modify the
size, rotation and location of your prop bone like any other bone of your
skeleton. Once you exit the structure menu this position will however be
reset and you will have to reassign your prop its coordinates.
b. Point Helpers
The weapon’s coordinates for the Main Character and Monsters, these
are specified as Point Helpers and can be created through the side panel
under Create > Helpers > Point. Make sure the helper is set to the Cross
14
type. Through such an object you can specify the location of left- and
right- hand weapons and the shield, set on the left arm.
So that the helpers are recognised by FATE you simply need to name
these objects as either “lefthand”, “righthand” or “leftarm” respectively
and position them accordingly. The main character has an additional
helper for the helmets which is to be named “head”.
IMPORTANT:
Before attempting any complex animations for your characters, make
sure that common settings like helper coordinates and character size are
the correct ones, otherwise you will find yourself needing to start all over
again to correct the mistakes.
15
FURTHER NOTES 1 – EXPORTATION AND IN-GAME RENDERING
Basic tools:
- 3ds max must be equipped with the MODKIT plugins provided by Travis
Baldree (c) WildGames They will let you save your main model's mesh in
.SMS and your aniamtions in .SMA format.
Exportation:
Animated models need be exported as SMS files, and their respective
animations need to be exported as SMA files.
When exporting your finished character, with verteces properly
associated to a biped skeleton and all, you will need to access File >
Export and save your character’s mesh in SMS format.
You will be prompted with a window as the one which follows. You need
to disable the “Only objects whose name starts with” checkbox.
16
Your animations must be exported in SMA format and you will be
prompted with the following window. Again disable the “Only objects
whose name starts with” checkbox. Specify which frames you want to
export; in the example below, frames from 0 to 20 are being exported.
Once you have at least one SMS file and one SMA file, the animations for
the SMS file must be referenced in an Animation.dat file, an example of
which is provided below, taken from the CAT character in the game.
CAT
17
DIE:die.sma:30
LICK:lick.sma:30
HUNT:hunt.sma:30
#animation keys <KEY>: animation the key is for : frame of the animation
(can be float) : name of key
<KEY>:ATTACK1:18:HIT
<KEY>:ATTACK2:32:HIT
The last two lines (where <KEY>:ATTACK2:32:HIT) specify at which frame will
the given animation result in a hit. In this case, attack2, will hit the target as
the animation attack2.sma will reach frame/key 32.
To load the model in the Viewer application supplied with the MODKIT or
the game itself, make sure that all SMA SMS COL MDL files are available
and present in the same directory, otherwise the model will fail to load.
For each model, so as to prevent the game from crashing and to ensure
the game loads as it should, the essential components must be:
For the SMS model to load without any missing faces, all of the mesh's
vertices must be attached to at least one bone in 3DSMAx. (In case the
term is new to you, the mesh is the 3d wireframe).
The collision file is essential as any other component, so make sure you
include it, although the game may still load and the character may still
be collided with, the game may crash after a while if this file is missing.
18
Problems with the rendering of MDL models in the game
MDLs are used for non-animated objects such as equipment and scenery
props. Once you have a mesh ready in 3ds max you can export that as
an .mdl file ready for use if the game with the appropriate coding has
been created in the items/items.dat file.
It may be the case that you’ve seemingly done everything right in 3ds
max and the coding however the object you’ve made appears to have
an unusual shade when it is dropped in the scene.
This is a factor related to self illumination and can easily be solved by
changing the colour in the Blinn Basic Parameters inside the Material
Editor window. As you can see below, the colour chosen has an influence
on what colour the object is shaded when not being illuminated by an
intense source of light. Note the Yellow and Blue hues respectively.
19
For the reflection to work decently, make sure that you set it to a very low
value, such as 1 or 0 so that you will not get as much reflection.
You may set the refraction values to be high, such as 100 to further reduce
the reflection to acceptable levels. You may also need to reduce the
specular highlights level to the minimum.
Include the envmap.dds file in your items folder together with the texture
maps if you want your reflections to be animated, or exclude it if you want
it to be static.
20
FURTHER NOTES 2 – ANIMATING
BONES:
The size of the selection field for each character is determined by the
original size of the model's skeleton. So if in 3ds max you make a large
skeleton, eventhough you reduce its size in the monsters.dat scale, you
will still get a monster with a huge field of selection. Think about the final
size before setting up the biped skeleton.
As reference you may bear in mind that the size of the main character's
model occupies about one or maybe two squares of the 3ds max grid.
TEXTURE:
The texture map may be assigned to the mesh object through the map
editor. It may be modified through the "Unwrap UV" modifier later on.
SKIN:
Assign skin (i.e. attach the mesh to the bones) via the "PHYSIQUE" modifier
not the "SKIN" one. You might want to assign the individual vertex groups
manually; you may do that through "VERTEX LINKING" in "PSYSIQUE"
skinning.
ANIMATING:
21
If you need to move the centre of gravity you will have to assign it a
"Trajectory". Save the individual animations in SMA format, finally save the
SMS file.
MAIN ANIMATIONS:
IDLE
WALK
RUN
ATTACK
DIE
CAST
You may avoid making either, although you need at least one SMA
animation for the sms to load
- End of Notes -
22