|
|
Line 1: |
Line 1: |
| [http://lumayagrealty.com/catalog/images/pics/uotntp.html ancient clothing and culture of india] [http://tch-voyages.com/documents/prague/896/fjhvam.html ohio diamond buyer] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/qawrfw.html wild woods lodge] [http://www.hdac.org/hdfaq/faq/emwctf.html personal property law] [http://lumayagrealty.com/catalog/images/pics/seohgt.html used furniture in houston tx] [http://xuccco.org/themes/AT-Green3/iowwcg.html and so it goes guitar tab] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/gmmxtf.html soybean growth and development] [http://smallbizbohol.com/democatalog/images/baner/lmwfhb.html 3d desktop themes] [http://talentmodeles.com/mannequin/images/cache/dgtkal.html evil music] [http://www.biblored.org.co/agenda_actividades/programas/images/dpfpnu.html valley stream station] [http://xuccco.org/themes/AT-Green3/dtgsks.html 14 celebrated french holiday july] [http://ankelia-nature.com/catalogues/catalogues/idiend.html watching my wife being fucked] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/ofmfpa.html neurology cme] [http://xuccco.org/themes/AT-Green3/fqemnm.html origin of dollar sign] [http://coastguard.gov.ph/content.old/license/rjhnlp.html student led conferences forms] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/kwrdfs.html essential functional skill] [http://www.lewakins.com/sr/images/nbipss.html examination of the eyes] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/mvaihp.html tax pro] [http://tarsierfoundation.org/content/license/intcob.html rise against music videos] [http://www.norcab.com.au/joeavatiforum/templates/cache/spxuqr.html 16 black rims] [http://xuccco.org/themes/AT-Green3/eckhmg.html robert de lasalle] [http://www.lewakins.com/sr/images/bhleqh.html small in ground pool] [http://talentmodeles.com/mannequin/images/cache/ultvpv.html studio theater dc] [http://www.lewakins.com/sr/images/guwabg.html marketing online affiliate promotion internet business] [http://talentmodeles.com/mannequin/images/cache/nagfgk.html underground storage tank regulation] [http://panties-pictures.com/free/lib/temp/tieirp.html nasty young pussy] [http://www.biblored.org.co/agenda_actividades/programas/images/keqjej.html art clip wings] [http://roycemotor.com/carpics/cache/avrgoj.html someone told me lyrics] [http://www.lewakins.com/sr/images/koudet.html student software pocket pc] [http://hoosierfishing.com/phpBB/images/avatars/avatar/cqhgrc.html msn premium software download] [http://indianaoutfitters.com/s/info/tmp/mevjgw.html orange county tattoo parlor] [http://smallbizbohol.com/democatalog/images/baner/axkbvk.html weather for september 2005] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/gxxnwr.html red book carpets] [http://hoosierfishing.com/phpBB/images/avatars/avatar/aftxsm.html rights under the fair credit reporting] [http://indianaoutfitters.com/s/info/tmp/isdunw.html anymous surfing] [http://smallbizbohol.com/democatalog/images/baner/wtncmf.html asia hotel bangkok map] [http://asie-voyages.com/upload/images/lens/fibihj.html london rail fares] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/kiikrr.html evangelical ministry new york] [http://panties-pictures.com/free/lib/temp/drtpcg.html toronto college and university] [http://lumayagrealty.com/catalog/images/pics/oprwid.html jasmine st claire] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/bbxvoe.html news dominica] [http://coastguard.gov.ph/content.old/license/wwsvil.html she sends] [http://tarsierfoundation.org/content/license/fgpgew.html action 9 news charlotte nc] [http://asie-voyages.com/upload/images/lens/fhjjjo.html ph lab report] [http://tch-voyages.com/documents/prague/896/chhavh.html laptop notebooks reviews] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/wwcxml.html the magicians tower] [http://ankelia-nature.com/catalogues/catalogues/lxtklf.html adsl modem linux] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/onkfxw.html play free car racing game now] [http://asie-voyages.com/upload/images/lens/vahnih.html west hartford ct restaurants] [http://asie-voyages.com/upload/images/lens/fxuske.html ip table] [http://asie-voyages.com/upload/images/lens/qxewkj.html what is a postscript file] [http://www.biblored.org.co/agenda_actividades/programas/images/xucdqv.html lisas floral] [http://www.biblored.org.co/agenda_actividades/programas/images/rqgamw.html i heard em say lyrics] [http://hoosierfishing.com/phpBB/images/avatars/avatar/desrik.html add manufacturing off site url] [http://panties-pictures.com/free/lib/temp/dnpwug.html set designs] [http://tarsierfoundation.org/content/license/dncusc.html admission last date] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/gjvpju.html asp news] [http://www.lewakins.com/sr/images/sgfvua.html indianpolis star] [http://lumayagrealty.com/catalog/images/pics/ixviui.html painter 9 brushes] [http://coastguard.gov.ph/content.old/license/nvkvnc.html laptop intergrated wireless adapter xp] [http://panties-pictures.com/free/lib/temp/fpjuea.html audit income tax] [http://hoosierfishing.com/phpBB/images/avatars/avatar/qtikfd.html i wanna be your lover song] [http://panties-pictures.com/free/lib/temp/dnsuak.html tarte smooth] [http://indianaoutfitters.com/s/info/tmp/pplhkc.html aftermarket wheels for car] [http://roycemotor.com/carpics/cache/lrkuwe.html tu madre tambien] [http://ankelia-nature.com/catalogues/catalogues/iigfps.html medical board examination] [http://panties-pictures.com/free/lib/temp/fefruk.html pan american championships 2005] [http://xuccco.org/themes/AT-Green3/unhlmf.html award medal] [http://asie-voyages.com/upload/images/lens/hvknbr.html teenage girls with red hair] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/rbkdlx.html excel minimize] [http://tarsierfoundation.org/content/license/qlokua.html qt kde windows] [http://xuccco.org/themes/AT-Green3/qifrcm.html introducing a dog to a cat home] [http://www.norcab.com.au/joeavatiforum/templates/cache/hsnuvc.html please please tell me now] [http://www.lewakins.com/sr/images/oemdjh.html the carolinas usa] [http://indianaoutfitters.com/s/info/tmp/nmvqpk.html autocrine paracrine] [http://asie-voyages.com/upload/images/lens/kqvdfc.html art schools pennsylvania] [http://indianaoutfitters.com/s/info/tmp/abboet.html s african pop music] [http://www.hdac.org/hdfaq/faq/pxfaxi.html jennifer burton pics] [http://www.biblored.org.co/agenda_actividades/programas/images/hpwoue.html lost embrace reviews] [http://www.youthfitnesssolutions.com/FTP1/page9/efkilp.html live cameras in london] [http://www.biblored.org.co/agenda_actividades/programas/images/ccfkmc.html exchange speed trap] [http://smallbizbohol.com/democatalog/images/baner/rbrhln.html 1 card gb memory sandisk] [http://indianaoutfitters.com/s/info/tmp/vekcmr.html infection sign wound] [http://roycemotor.com/carpics/cache/dwssxa.html site builders free] [http://lumayagrealty.com/catalog/images/pics/cxemkx.html marshall fields and african american and chicago] [http://panties-pictures.com/free/lib/temp/qowkej.html editor html palm] [http://www.lewakins.com/sr/images/nnijba.html used honda civic car] [http://ankelia-nature.com/catalogues/catalogues/rxrfsu.html insurance landslide] [http://panties-pictures.com/free/lib/temp/ohfdgf.html photos of brad pitt and angelina jolie] [http://lumayagrealty.com/catalog/images/pics/ewdqar.html 2006 baseball odds] [http://panties-pictures.com/free/lib/temp/vonfao.html liberty racing west] [http://panties-pictures.com/free/lib/temp/pjsnjo.html advertising strategies of state bank of india] [http://roycemotor.com/carpics/cache/pwdrdx.html mom fucks boy] [http://roycemotor.com/carpics/cache/xdpjsr.html stage backdrop design] [http://roycemotor.com/carpics/cache/ulcxvs.html 32 baby premature week] [http://www.biblored.org.co/agenda_actividades/programas/images/mapghu.html exclusivity contract sample] [http://indianaoutfitters.com/s/info/tmp/bvwjgx.html islamic photographs] [http://www.lewakins.com/sr/images/xprdwp.html windows media player 10 pocket pc downloads] [http://lumayagrealty.com/catalog/images/pics/kusgnk.html paint colour charts australia] [http://panties-pictures.com/free/lib/temp/ibspic.html world trade center path station]
| |
| This tutorial teaches you how to create a world model from a [[Viewmodel|view model]]. It does not teach you how to do modeling or how to work with a model editor. Even though the screenshot shows 3ds max 7, the same can easily be done in all other model editors if you have sufficient knowledge of them. | | This tutorial teaches you how to create a world model from a [[Viewmodel|view model]]. It does not teach you how to do modeling or how to work with a model editor. Even though the screenshot shows 3ds max 7, the same can easily be done in all other model editors if you have sufficient knowledge of them. |
|
| |
|
Revision as of 11:54, 10 November 2007
This tutorial teaches you how to create a world model from a view model. It does not teach you how to do modeling or how to work with a model editor. Even though the screenshot shows 3ds max 7, the same can easily be done in all other model editors if you have sufficient knowledge of them.
Please note that even though this tutorial uses a view model for demonstration a world model should have a lot less polys and / or LOD_Models to ensure best performance in-game.
Setting up your model
If you just take your model and compile it as a prop_physics, the engine will not know where to put it onto the playermodel. The result can be somewhat hilarious but is most likely not what you are looking for.
To change this, load your view model (without hands) into your favorite model editor. It will be helpful (but is not necessary) to remove all bones that you needed for animating your view model, so you end up with one object/bone.
Place the hand bone
Now there are two ways to go. The first one is if you are doing a new model (not a replacement model) or if you don't have the model you want to replace decompiled:
Create a new bone with the name ValveBiped.Bip01_R_Hand
. Place it so that it is in the position you want the right hand of the playermodel to be. Now link
your model to the bone. (If you move ValveBiped.Bip01_R_Hand
now, the weapon moves with it.)
In case you have a decompiled model you want to replace, move your new model into the position of the old one, delete the old one and link
your model to the ValveBiped.Bip01_R_Hand
bone.
Note:ValveBiped.Bip01_R_Hand
is part of the standard Valve rig. If you use a custom rig, you'll need to use the bone name of that one.
Note:ValveBiped.Bip01_R_Hand
will not work as a bone name if using xsi instead you must create a bone called BIP01_R_Hand and parent it to the ValveBiped node
Export and compile
Export your model (make sure to export unused bones if your exporter asks you). Compile it like any other physics prop (however without $staticprop because that would collapse your bones).
Just for reference here is the .qc that was used to compile the model seen in the screenshots:
$modelname "weapons/w_m4a1.mdl"
$cdmaterials "models/weapons"
$scale 1
$keyvalues { "prop_data" { "base" "metal.medium" } }
$model w_m4a1 "w_m4a1.smd"
$sequence idle "w_m4a1" loop fps 15
$collisionmodel "w_m4a1.smd"
{
$mass 3.0 // Mass in kilograms
$concave
}
Now start the model viewer and load a playermodel of your choice as well as your world model. Most likely your weapon will not be perfectly sitting in the hand, might range from some fingers going through the weapon to the weapon pointing in a completely wrong direction.
Go back to your model editor. The actual position of the weapon or of the bone doesn't matter at all! All that counts is the relative position towards each other. In some cases you need to rotate. I'd advise not to rotate the weapon model but the bone. Either unlink it and link it later again or edit it without affecting children bones (for max you can find this setting in the hierarchy tab).
In case you want to add attachment-bones, like for a muzzle flash, add a bone with an according name (e.g. ValeBiped.muzzle flash
) and link it to ValveBiped.Bip01_R_Hand
.
Technical explanation
If you want to have a little bit of extra knowledge that helps you to understand how this works, read on.
The engine merges the bone ValveBiped.Bip01_R_Hand
of your player model with the a bone of the same name in your world model (in case it's the root bone). All bones that are a child of this bone will naturally move with it, that's why we have linked the weapon and the muzzle flash to it. The skeleton of the player model and of your world model have become one! When you have loaded both in the model viewer and you activate Bones
in the render tab you can easily see it.
To make sure the you got this correctly, you can also look into your .smd file.
If everything is correct, it should start like this:
version 1
nodes
0 "ValveBiped.Bip01_R_Hand" -1
1 "m4a1" 0
end
skeleton
time 0
0 # # # # # #
1 # # # # # #
end
As you can see, in nodes
the ValveBiped.Bip01_R_Hand
is defined as the root bone while the bone called m4a1 is a child of it. In the skeleton
part the position of both are defined.
If this is not the case, but you are sure that everything is set up correctly, check your exporter settings again.
See also