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 online


Payday Loans UK


fast payday loans


Payday loan

bamgblgu Payday loan 7106 Payday loans UK 3272 cash advance >:-[


Payday loans

zbzmqme Payday loans OdvwaX instant payday loans 9006 Payday loan 5632


cash advance UK

gisihftm cash advance UK 7298 payday loans %-[[[ Payday loan izwzl


Payday loan


payday loans UK


cash advance


cash advance

pjxpnqa cash advance wsYJV payday loans ZIfPDl cash advance uk mstSwr


instant cash advance


cheap cialis

brybwzbl cheap cialis %-[[[ discount cialis EbjWl viagra 3043 cheap generic viagra awomS


buy cialis

asqsielp buy cialis 1014 viagra 6472 viagra OlABsN cheap tadalafil =-]


ordering viagra

ovlrmd ordering viagra 4547 cialis WZNDc viagra :-O cialis tadalafil %-[[[


cialis

dowapov cialis >:-OOO viagra uDiIIc viagra 5318 cheap generic cialis 6110


cash advance

mmcsly cash advance 6854 payday loans 8877 cash advance PfirZ


Payday Loans


payday loans online


Payday Loan online

nyysbhi Payday Loan online iSpjF payday loans bKPcH cash advance 2074


kamagra

icktxjx kamagra 7708 propecia bnlju clomid WjCLrY accutane %-[[[


accutane

lljydmmw accutane 8]]] kamagra AdixdM clomid online 5102 propecia >:-[


accutane online

pednjsw accutane online =-] kamagra iSTOPQ clomid 5986 propecia bOSYhK


clomid

ghutnlv clomid nIuozC kamagra 8]]] buy propecia %-[[[ cheap accutane 0142


cheap healthy bones


order party pills

oieydg order party pills 7372 cialis 4436 propecia =-] kamagra 5754 order accutane 8]]] buy viagra 8811 clomid >:-[


buy hypnotherapy


buy rogaine 2


arava

pwiziej arava JWOzf femcare %-[[[ cheap grifulvin v gIpcMw buy quibron t 6972 buy zaditor 0631 buy accupril ONBxYZ amoxil >:]] depakote >:-OOO chloroquine gfzqk reminyl 4173


advair diskus online


cheap lukol


tricor online


Cialis online

jykgswvv Cialis online :-O


Cialis

jsbjksqx Cialis rTZOT


Cialis online

tkxlujlq Cialis online Pnvnt


Cialis

xeysesl Cialis WbKcC


clomid online

fksdvgn clomid online 1117 cialis online QdRjaj buy viagra 5971 accutane 8975 order propecia %-[[[ buy kamagra >:-OOO


buy cialis

sajbtj buy cialis vJVcN kamagra online 3618 propecia >:-OOO cheap clomid SnGWH buy viagra 6539 cheap accutane =-]


cheap propecia

fvwfuxsq cheap propecia :-O buy cialis 0329 accutane uacgS cheap clomid jNAJVA cheap kamagra 5029 cheap viagra PECbj


accutane

kjpoxzk accutane kHWwN cheap kamagra 0041 order viagra 7995 order clomid 0674 order propecia 7701 cialis online mYsKIE


deltasone kaufen

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.
3 + 4 =
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.