Difference between revisions of "Help:Model Viewer"
Z Overlord (talk | contribs) |
(Expansion.) |
||
Line 48: | Line 48: | ||
== Models == | == Models == | ||
− | |||
− | === | + | === \weapons\ folder=== |
− | The three main folders of the {{code|\ | + | |
+ | The three main folders of the {{code|\weapons\}} folder are: | ||
* {{code|w_models}} – holds world models for the standard weapons. | * {{code|w_models}} – holds world models for the standard weapons. | ||
Line 57: | Line 57: | ||
* {{code|c_models}} – holds models for all other newer weapons (viewmodel and world model share the same model) | * {{code|c_models}} – holds models for all other newer weapons (viewmodel and world model share the same model) | ||
− | Most models have standard names but others have vague or confusing names, so some are listed below. Alternatively, all model file paths can be found by searching "{{code|items_game.txt}}" ({{code|\tf\scripts\items\items_game.txt}}). | + | Note that there are some discrepancies regarding c_, v_ and w_ models. Previously, all weapons had a world model and a view model that were kept separately. All newer unlockable weapons are in one model file (c_model) so the same model is used for the player's viewpoint and what other players see. |
+ | |||
+ | More recently, most stock weapons have c_model equivalents inside the files however remain unused (with the exception of stock weapons that have been used with the [[Name Tag|Name]] or [[Description Tag]]s). | ||
+ | |||
+ | === Model locations === | ||
+ | |||
+ | Most models have standard names but others have vague or confusing names, so some are listed below. Alternatively, all model file paths can be found by searching "{{code|items_game.txt}}" ({{code|\tf\scripts\items\items_game.txt}}) for the item's entry and checking the value of "{{code|model_player}}". | ||
; Weapons | ; Weapons | ||
Line 69: | Line 75: | ||
* [[Kritzkrieg]]: {{code|c_overhealer}} | * [[Kritzkrieg]]: {{code|c_overhealer}} | ||
* [[Kukri]]: {{code|c_machete}} | * [[Kukri]]: {{code|c_machete}} | ||
− | |||
− | |||
* [[Sandman]]: {{code|c_woodenbat}} | * [[Sandman]]: {{code|c_woodenbat}} | ||
* [[Scotsman's Skullcutter]]: {{code|c_battleaxe}} | * [[Scotsman's Skullcutter]]: {{code|c_battleaxe}} | ||
Line 80: | Line 84: | ||
; Tools | ; Tools | ||
− | + | : The [[Crate]], [[Paint Can]] and [[Name Tag]] models are not present in the game files, however, the textures are (''need directory''). Efforts to reproduce them in a model form are ongoing (''link to facepunch post''). | |
+ | |||
+ | ; Player models | ||
+ | : Player models are stored in the directory of {{code|\models\player}}. There are also additional models stored in {{code|\models\player\hwm}}. HWM models (or '''''h'''ard'''w'''are '''m'''orphs'') are higher-poly versions of the standard models and were used in the creation of the ''[[Meet the Team]]'' series. For more information about them, see [http://forums.steampowered.com/forums/showpost.php?p=8227518 this thread] on the [[Steam Users' Forums]]. | ||
+ | |||
+ | == Registry == | ||
+ | HLMV stores model positionings and settings inside the {{w|Windows Registry|registry}} in separate keys. | ||
+ | |||
+ | Open the registry editor by going to Start > Run and typing in "{{code|regedit.exe}}". HLMV's directory is "{{code|HKEY_CURRENT_USER\Software\Valve\hlmv}}". | ||
+ | |||
+ | === Key values === | ||
+ | |||
+ | Inside each key are several values, and their uses are listed below: | ||
+ | |||
+ | {| class="wikitable grid sortable" style="margin:1em 0em;" | ||
+ | |- | ||
+ | ! class="header" | Value | ||
+ | ! class="header" | Description | ||
+ | ! class="header" | Type | ||
+ | ! class="header" | Default | ||
+ | |- | ||
+ | | aColor | ||
+ | | Ambient color | ||
+ | | | ||
+ | | (0.3 0.3 0.3 0) | ||
+ | |- | ||
+ | | bgColor | ||
+ | | Background color | ||
+ | | | ||
+ | | (0.25 0.25 0.25 0) | ||
+ | |- | ||
+ | | cclanguageid | ||
+ | | | ||
+ | | Integer | ||
+ | | 0 | ||
+ | |- | ||
+ | | enablenormalmapping | ||
+ | | Normal map | ||
+ | | Integer | ||
+ | | 0 | ||
+ | |- | ||
+ | | gColor | ||
+ | | Ground color | ||
+ | | | ||
+ | | (0.85 0.85 0.69 0) | ||
+ | |- | ||
+ | | lColor | ||
+ | | Light color | ||
+ | | | ||
+ | | (1 1 1 0) | ||
+ | |- | ||
+ | | lightrot | ||
+ | | Positioning of the light source | ||
+ | | (X Y Z) | ||
+ | | (0 180 0) | ||
+ | |- | ||
+ | | merge0 – merge3 | ||
+ | | Attached weapons | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | overlaySequence0 – overlaySequence3 | ||
+ | | ? | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | overlayWeight0 – overlayWeight3 | ||
+ | | ? | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | playsounds | ||
+ | | Toggle sounds being played | ||
+ | | Integer | ||
+ | | 1 | ||
+ | |- | ||
+ | | Rot | ||
+ | | Model's rotation in the world view | ||
+ | | (X Y Z) | ||
+ | | Model dependant | ||
+ | |- | ||
+ | | sequence | ||
+ | | Animation sequence | ||
+ | | | ||
+ | | Model dependant (most commonly {{code|idle}} or {{code|ref}}) | ||
+ | |- | ||
+ | | showbackground | ||
+ | | | ||
+ | | Integer | ||
+ | | 1 | ||
+ | |- | ||
+ | | showground | ||
+ | | | ||
+ | | Integer | ||
+ | | 1 | ||
+ | |- | ||
+ | | showillumpos | ||
+ | | | ||
+ | | Integer | ||
+ | | 1 | ||
+ | |- | ||
+ | | showshadow | ||
+ | | | ||
+ | | Integer | ||
+ | | 1 | ||
+ | |- | ||
+ | | speechapiindex | ||
+ | | | ||
+ | | Integer | ||
+ | | 1 | ||
+ | |- | ||
+ | | speedscale | ||
+ | | | ||
+ | | | ||
+ | | 1 | ||
+ | |- | ||
+ | | thumbnailsize | ||
+ | | | ||
+ | | Integer | ||
+ | | 128 | ||
+ | |- | ||
+ | | thumbnailsizeanim | ||
+ | | | ||
+ | | Integer | ||
+ | | 128 | ||
+ | |- | ||
+ | | Trans | ||
+ | | {{w|Translation (geometry)|Translation}} of the model | ||
+ | | (X Y Z) | ||
+ | | Model dependant | ||
+ | |- | ||
+ | | viewermode | ||
+ | | | ||
+ | | Integer | ||
+ | | 0 | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | == Limitations == | ||
== See also == | == See also == | ||
Line 91: | Line 233: | ||
* [http://nemesis.thewavelength.net/index.php?p=26 GCFScape] – tool to extract files out of the game's GCF files | * [http://nemesis.thewavelength.net/index.php?p=26 GCFScape] – tool to extract files out of the game's GCF files | ||
* [http://nemesis.thewavelength.net/index.php?p=45 Crafty] – multi-purpose tool to view models, textures, and other Source engine files. Also provides a material and model browser to allow for easier file extracting via thumbnail preview. | * [http://nemesis.thewavelength.net/index.php?p=45 Crafty] – multi-purpose tool to view models, textures, and other Source engine files. Also provides a material and model browser to allow for easier file extracting via thumbnail preview. | ||
+ | * [http://cl.ly/301E1Y1J1y3h030H3r3p HLMV Positioner 1.2] by [[User:Netshroud|Netshroud]] (needs steamuser to be set in Presets.ini) | ||
* {{vdc|Category:Third Party Tools}} | * {{vdc|Category:Third Party Tools}} | ||
=== Resources === | === Resources === | ||
* [http://www.facepunch.com/threads/1028466-TF2-Emporium-XXVI TF2 Emporium] thread on [http://www.facepunch.com/forum.php Facepunch] | * [http://www.facepunch.com/threads/1028466-TF2-Emporium-XXVI TF2 Emporium] thread on [http://www.facepunch.com/forum.php Facepunch] |
Revision as of 22:55, 16 January 2011
“You are so small! Is funny to me!” This article is a stub. As such, it is not complete. You can help Team Fortress Wiki by expanding it. |
The Half-Life Model Viewer (HLMV) is a program used to view models of the Source engine.
Contents
Setup
Graphics card settings
For ATi/AMD cards, under '3D' in Catalyst Control Center's drop down menu, uncheck "Use Application Settings" in the "AA" section and move the slider to 8x.
For Nvidia cards, open the "NVIDIA Control Panel" and navigate to "Manage 3D settings" or similar. Add a program-specific setting for hlmv.exe
(file location is below):
\Steam\steamapps\[your account name]\sourcesdk\bin\orangebox\bin\hlmv.exe
Ensure that the following settings are enabled:
- Anti-aliasing set to "override" and on highest setting possible
- Texture filtering quality on highest setting possible
dxsupport.cfg
The Model Viewer also pulls settings from the config file 'dxsupport.cfg
'. If the graphics card settings above do not work, then this method should still force the Viewer to output with high settings.
- Navigate to the directory in the section above.
- Open up
dxsupport.cfg
in a text editor of your choice. If you do not have this file, create it with this content. - Find your graphics card within that file. If your card was made after 2007, it will not be likely be listed, so go to the bottom and use
ATI Unknown
orNvidia Unkown
depending on your card. - Add or modify the following lines in
dxsupport.cfg
- within the section for your graphics card and save it, the Viewer should now be using high settings.
"DxLevel" "99" "ConVar.mat_antialias" "8" "ConVar.mat_forceaniso" "8" "ConVar.mat_picmip" "-10"
- 4. Only if your card wasn't listed and is an ATi/AMD card, open AMD Catalyst Control Center (CCC), and go to the drop down menu and select 'Information Center' and open the 'Graphics Hardware' tab and record your Device ID
- 5. Under
ATI Unknown
, change its lines so it looks like the following:
"name" "Any name you want here" "VendorID" "0x1002" "MinDeviceID" "[Insert Device ID from step 4 here]" "MaxDeviceID" "[Insert Device ID from step 4 here]" "DxLevel" "99" "ConVar.mat_antialias" "8" "ConVar.mat_forceaniso "8" "ConVar.mat_picmip" "-10" "ConVar.mat_motion_blur_enabled" "1"
- 6. Only if your card is an Radeon HD5000 series or above, you may enable "Super-Sample AA" under '3D' in the drop down menu in CCC to further increase image quality when used with the above settings.
- It is advised to revert "Super-Sample AA" back to "Multi-Sample AA" when you are done using the Viewer, as performance in games will be reduced significantly.
Models
\weapons\ folder
The three main folders of the \weapons\
folder are:
w_models
– holds world models for the standard weapons.v_models
– holds view models for the standard weapons.c_models
– holds models for all other newer weapons (viewmodel and world model share the same model)
Note that there are some discrepancies regarding c_, v_ and w_ models. Previously, all weapons had a world model and a view model that were kept separately. All newer unlockable weapons are in one model file (c_model) so the same model is used for the player's viewpoint and what other players see.
More recently, most stock weapons have c_model equivalents inside the files however remain unused (with the exception of stock weapons that have been used with the Name or Description Tags).
Model locations
Most models have standard names but others have vague or confusing names, so some are listed below. Alternatively, all model file paths can be found by searching "items_game.txt
" (\tf\scripts\items\items_game.txt
) for the item's entry and checking the value of "model_player
".
- Weapons
- Bonk! Atomic Punch:
c_energydrink
- Blutsauger:
c_leechgun
- Bushwacka:
c_croc_knife
- Equalizer:
c_pickaxe
- Eyelander:
c_claymore
- Headtaker:
c_headtaker
andc_bigaxe
- Homewrecker:
c_sledgehammer
- Kritzkrieg:
c_overhealer
- Kukri:
c_machete
- Sandman:
c_woodenbat
- Scotsman's Skullcutter:
c_battleaxe
- Southern Hospitality:
c_spikewrench
- Tribalman's Shiv:
c_wood_machete
- Vita-Saw:
c_uberneedle
- Hats
- Tools
- The Crate, Paint Can and Name Tag models are not present in the game files, however, the textures are (need directory). Efforts to reproduce them in a model form are ongoing (link to facepunch post).
- Player models
- Player models are stored in the directory of
\models\player
. There are also additional models stored in\models\player\hwm
. HWM models (or hardware morphs) are higher-poly versions of the standard models and were used in the creation of the Meet the Team series. For more information about them, see this thread on the Steam Users' Forums.
Registry
HLMV stores model positionings and settings inside the Template:W in separate keys.
Open the registry editor by going to Start > Run and typing in "regedit.exe
". HLMV's directory is "HKEY_CURRENT_USER\Software\Valve\hlmv
".
Key values
Inside each key are several values, and their uses are listed below:
Value | Description | Type | Default |
---|---|---|---|
aColor | Ambient color | (0.3 0.3 0.3 0) | |
bgColor | Background color | (0.25 0.25 0.25 0) | |
cclanguageid | Integer | 0 | |
enablenormalmapping | Normal map | Integer | 0 |
gColor | Ground color | (0.85 0.85 0.69 0) | |
lColor | Light color | (1 1 1 0) | |
lightrot | Positioning of the light source | (X Y Z) | (0 180 0) |
merge0 – merge3 | Attached weapons | ||
overlaySequence0 – overlaySequence3 | ? | ||
overlayWeight0 – overlayWeight3 | ? | ||
playsounds | Toggle sounds being played | Integer | 1 |
Rot | Model's rotation in the world view | (X Y Z) | Model dependant |
sequence | Animation sequence | Model dependant (most commonly idle or ref )
| |
showbackground | Integer | 1 | |
showground | Integer | 1 | |
showillumpos | Integer | 1 | |
showshadow | Integer | 1 | |
speechapiindex | Integer | 1 | |
speedscale | 1 | ||
thumbnailsize | Integer | 128 | |
thumbnailsizeanim | Integer | 128 | |
Trans | Template:W of the model | (X Y Z) | Model dependant |
viewermode | Integer | 0 |
Limitations
See also
- Template:Painted variants/Tutorial – tutorial on taking screenshots of painted images.
External links
Tools
- GCFScape – tool to extract files out of the game's GCF files
- Crafty – multi-purpose tool to view models, textures, and other Source engine files. Also provides a material and model browser to allow for easier file extracting via thumbnail preview.
- HLMV Positioner 1.2 by Netshroud (needs steamuser to be set in Presets.ini)
- Category:Third Party Tools on the Valve Developer Community
Resources
- TF2 Emporium thread on Facepunch