Creating a Keyboard Physics Prop for Source with Maya

Creating a Keyboard Physics Prop for Source Using Maya

So, you're a stubborn Maya User and have a masochistic desire to create your models without having to touch XSI or Max.  I can completely understand not wanting to touch 3D Studio Max.  You're in a safe place here.  Assuming you have already looked all around to find a decent tutorial for creating a prop from scratch using Maya, I'm guessing that you didn't find anything adequate yet.  The best example out there currently is Palmer's Maya Prop Exporting Tutorial, which is a great resource, but still only covers the guidelines for exporting your mesh.  It does not cover UV Mapping or things of that nature, which is why I decided to write this tutorial.  The aim is to create a prop from the ground up, and by the end of this tutorial you should have little problem creating your own Maya physics props.

Also, this tutorial will teach you have to export your models using both Prall's exporter scripts and Valve's own SMD exporter plugin for Maya.  It's like having a threesome only it's not something to brag to your friends about.

Step 1 - Getting Started & What You Need

 

This tutorial uses the following software and tools to create a Source model:

  • Alias Maya (version 4 to version 7.5) or Autodesk Maya (version 8 to Maya 2008)
  • Prall's Half-Life 2 Exporter v2.5 for Maya, the collection of scripts required to import or export SMD files in Maya. OR you can use Valve's SMD Exporter.
  • Valve Source SDK (Installed through Steam)
  • Adobe Photoshop or any other program capable of creating textures and saving them in Targa (.TGA) format.
  • NVIDIA Adobe Photoshop DDS Plug-in, optional unless you wish to create normal maps for the texture that goes on your model.
  • GUI StudioMDL (a GUI frontend for studiomdl.exe used to compile the models)
  • Source MDL Texture Info, a program that will help debug texture info about a model should you run into problems.  Not required for the tutorial, but recommended.
  • A text editor of some sort.  I use TextPad.

 

 

Installing Prall's Half-Life 2 Exporter

Some of you might already have noticed that the latest (and final) version of this already comes installed with the Source SDK in the %sourcesdk%\maya\7.0 directory (%sourcesdk% is a Windows environment variable to points to the Source SDK installation directory, usually something like C:\Program Files\Steam\steamapps\<steam username>\sourcesdk\).  The exporter itself is not an executable program or a Maya plug-in library (.mll file), but a collection scripts written in MEL (Maya's embedded scripting language). 

Installing this collection of scripts is very easy.  All you have to do is select all of the files and folders inside the %sourcesdk\maya\7.0 directory and copy them over to the following directory:

  • Windows XP: C:\Documents and Settings\<your username>\My Documents\maya\<current version number>\
  • Windows Vista: C:\Users\<your username>\Documents\maya\<current version number>\

The directories should already be created by your Maya installation.  Copying these files over won't overwrite anything important, so don't worry about saying "Yes to All" if you get some warnings saying that directoryes like prefs\ already exist.  If you have Maya already open, you should close it and restart it, and you will see that in the File menu a bunch of options have shown up giving you the option to import/export SMDs.

 

Installing Valve's SMD Importer/Exporter

Valve recently (re?)wrote their own SMD importer/exporter.  The advantage of Valve's Importer/Exporter is that it uses a Maya Library (.mll file) to do the SMD file I/O operations, thus logically speeding up the process of opening or saving a .SMD file since it was written in a lower level language (C++).  Logic dictates that, because despite the fact that Maya relies heavily on MEL to function I doubt that file I/O is one of those things.

Rather than have you copy files over (by the way, Valve's importer/exporter is in %soucesdk%/maya/7.0/modules), they've set you up with a nice .bat file to click on that will automatically do some background work (setting environmental variables) for you and then load up Maya.  To enable the SMD I/O library plug-in in Maya, click on WindowSettings/PreferencesPlug-in Manager in the menu and a dialog box should appear listing out the various registered plug-ins.  Under the loaded column check the box for vstSmdIO.mll.  And that's it!

Comments


payday loans


payday loans


payday loans


payday advance


payday loans


cash advances

goipsje cash advances PRDyX quick quid 1712 payday loans >:-OOO short term loan 5882 payday loans 8]]]


