Talk:Half-Life Model Viewer

From Valve Developer Community
Jump to: navigation, search

the image is not from the latest version so i guess version 1.22 (added 06:39, 22 Jun 2006) is nolonger the latest version number either. --Wolf 06:00, 4 Oct 2007 (PDT)

Issus in L4D2 Authoring Tools

Is the ability of HLMV to display specularity broken? eg adding $envmap env_cubemap in VMT has no effect. Specularity is only shown in VHE / Game. --Swot 09:46, 7 June 2012 (PDT)

opening non-HL2 models

Whenever I run hlmv, it always gives me the models from HL2, no matter what I've specified in Source SDK as the game I want to work with. If I try to open it with the command-line option of -game [path of game I want to use], it doesn't open at all, and if I try dragging an .mdl file to it it ALWAYS says "error loading model", even when that model is from a commercial game like Counter Strike: Source or Portal, or from a working mod. Is there any way to open models in hlmv that aren't the ones in the HL2 GCF? Luvcraft 22:12, 3 Nov 2007 (PDT)

  • I found the answer to the first half of my question here; basically, hlmv loads the models for HL2 AND the models for whatever game you have selected. Still can't view individual .mdl files, though. Luvcraft 22:53, 3 Nov 2007 (PDT)

Some answers for issues

If I recall, Valve used the 1.22 HLMV codebase as the basis for their versio of HLMV. There were some nasty bugs in 1.22 so I *hope* they fixed them all when they wrote their version. As for loading the default settings for a model, this requires removing the relevant folder for the model in the registry under HKEY_CURRENT_USER\Software\Valve\hlmv\. Doing so makes HLMV use the defauly settings next time that model is loaded --Wunderboy 05:27, 28 Nov 2007 (PST)

Editing model settings via registry

Each model's own settings are stored in their own entry in the registry (HKEY_CURRENT_USER\Software\Valve\hlmv). Inside each entry are a lot of different fields and I've documented some below.

  • Rot – rotation (x y z).
  • Trans – translation.
  • lightrot – light rotation (x y z (?)).
  • bgColor – background color in RGBA (unconfirmed).

Seb26 01:23, 21 December 2010 (UTC)