Author Topic: Bloated model files  (Read 410 times)

Legacy_Zwerkules

  • Hero Member
  • *****
  • Posts: 1997
  • Karma: +0/-0
Bloated model files
« on: January 07, 2014, 09:41:26 pm »


               This is just an observation. Maybe it is good to know, maybe not.

In many models, especially those in the DLA tilesets and in tilesets done by Lord of Worms, there are tiles with meshes that sometimes have several thousand faces or several hundred for the DLA tiles. This might be the case in other models, too.

The poly-count  is not a problem, but all those faces have their material id set to 65536 instead of a lower number.
I work with Gmax and for a new face I create the material id is set to 1. Maybe 3dmax sets it to 65536 as a standard.

Since the material id isn't used except for walkmeshes it doesn't really matter what it is, but if it is 65536 instead of 1 for every face that is 4 extra bytes in file size per face.
Loading a few kb more is probably not an issue, but if you have huge haks with many models like that, their file size can be a lot bigger than it has to be.

So if you want to reduce models with many polygons in file size, set the material ids to 1. It probably won't have an impact on game performance and loading times, but it should make uploading haks faster. '<img'>
               
               

               
            

Legacy_Michael DarkAngel

  • Hero Member
  • *****
  • Posts: 627
  • Karma: +0/-0
Bloated model files
« Reply #1 on: January 08, 2014, 05:09:55 am »


               I think this is an issue with NWMax and by inheritance NWMax Plus.  Because it doesn't "break" the model it was never reported as a "bug".  I'll have to see if I can figure out what is causing it and at least fix it for the Plus versions.

Perhaps it was something OMB had caught and compensated for with CleanModels, but I can't be sure because I haven't re-installed CleanModels yet.

'Image
 MDA
               
               

               
            

Legacy_Zwerkules

  • Hero Member
  • *****
  • Posts: 1997
  • Karma: +0/-0
Bloated model files
« Reply #2 on: January 08, 2014, 03:34:06 pm »


               It only saves about 3% in file size to change those material ids, so it's not really a big issue.
               
               

               
            

Legacy_Michael DarkAngel

  • Hero Member
  • *****
  • Posts: 627
  • Karma: +0/-0
Bloated model files
« Reply #3 on: January 13, 2014, 05:22:48 am »


               Issue has been fixed.  '65536' should no longer show its ugly face.

'Image
 MDA
               
               

               
            

Legacy_NWN_baba yaga

  • Hero Member
  • *****
  • Posts: 1944
  • Karma: +0/-0
Bloated model files
« Reply #4 on: January 13, 2014, 08:52:46 am »


               I realy wonder what tile can have several thousand faces.
               
               

               
            

Legacy_Zwerkules

  • Hero Member
  • *****
  • Posts: 1997
  • Karma: +0/-0
Bloated model files
« Reply #5 on: January 13, 2014, 11:52:02 am »


               Lord of Worm's forest tiles often have up to five thousand faces, with the groups of small mushrooms alone having over a thousand faces.