Character Setup Overview: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Nesciuse moved page Character Setup Overview/en to Character Setup Overview without leaving a redirect: Move en subpage to basepage)
 
(14 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[http://saites.cn/freeasianpics.html free asian pics] [http://bendxthexsky.nightmail.ru/articles/s-pin.html 50s pin up girls] [http://baler.ugu.pl/new/one-way/ one way car rentals] [http://baler.ugu.pl/new/old-glory/ old glory] [http://tersky.profil.bz/library/beautiful-russian.html beautiful russian bride] [http://cahert.aboutus.vg/styles/jennifer-lopez/ jennifer lopez clothing line] [http://perkes.cn/scooter-mp3.html scooter mp3] [http://saites.cn/freespidersolitaire.html free spider solitaire] [http://metabothin.elbows.cn/ metabothin] [http://closedforlunch.profil.in/obese.html obese] [http://perkes.cn/ perkes.cn] [http://andrewjvb.aboutus.vg/resources/hand-trucks/ hand trucks lift] [http://lindsay-lohan-having-sex.elbows.cn/ lindsay lohan having sex] [http://saites.cn/freecasino.html free casino] [http://conveyors.lirra.cn/ conveyors] [http://theiamina.w8w.pl/content/golf-swing.html golf swing tip] [http://misssakic.profil.ms/data/bluesapphires.html bluesapphires] [http://ebony-hentai.straip.cn/ ebony hentai] [http://antilos.profil.in/html/inbound-call.html inbound call center services] [http://gogenator.friko.pl/library/russia/ russia] [http://villir.cn/tits-galore.html tits galore] [http://tersky.profil.bz/library/the-goonies.html the goonies] [http://screaminginfidelities.lirra.cn/ screaming infidelities] [http://twinkletoeash.profil.bz/topic/what-color/ what color is sepia] [http://razes.cn/brotherlaserprinterdriver.html brother laser printer driver] [http://just-a-girl-no-doubt.faults.cn/ just a girl no doubt] [http://gogenator.friko.pl/library/navidad/ navidad] [http://cah9i.friko.pl/new/reference-encyclopedias/ reference encyclopedias] [http://perkes.cn/free-shaved-galleries.html free shaved galleries] [http://bendxthexsky.nightmail.ru/articles/jungle-sound.html jungle sound clips] [http://baler.ugu.pl/new/kids-porn/ kids porn] [http://baler.ugu.pl/new/tioman/ tioman] [http://saites.cn/smallbusinessloan.html small business loan] [http://lord-griever.nightmail.ru/small/mario-brothers/ mario brothers 3 level 8] [http://villir.cn/chocolate-chip-cookie-recipe.html chocolate chip cookie recipe] [http://andrewjvb.aboutus.vg/resources/brittany-sky/ brittany sky] [http://antilos.profil.in/html/alltel-ringtone.html alltel ringtone] [http://villir.cn/sandwich-consulting.html sandwich consulting] [http://razes.cn/terrytate.html terry tate] [http://limewire-of-porn.straip.cn/ limewire of porn] [http://theiamina.w8w.pl/content/personal-website.html personal website hosting] [http://mariah-carrie.faults.cn/ mariah carrie] [http://krisbabe47.ugu.pl/small/hemp-body.html hemp body products] [http://fantastic4.lirra.cn/ fantastic 4] [http://krisbabe47.ugu.pl/small/goodbye-time.html goodbye time] [http://carmen-electra-pics.elbows.cn/ carmen electra pics] [http://saites.cn/youngcheerleaders.html young cheerleaders] [http://router.lirra.cn/ router] [http://villir.cn/topcams.html topcams] [http://theunknowntao.profil.bz/styles/cell-phone.html cell phone charms] [http://sam-houston.straip.cn/ sam houston] [http://kinkyjedi.about.vg/text/hard-cum/ hard cum] [http://cucumbersalad.lirra.cn/ cucumber salad] [http://banner-advertising.elbows.cn/ banner advertising] [http://villir.cn/seniorsex.html seniorsex] [http://lucy-lawless-nude.straip.cn/ lucy lawless nude] [http://cah9i.friko.pl/new/free-power/ free power point templates] [http://tersky.profil.bz/library/black-male.html black male galleries] [http://krisbabe47.ugu.pl/small/blackpeoplemeet.html blackpeoplemeet] [http://saites.cn/freeadultfriendfinder.html free adult friend finder] [http://twinkletoeash.profil.bz/topic/wedding-dress/ wedding dress sale melbourne] [http://klgrem.aboutus.vg/library/as-lovers.html as lovers go] [http://free-arcade.lusted.cn/ free arcade] [http://rachelstevens.lirra.cn/ rachel stevens] [http://gmc-parts.straip.cn/ gmc parts] [http://wizzu.profil.in/new/high-heels/ high heels shoes] [http://multimediaprojector.exally.cn/ multimedia projector] [http://perkes.cn/ perkes.cn] [http://free-ringtones-for-verizon.faults.cn/ free ringtones for verizon] [http://villir.cn/mischa-barton.html mischa barton] [http://lord-griever.nightmail.ru/small/home-theater/ home theater furniture] [http://eczema.exally.cn/ eczema] [http://razes.cn/maxofficerebate.html max office rebate] [http://saites.cn/mineralmakeup.html mineral makeup] [http://salad.straip.cn/ salad] [http://discountonlinepharmacy.exally.cn/ discount online pharmacy] [http://krisbabe47.ugu.pl/small/aids-new.html aids new virus] [http://asset-protection-strategies.lusted.cn/ asset protection strategies] [http://increase-male-sex-drive.lusted.cn/ increase male sex drive] [http://antisilence.profil.gs/topic/pc-tv/ pc tv monitor] [http://gogenator.friko.pl/library/online-casino/ online casino affiliate programs] [http://perkes.cn/elephant-porn.html elephant porn] [http://cahert.aboutus.vg/styles/parker-pens/ parker pens] [http://bendxthexsky.nightmail.ru/articles/carmen-palumbo.html carmen palumbo] [http://closedforlunch.profil.in/speaker-parts.html speaker parts] [http://bank-of-america-credit-card.straip.cn/ bank of america credit card] [http://saites.cn/ebonysexvideos.html ebony sex videos] [http://saites.cn/massagechairs.html massage chairs] [http://girlandgirl.lirra.cn/ girl and girl] [http://alexandra.lusted.cn/ alexandra] [http://msg.elbows.cn/ msg] [http://gogenator.friko.pl/library/tips-on/ tips on getting pregnant] [http://fishininthedark.exally.cn/ fishin in the dark] [http://footwear.exally.cn/ footwear] [http://perkes.cn/jeeps-for-sale.html jeeps for sale] [http://closedforlunch.profil.in/girls-voluptuous.html girls voluptuous amateurs] [http://twinkletoeash.profil.bz/topic/free-galleries/ free galleries legs pantyhose] [http://elbows.cn/ elbows.cn] [http://amoresperros812.profil.in/text/ford-pinto/ ford pinto] [http://cah9i.friko.pl/new/science-center/ science center los angeles california] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/eidsmb.html paxil online] [http://fifa.sapte.ro/images/thumb/cbfstf.html order clomid] [http://sursa.sapte.ro/images/avatars/small/whnkxt.html crested butte commercial property] [http://blog-de-pe.marte.ro/wp-content/wp-photos/photo/pubhqo.html boys cum] [http://pirate.sufx.net/gallery/files/cache/rvwxge.html download midi ringtones] [http://barra.hu/css/mptrti.html jojo online games] [http://zo00om.sapte.ro/files/cache/abdbeb.html connector manufacturer] [http://psycho.marte.ro/cod/cod/tishmu.html spring break spy cam] [http://redbullet.sufx.net/images/avatars/small/cwwevo.html buy cipro] [http://alsclan.sufx.net/e107_themes/lamb/video/hiprrb.html metformin online] [http://krll.sapte.ro/xxx/errors_log/jsvmjd.html verizon wireless ringtones] [http://rdslink.sufx.net/cache/tmp/feniqt.html car rental] [http://cnmv.sapte.ro/smilies/msn/lpjgjl.html kitchen faucets] [http://rdslink.sufx.net/cache/tmp/htuwhm.html download philips ringtones] [http://psycho.marte.ro/cod/cod/gktrms.html religious angels] [http://redbullet.sufx.net/images/avatars/small/rjrjrg.html order xenical] [http://cybernet.sufx.net/routing/skins/images/pics/klsmwv.html polyphonic ringtones] [http://host.sapte.ro/support/images/avatars/small/tgelpm.html apocrypha] [http://americanconquest.sufx.net/php-files/images/news/tmp/mwnhaj.html order cyclobenzaprine] [http://cybernet.sufx.net/routing/skins/images/pics/xhhplm.html accutane online] [http://redbullet.sufx.net/images/avatars/small/lwivln.html retro ringtones] [http://rdslink.sufx.net/cache/tmp/jnadfp.html ritalin online] [http://www.loyno.edu/~snkashis/autoviewer/images/2007-10-01/xvhoqw.html venlafaxine] [http://psycho.marte.ro/cod/cod/hhoebe.html smarty template php] [http://cnmv.sapte.ro/smilies/msn/slcgtk.html investors business daily] [http://redbullet.sufx.net/images/avatars/small/qngljd.html buy darvocet] [http://zo00om.sapte.ro/files/cache/iehjdh.html school teen thongs] [http://pirate.sufx.net/gallery/files/cache/mhfggb.html rolex replica watches] [http://pirate.sufx.net/gallery/files/cache/mhdpmt.html vicodin] [http://redbullet.sufx.net/images/avatars/small/rmxtgh.html buy vigrx] [http://redbullet.sufx.net/images/avatars/small/josbxv.html order didrex] [http://www.loyno.edu/~probono/paperwork/pdf_files/hqifbm.html rivotril] [http://moa.sapte.ro/albums/Desene/Sexe/thumb/dgrfrs.html nia long gallery] [http://pirate.sufx.net/gallery/files/cache/adebfk.html cheap effexor] [http://moa.sapte.ro/albums/Desene/Sexe/thumb/uilqxl.html dice] [http://barra.hu/css/dtjdri.html 4th history holiday july] [http://zo00om.sapte.ro/files/cache/hpvhwd.html free condoms] [http://onlinemarketing.sufx.net/twatch/tmp/ncejdp.html discount meridia] [http://beleakpe.marte.ro/phpBB/images/avatars/img/gwtcjw.html bluebook value] [http://host.sapte.ro/support/images/avatars/small/efhcwe.html doa hentai] [http://bancuri.marte.ro/jokepics/images/hatrun.html misty pokemon adult] [http://psycho.marte.ro/cod/cod/bqssks.html skater boys] [http://samax.sufx.net/wp-content/themes/royale/images/icons/vsltsb.html cheap cyclobenzaprine] [http://moa.sapte.ro/albums/Desene/Sexe/thumb/ffwcnr.html japanese anal] [http://host.sapte.ro/support/images/avatars/small/okmbuq.html mature gay] [http://pariurionline.sapte.ro/images/photoalbum/photo/rdrkql.html order diflucan] [http://barra.hu/css/rggdax.html machine safety vending] [http://mzd.marte.ro/osvs/galerie/thumbs/cache/gourjj.html golf digest] [http://host.sapte.ro/support/images/avatars/small/nhpxbw.html local prostitutes] [http://nightflyer.marte.ro/albums/userpics/thumb/ouepux.html muy jovencitas] [http://redbullet.sufx.net/images/avatars/small/hxchef.html buy lorazepam] [http://host.sapte.ro/support/images/avatars/small/fhopsr.html girls peeing pants] [http://blog-de-pe.marte.ro/wp-content/wp-photos/photo/makijv.html shang hai map] [http://cybernet.sufx.net/routing/skins/images/pics/eqpvun.html discount actos] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/qokaog.html download cool ringtones] [http://promox.marte.ro/jo/media/video/crdhat.html kids crafts] [http://barra.hu/css/dgrcbb.html eminem how come we dont even talk no more] [http://sursa.sapte.ro/images/avatars/small/xspare.html music stands] [http://zo00om.sapte.ro/files/cache/qcwpeb.html anima porn] [http://nightflyer.marte.ro/albums/userpics/thumb/gokhem.html atlanta apple service providers] [http://psycho.marte.ro/cod/cod/tdithq.html nick lachey porn] [http://host.sapte.ro/support/images/avatars/small/thdxxm.html free nude celebrity videos] [http://host.sapte.ro/support/images/avatars/small/khchne.html jpg header] [http://beleakpe.marte.ro/phpBB/images/avatars/img/brsbta.html advice for sex for teens] [http://moa.sapte.ro/albums/Desene/Sexe/thumb/lqncaj.html october fest] [http://zo00om.sapte.ro/files/cache/odidpx.html wizards of technology podcast] [http://moa.sapte.ro/albums/Desene/Sexe/thumb/bdalhg.html singapore airline a380] [http://mzd.marte.ro/osvs/galerie/thumbs/cache/uglddw.html klr 650] [http://liquid.sapte.ro/images/Thumbs/rhrpja.html download polyphonic ringtones] [http://psycho.marte.ro/cod/cod/xccgfm.html hells angel] [http://pariurionline.sapte.ro/images/photoalbum/photo/ukuaei.html sony ericsson ringtones] [http://onlinemarketing.sufx.net/twatch/tmp/afghkj.html cheap phendimetrazine] [http://fifa.sapte.ro/images/thumb/whbomd.html cheap phendimetrazine] [http://cybernet.sufx.net/routing/skins/images/pics/sscafw.html qwest ringtones] [http://onlinemarketing.sufx.net/twatch/tmp/pxvwxl.html cheap nexium] [http://krll.sapte.ro/xxx/errors_log/slhgrq.html sagem ringtones] [http://blog-de-pe.marte.ro/wp-content/wp-photos/photo/ewswdv.html cognitive] [http://elitesite.sufx.net/e107_files/public/avatars/small/hkxntp.html music ringtone] [http://kilometrul.sapte.ro/dw/m/picture/cache/ebtcwc.html buy alprazolam] [http://nightflyer.marte.ro/albums/userpics/thumb/ftjnth.html kat] [http://fifa.sapte.ro/images/thumb/fjqofb.html buy rivotril] [http://bancuri.marte.ro/jokepics/images/bdftvq.html used autos for sale] [http://moa.sapte.ro/albums/Desene/Sexe/thumb/smrikr.html girls in wet panties] [http://americanconquest.sufx.net/php-files/images/news/tmp/nwqvom.html imitrex online] [http://psycho.marte.ro/cod/cod/hnvjhh.html fuel injectors] [http://microlink.sufx.net/cache/Language/ixuibf.html ephedrine online] [http://sursa.sapte.ro/images/avatars/small/tgbxor.html anal cream pies] [http://gguild.sufx.net/forum/cache/tpl/kigebu.html carisoprodol] [http://pariurionline.sapte.ro/images/photoalbum/photo/ltrewc.html phendimetrazine] [http://freeadult.sapte.ro/Mature-porn/thumb/chktlg.html funny ringtone] [http://cybernet.sufx.net/routing/skins/images/pics/cxawvu.html cool ringtones] [http://sursa.sapte.ro/images/avatars/small/nopoio.html polly pockets] [http://host.sapte.ro/support/images/avatars/small/bkwamm.html frankie muniz penis] [http://cybernet.sufx.net/routing/skins/images/pics/kfwxdk.html darvocet] [http://samax.sufx.net/wp-content/themes/royale/images/icons/prmrro.html cyclobenzaprine] [http://krll.sapte.ro/xxx/errors_log/lqlwvu.html vocal ringtones] [http://elitesite.sufx.net/e107_files/public/avatars/small/kjhphk.html buy metronidazole] [http://freeadult.sapte.ro/Mature-porn/thumb/bdxpnx.html vicodin] [http://cybernet.sufx.net/routing/skins/images/pics/wvwsff.html mobile ringtone] [http://redbullet.sufx.net/images/avatars/small/tstukv.html cheap ionamin]
{{LanguageBar}}
[[Category:Modeling]]
 
 
The following procedure is a step-by-step overview of how to prepare and compile a character for use in the Source engine, using the SOFTIMAGE|XSI Mod Tool.
The following procedure is a step-by-step overview of how to prepare and compile a character for use in the Source engine, using the SOFTIMAGE|XSI Mod Tool.


  {{warning|The export process currently works for XSI 4+ and is reported to work for 5.0, but '''not 5.0.1 or 5.1'''. There is currently no available fix for the Valve addon using the latest version of XSI.}}
  {{warning|The .smd exporter addon supplied with the Source SDK does NOT work with Current versions of XSI and XSI Mod Tool. There is an updated version of the addon available [http://files.filefront.com/ValveSource602xsiaddonzip/;13355213;/fileinfo.html here], but it still will not work with Mod Tool 7.5, the most current version. In order for it to work, you'll need to download Mod Tool 6.01 [http://www.moddb.com/downloads/xsi-mod-tool-601 here].}}


=Build Your Model=
=Build Your Model=
Line 62: Line 63:
* Create and position spheres for eyeball reference. These spheres should not be textured or enveloped, and will not be exported with actual model geometry.
* Create and position spheres for eyeball reference. These spheres should not be textured or enveloped, and will not be exported with actual model geometry.


[[Image:qc_eyes_thumb.jpg | click to view]]
[[File:qc_eyes_thumb.jpg | click to view]]


* A VBS file (Visual Basic Script) such as [http://www.veazie.org/Tutorials/Scripts/display_position.vbs this one] can be used to determine the positions of the centers of the spheres. Download the script file and save it with a <code>.vbs</code> extension to a location accessible from within XSI. In XSI, open the Script Editor, load the script and press <code>F5</code> to execute the script. Click on the sphere center in a Front view to get X-Y values and in a Top or Right view to get the Z value. Those positions are used for input to the <code>QCEyes</code> application or to manually update the <code>.qc</code> file for the model.
* A VBS file (Visual Basic Script) such as [http://www.veazie.org/Tutorials/Scripts/display_position.vbs this one] can be used to determine the positions of the centers of the spheres. Download the script file and save it with a <code>.vbs</code> extension to a location accessible from within XSI. In XSI, open the Script Editor, load the script and press <code>F5</code> to execute the script. Click on the sphere center in a Front view to get X-Y values and in a Top or Right view to get the Z value. Those positions are used for input to the <code>QCEyes</code> application or to manually update the <code>.qc</code> file for the model.
Line 94: Line 95:
You'll need to create shapekeys for frames 1-34. For the complete list of keyshapes see the [[Character Facial Animation Shapekey Set]] page.
You'll need to create shapekeys for frames 1-34. For the complete list of keyshapes see the [[Character Facial Animation Shapekey Set]] page.


* To create a new keyshape, translate, rotate, or scale points to 'sculpt' the keyshape, then make sure that you have the appropriate cluster selected before you hit Animate > Deform > Shape > Save Shape Key.
* To create a new keyshape, translate, rotate, or scale points to 'sculpt' the keyshape, then make sure that you have the appropriate cluster selected before you hit '''Animate > Deform > Shape > Save Shape Key'''.
** Since XSI 5.0, '''Save Shape Key''' has been renamed to '''Store and Apply Shape Key'''
** Make sure that the Construction Mode is set to '''Shape Modeling Mode'''
* To copy a shapekey to another frame number you can use the script ValveSource > Shape Tools > Copy Shape Keys.
* To copy a shapekey to another frame number you can use the script ValveSource > Shape Tools > Copy Shape Keys.


Line 105: Line 108:
# Finally, hit '''ValveSource > Shape Tools > Blend Shape Keys > Blend Shape'''. This will update the shape key at the destination frame by blending the points between the two frames based on the weight map.
# Finally, hit '''ValveSource > Shape Tools > Blend Shape Keys > Blend Shape'''. This will update the shape key at the destination frame by blending the points between the two frames based on the weight map.


[[Image:face_key_thumb.jpg | click to view]]
[[File:face_key_thumb.jpg | click to view]]


=Import the Character Rig=
=Import the Character Rig=
Line 117: Line 120:
To add interpolator (helper) bones to your rig to help maintain better joint and limb deformations, you can use '''ValveSource > Helper Bone Tool > Import helper bones'''.
To add interpolator (helper) bones to your rig to help maintain better joint and limb deformations, you can use '''ValveSource > Helper Bone Tool > Import helper bones'''.


[[Image:valvebiped_thumb.jpg | click to view]]
[[File:valvebiped_thumb.jpg | click to view]]


=Envelope the Character Mesh to the Skeleton=
=[[Rigging_in_XSI|Envelope the Character Mesh to the Skeleton]]=


=Export a .smd File=
=Export a .smd File=
Line 150: Line 153:
* Doing it by hand, as described in the [[Eye Position Setup]] tutorial.
* Doing it by hand, as described in the [[Eye Position Setup]] tutorial.


[[Image:qc_eyes_thumb.jpg | click to view]]
[[File:qc_eyes_thumb.jpg | click to view]]


=Edit the .qc File=
=Edit the .qc File=
Line 169: Line 172:
If you wish to make further changes to your model, see [[Making Changes to Your Character Model]].
If you wish to make further changes to your model, see [[Making Changes to Your Character Model]].


{{otherlang:en}} {{otherlang:en:jp|Character Setup Overview:jp}}
[[Category:Modeling]]

Latest revision as of 05:22, 12 July 2024

English (en)日本語 (ja)Translate (Translate)


The following procedure is a step-by-step overview of how to prepare and compile a character for use in the Source engine, using the SOFTIMAGE|XSI Mod Tool.

Warning.pngWarning:The .smd exporter addon supplied with the Source SDK does NOT work with Current versions of XSI and XSI Mod Tool. There is an updated version of the addon available here, but it still will not work with Mod Tool 7.5, the most current version. In order for it to work, you'll need to download Mod Tool 6.01 here.

Build Your Model

Warning.pngWarning:The term model is used in several different (and sometimes incorrect) ways in modeling discussions. It can variously mean:
  • The character seen in-game or in the Half-Life Model Viewer, usually loaded from a .mdl file; the combination of mesh, bones and animations comprising a character. Although texture names and paths to texture files are imbedded in the .mdl file, the textures themselves are not part of the character model.
  • Incorrectly as the surface mesh created or imported into a modeling application, simulating the surface or skin of the character. Mesh or character mesh is a more precise term to be used for this modeling object.
  • A distinct type of object in the XSI Mod Tool; in XSI, for Valve character model examples: a container for a heirarchical set of deformers ('bones') and their characteristics, and for groups of objects such as animation controls for the deformers.
Note.pngNote:Examine the context closely when running across the word model, on this or any page discussing 'models'.


The Goal

The purpose of modeling in the XSI Mod Tool is to put together information and export files which the model compiler, studiomdl.exe, will use to create the files necessary for the game engine (HL2, HL2DM, CS:S, etc.) to display an animated character in-game.

With regard to the XSI Mod Tool, Studiomdl will need:

  • a model reference .smd file
  • an animation or skeletal reference .smd file
  • optionally, a vertex animation .vta file (primarily for facial animations)

A detailed description of what's contained in those files can be found on the SMD file format page.

General Construction Steps

In general, there are several steps for creating a character model:

  • Create or import a mesh for the character, and apply a texture to the mesh. This provides the 'skin' that will be seen when the character model is viewed.
  • Create or import a rig (deformers and controls). This provides the structure on which the 'skin' will be placed and provides the means to animate or provide movement for the character.
  • Envelope the mesh to the deformers. The 'skin' will now move with the skeleton and be rendered as a solid object.
  • Create new or adapt existing animations for the character.
  • Export model reference, animation and, optionally, vertex animation files.
  • Create or modify .qc and, optionally, .qci files.
  • Compile the model.


Note.pngNote:If a model is being constructed using the XSI Mod Tool, the number of triangles in the model must be keep within export limits: 7500 triangles per enveloped mesh or character, or 4000 triangles for prop objects or meshes without skeletons.

To get a triangle count for selected objects in XSI:

  1. Do one of the following:
    1. Click any viewport's eye icon and choose Visibility Options from the menu.
    2. From the main menu, choose View > Visibility Options (All Cameras). The Visibility Options property editor opens.
  2. From the Stats tab, activate the Selection/Scene Info > Show Selection Info option.

Texture The Character Mesh

  1. If the mesh does not have a Texture Projection (check in Explorer):
    1. Click Get->Property->Texture Projection
    2. Select a projection appropriate for the mesh.
  2. Select all the polygons in the portion of the mesh you want to texture (e.g., the head).
  3. Click Edit->Create Cluster.
  4. Click Render->Get-Texture->Image and answer Yes to make a local material.
  5. In the image section of the property box, click New and select New from file..
  6. Select the texture for the cluster just created.
  7. Open the Texture Editor (alt-7) and UV map the cluster points as appropriate.

For information on how textures in XSI relate to materials in the Source engine, refer to Character Textures and Materials.

Set Up the Eyes

  • Each eye needs its own texture. For example, "eyeball_r.tga" and "eyeball_l.tga", or "dark_eyeball_r.tga" and "dark_eyeball_l.tga" (for the right and left eyes respectively) are used as the eye textures for most Valve characters. These texture names are accessed for rendering the eyeball shaders in the engine.
  • Create and position spheres for eyeball reference. These spheres should not be textured or enveloped, and will not be exported with actual model geometry.

click to view

  • A VBS file (Visual Basic Script) such as this one can be used to determine the positions of the centers of the spheres. Download the script file and save it with a .vbs extension to a location accessible from within XSI. In XSI, open the Script Editor, load the script and press F5 to execute the script. Click on the sphere center in a Front view to get X-Y values and in a Top or Right view to get the Z value. Those positions are used for input to the QCEyes application or to manually update the .qc file for the model.

Set Up the Mouth

The mouth geometry also needs its own texture (e.g., "mouth.tga" or "fmouth.tga") which has the texture data for the upper and lower teeth and inner mouth. The texture name is accessed by the mouth shader in the engine.

Freeze Your Model

Before setting up and creating the facial animations, freeze the model using XSI's Freeze and Transform > Freeze All Transforms commands.

Define Animation Clusters

Create two clusters for the facial shapekeys (morphs):

  • One cluster for the flexible portion of the front of the face - from the lower front of the neck back to the front edge of the ears and up to the upper forehead.
Note.pngNote:Be sure NOT to include the teeth or inner mouth polygons in this cluster.
  • A separate cluster for the lower teeth.

Initialize the Shapekeys

On each animation cluster, initialize the shapekeys for frames 0 through 35.

A quick way to do this is to run ValveSource> Shape Tools > Init Shape Keys on each animation cluster. Be sure the cluster is selected before running the script. This will create a keyshape copy of frame 0 on frames 1 through 40

Create Shapekeys

You'll need to create shapekeys for frames 1-34. For the complete list of keyshapes see the Character Facial Animation Shapekey Set page.

  • To create a new keyshape, translate, rotate, or scale points to 'sculpt' the keyshape, then make sure that you have the appropriate cluster selected before you hit Animate > Deform > Shape > Save Shape Key.
    • Since XSI 5.0, Save Shape Key has been renamed to Store and Apply Shape Key
    • Make sure that the Construction Mode is set to Shape Modeling Mode
  • To copy a shapekey to another frame number you can use the script ValveSource > Shape Tools > Copy Shape Keys.

Make sure to select the cluster with the corresponding shapekey, then run the script; you'll be prompted for the destination frame number.

You can blend a portion of one shapekey with another shapekey as follows:

  1. The first step is to select a cluster on the model and then hit ValveSource > Shape Tools > Blend Shape Keys > Set Cluster . This defines the cluster on which the shape key blending will occur. Points outside this cluster will never be changed.
  2. The second step is to make sure that proportional modeling is turned on, move to the frame that you want to blend from, then make a proportional selection of points in the cluster. This defines the source frame and the weight map for the blending.
  3. The third step is to move the key frame index (right click and drag in the timeline) to set the destination frame for the blending. You'll notice a green frame indicator on the destination frame, the red indicator on the source frame.
  4. Finally, hit ValveSource > Shape Tools > Blend Shape Keys > Blend Shape. This will update the shape key at the destination frame by blending the points between the two frames based on the weight map.

click to view

Import the Character Rig

You'll need to get a character rig. Use ValveSource > Characters > Biped Guide to set the size and position of your rig, then run ValveSource > Characters > Create Rig From Guide to create the rig.

You can also get a default male or female Valve rig with ValveSource > Helper Bone Tool > Default (Male/Female) Rig to load a Valve rig.

To add interpolator (helper) bones to your rig to help maintain better joint and limb deformations, you can use ValveSource > Helper Bone Tool > Import helper bones.

click to view

Envelope the Character Mesh to the Skeleton

Export a .smd File

The .smd file contains geometry, textures, envelope data and skeletal data.

To export a .smd file:

  1. Select your enveloped mesh and the entire ValveBiped branch.
  2. Open the SMD Export Options dialog from ValveSource> Export SMD....
  3. Select Model (.SMD) as your file type. Leave all Options checked, and click OK.
  4. Navigate to the appropriate directory and name for the exported .smd file and click OK.

Export a .VTA File.

The .VTA file contains facial animation data.

To export a .VTA file:

  1. Select your enveloped mesh and the entire ValveBiped branch.
  2. Open the SMD Export Options dialog from ValveSource> Export SMD....
  3. Select Vertex Animation (.VTA) as your file type, leave all Options checked, and hit OK.
  4. Navigate to the appropriate directory and name for the exported .VTA file and hit OK.

Set up Character Eye Data for the .qc File.

There are two ways to set up the character eye data:

  • Using the QCEyes applet: run QCEyes and the help screens/text will take you through the process.
  • Doing it by hand, as described in the Eye Position Setup tutorial.

click to view

Edit the .qc File

The .qc file is the script for compiling your character resources (geometry, textures, animations, etc.) into a run-time model (.MDL).

To compile a new .MDL, you’ll need to do the following:

  1. Update the eye/face data (see Set Up the Eyes).
  2. Update the names of the model (modelname_reference.smd) and animation files (modelname_expressions.VTA) to the same names you exported from XSI.
  3. Update the run-time model name (modelname.MDL) to what you want the model to be named.

Compile the run-time model with StudioMDL

See Compiling Models for information on using StudioMDL to compile your character.


If you wish to make further changes to your model, see Making Changes to Your Character Model.