Page 1 of 1

Low-filesize DNM files

Posted: Sat Dec 12, 2015 3:02 am
by decaff_42
So with the MRJ aircraft recently highlighted in the Spying on Other Addons topic, I noticed a few things.

(1) DNMs can be made by listing a filepath for the appropriate SRFs.

Code: Select all

SRF "0000"
FIL parts/body_ANA.srf 
STA 0.0000 0.0000 0.0000 0 0 0 1
POS 0.0000 0.0000 0.0000 0 0 0 1
CNT 0.0000 0.0000 0.0000
Parent Child relationships can be controlled by this line in the code for each SRF:

Code: Select all

CLD "0042"
This has the potential to create really low-file size models as most parts are identical on aircraft with different paint schemes.

The MRJ aircraft have a DNM filesize of 12kb for a 14000 vertex aircraft which exported normally from blender is 1.4 mb. All said the four models have a total file size of 4.6 mb which comes to 1.15mb per aircraft. For a larger pack this would result in dramatic savings. For an additional aircraft would drop to 1mb per 14k of vertices. While the 767 may be a bit complicated for something like this, I believe it would be worth attempting for such savings! It appears that it would relatively simply and require the removal of the SRF section of the DNM file which would be replaced with a filepath in the FIL line of the CLA and STA definition section for that SRF.

Re: Low-filesize DNM files

Posted: Sat Dec 12, 2015 4:06 am
by Neocon
decaff_42 wrote:FIL parts/body_ANA.srf
I've been using a similar system for a while with things like logos and lights, only I leave them in the same folder as the .dnm/.dat/etc. I learned that trick from GAC. I've never used it for things like gear, but I have used it for props once or twice. It's really great if you want to modify the same part identically for multiple aircraft without having to do a lot of copy/paste work.