Posted: Tue Mar 20, 2012 3:26 am
cool. the scrambled images in the anims may have something to do with the RLE compression used, as it only stores what changes from frame-to-frame in the binary mdl.
Space battles since 2000
https://www.freeallegiance.org/forums/
Ahh, some light!Imago wrote:QUOTE (Imago @ Mar 19 2012, 09:26 PM) cool. the scrambled images in the anims may have something to do with the RLE compression used, as it only stores what changes from frame-to-frame in the binary mdl.
Thanks for the help Imago! Your tip about the frames being RLE encoded was just what I needed.Imago wrote:QUOTE (Imago @ Mar 19 2012, 09:39 PM) check this out if going the distance.
http://www.gamedev.net/topic/593749-decomp...ng-rle-bitmaps/
Code: Select all
mdld.exe /file=acs01.mdl /out=acs01text.mdl
mdlc.exe -optimze acs01text.mdl acs01compiled.mdlYou can compile a recent version of MDLC from the SVN and it won't do that.Adaven wrote:QUOTE (Adaven @ Mar 24 2012, 12:09 AM) After having to monkey around a bit (I really fail at visual studio), I finally managed to use mdld a few times.
What I've noticed
1. acs01.mdl in my artwork folder is 12kb
2. If I extract it to a text mdl and run through mdlcThen acs01compiled is 139kb. This is the same result I got from running xmunge/mdlc (via makegeo.bat) using the MS .x files. As Compellor pointed out in another thread, apparently the texture is getting embedded in the compiled .mdl along with the model instead of referencing acs01bmp.mdl.Code: Select all
mdld.exe /file=acs01.mdl /out=acs01text.mdl mdlc.exe -optimze acs01text.mdl acs01compiled.mdl
Has anyone ever figured a way around this?
Otherwise, the re-compiled files don't show up in mdlView/mdlUtility2. Compellor said he couldn't get the .x ones to show up in mdledit either, so this may be more of an mdlc kink than this library. Although this could be for the same reason that YP had to patch efapp? I haven't tried with his changes.
I realized that after my post, same thing for mdledit. I gave it a go Friday night, but I was still having some troubles. I'll try a fresh start this week and see if that helps.Compellor wrote:QUOTE (Compellor @ Mar 24 2012, 07:07 PM) You can compile a recent version of MDLC from the SVN and it won't do that.
Does the esc menu list the commands? I can't remember much about MDLedit, and can't seem to get it to work on my present computer.Adaven wrote:QUOTE (Adaven @ Mar 25 2012, 12:30 AM) I realized that after my post, same thing for mdledit. I gave it a go Friday night, but I was still having some troubles. I'll try a fresh start this week and see if that helps.
As a side note, is there reference for using mdledit or at least a keymap somewhere? I couldn't find anything on the wiki (I'll probably add something there soon and fill out as I learn more). I managed to sort of figure out how to move the camera around and such. However some keys seem to do random things, like turn everything purple, and I'd really like to know what that is supposed to mean.
Your_Persona wrote:QUOTE (Your_Persona @ Mar 19 2012, 11:46 PM) Thanks for the help Imago! Your tip about the frames being RLE encoded was just what I needed.
* there is something still missing, but its pretty dang close! Some artifacts..