payday loans

nthzxypx payday loans RYdNW payday loans IhKSfb payday loans :-O payday loans tSrFh payday loans 8]]]


same day loans


short term loan


payday loans

vexcaff payday loans DOMKjz payday loans tKDlrg payday loans 2943


Payday advance

npyorl Payday advance 0212 payday loans 6249 payday loans JBpqBn


payday loans

mvrrdlkd payday loans 7169 payday loans :-O payday loans 3964


buy viagra

fzdtlwl buy viagra :-O viagra >:-[ cheap cialis jmgRgc buy cialis 4525 cheap viagra online DinZlY


buy viagra

ugufwp buy viagra 7095 cheap viagra =-] cialis coupon >:-OOO viagra bWjej cialis coupon >:-[


cheap cialis

lncnlnj cheap cialis VfXFI buy viagra kkcNGY cialis sale KeSkZ cheap viagra 8]]] viagra 1696


buy cialis

nzrmdxye buy cialis tQoQq cheap cialis bVwHIb buy viagra %-[[[ cheap viagra 6838 viagra :-O


payday loans

sydyije payday loans =-] quick payday loans eOyUbT pay day loans ZbVFq


no fax payday loans

tpxlytho no fax payday loans =-] payday loans %-[[[ payday loans aQskI


payday loans UK


fast payday loan


Quick Quid


quick payday loans

gogyjsuj quick payday loans >:-OOO cash advances 8]]] pay day loans 7113


no fax payday loans


payday cash

yfufpr payday cash >:-OOO cash advance 8]]] payday loan Canada VxESg


fast cash advance


pay day loan


quick payday loans


Quick Quid

xmctbut Quick Quid vMlPK pay day loan :-O Cash Advance >:-OOO


fast cash advance

pacyjdq fast cash advance rqDUX pay day loans 6314 quickquid yTzMCV


Quick Quid


quick payday loans

ghilihsi quick payday loans ocfeyC payday loan Canada QPJuIz Payday UK 3068


payday cash


cheap valium

lvaqelv cheap valium 9333 rem again BsaQN vp rx oil 8192 ampicillin =-] cialia 8]]]


cheap deltasone

gmbiktl cheap deltasone aPaELY order eriacta 8]]] zyban mNIuY clomid 9235 cheap viagra =-]


phentermine

kninxa phentermine =-] cialis 2733 zyban khWuHt buy virility pills >:]] clomid 1401


xenical

xwdunccu xenical oACNbl retin a qhsCcw cialis online 9055 levitra =-] order zantac 6772


anti acidity


albenza

tsjpkk albenza QZDPkQ desyrel PomTr cialis online wgsCjM kamagra BcWBu viagra :-O


cheap clomid

fcrdxjzy cheap clomid dIzSqY ampicillin >:-OOO zantac 5319 viagra %-[[[ cialis >:-OOO


indinavir

clfyixq indinavir NMDlhV viagra bestellen 1297 womenra NDhaAv cialis online :-O buy viagra online dEcsZ


no fax pay day loan


payday loan Alberta

riuhnj payday loan Alberta >:]] pay day loan TQBdkZ cash advance 1901 Payday UK LCFJry


payday Advance uk


payday advance


online payday


pay day loan

fhgtxa pay day loan :-O Cash Advance :-O Quick Quid ZsJof


same day loan

pjtucnk same day loan 6613 payday loan TIVOKh Cash Advance 0489


payday loan


personal loans


pounds till payday

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <em> <b> <u> <i> <strong> <sub> <sup> <quote> <blockquote> <pre> <code> <cite> <strike>
  • Lines and paragraphs break automatically.
  • Use <!--pagebreak--> to create page breaks.
  • Image links from G2 are formatted for use with Lightbox.V2

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Copyright © 2005-2007 KD Mahoney. Valve reSource is in no way affiliated with Valve or the Valve Source engine.