Hello,

(I'm sorry if you already got this mail but it seems that my first mail hasn't 
reached the list)

I’m currently working on importing HL2 maps into my tool that generates a 
navigation graph for my Half-Life 2 bot. Importing the bsp-file works just fine 
but I have some trouble with importing the models specified in the mdl-files.

The idea of decompiling the models with cannonfodder’s mdldecompiler doesn’t 
help me because this tool cannot be automated since it is not 
command-line-based. And decompiling several thousand models manually isn’t that 
nice.

For my purpose I just need the pure geometry, so any texture or animation can 
be omitted. I managed to extract the vertices from the vvd-file and the faces 
from the dx90.vtx (or dx80.vtx). I get these faces by using the indices given 
in the stripgroups as indices into the vvd-vertex-array.
 
Unfortunately the result looks some kind of corrupted (see the picture, this is 
one of the trains from de_train).
http://img296.imageshack.us/my.php?image=trainfacesqs2.png
 
My idea was to use the vertex-array given in the stripgroup as a mapping 
structure from the indices to the vvd-vertex-array. But the entries in this 
mapping-array (origMeshVertID) are not usable since they don’t fit into the 
range of the vvd-vertex-array.

So obviously I’m missing some point. Do I use the right indices? The right 
mapping array? The right target array?

Thanks a lot for your answers

Laskoran
-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to