Design 2, Design 4 (Computer and Video Games) | |
Unit 20 - 29th March 2003 |
Importing a Custom Character Model with UT2003 Animations
There is more than one way to get your model for a player pawn into Unreal. The method described underneath is based on a strategy developed by Wormslayer. Another way is demonstrated in a video tutorial which you can download here. (This is a 5.4 MegaBytes download which unzippes as an .avi file which you can play if you have DivX 5 installed.)
All right: back to Wormslayer's method, which proved to be reliable and fast.
You will need the ActorX
plugins, for StudioMax. |
|
Import
your model into unreal editor and link it to an existing skeletal animation
and karma rag-doll: Open the animation browser. Use
the mesh import command on the file menu to bring your model into the
package, at this time you can use a little time saving trick and force
the editor to link your model with a karma actor (rag doll) - all you
have to do is append the name of a .ka that's already in the game data
to your mesh name. For my HitmanMesh model, I wanted to use the Male
karma actor, so I imported the mesh into the package as "HitmanMesh_Male".
Hopefully your model looks sweet, and all that's left to do now is to separate your model into its own ukx and utx packages - From the Mesh menu, select Rename Mesh, and change the package name to something unique then save the new file off to disk, also save off the skin as a utx from the texture browser (you might want to DXT1 compress the skin with texture browser before you save it.
Finally, all that's left is to write up a .upl file and add some bio info to the xplayers.int file and you should be fragging away with your model. The file which tells
Unreal Player Setup of what to display and what mesh, texture and behaviour
to use for the player is called "Hitman.upl" (or any .upl
filename you want to use.) |
|
[Public] Player=(DefaultName="Hitman",Mesh=HitmanModel.HitmanMesh_Male, species=xGame.SPECIES_Merc,BodySkin=HitmanTextures.HitmanSkin,FaceSkin=HitmanTextures.HitmanSkin, Portrait=HitmanTextures.HitmanPortrait,Text=XPlayers.HitmanBio,Sex=Male) |
If you want to use the ActorX
plugin, you should take care to have the correct version installed.
StudioMax R4 requires ActorX (vers. 4)
(68.7 kB).
whereas StudioMax R5 requires ActorX
(vers. 5) (68.8 kB).
Another complete set of textures, animation and Unreal player package is contained in UT2-Lady (some 4 MB).