Unfortunately the indices' format looks right. For example I got 216 vertices and the range of indices goes from 0 to 215, so this fits pretty well.
-------- Original-Nachricht -------- > Datum: Wed, 8 Oct 2008 15:55:44 +0200 > Von: "Jonas \'Sortie\' Termansen" <[EMAIL PROTECTED]> > An: "Discussion of Half-Life Programming" <[email protected]> > Betreff: Re: [hlcoders] model import > Looks like your vertexes seem right, since the Train has the right shape. > That must mean the indices are incorrect, maybe a wrong offset in the > array, > perhaps it's 0 or 1 based? Try a few things and see how they work out. > > Also, NEVER link to my.php on ImageShack. Makes my popup blocker go crazy. > Always direct link, please. :) > > Sortie > > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, October 08, 2008 3:14 PM > Subject: [hlcoders] model import > > > > 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 > > > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

