EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
A quick tip on how to improve the load times for your large custom models
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
DeadlyDa



MEDAL

Joined: 05 Jan 2004
Posts: 1831 on topic
Location: Wellington, New Zealand
Thank you for registering your game
PostPosted: Sat, 14. Jan 06, 09:22    Post subject: A quick tip on how to improve the load times for your large custom models Reply with quote Print

I have been asked by several people how I managed to reduce the load time for the Asteroid Base from 60+ seconds to around 4 seconds.

Some of the following may be inaccurate...but what the hey...it works for me Very Happy

First, you need to understand that the poly count of the model, while important, is only part of the problem. The actual "size" of the model when it rendered in game can also have a major impact.

I proved this to myself the hard way with the Asteroid Base, which had way less polygons than the standard X3 shipyard or equipment dock...but took much much longer to load.

So here's a quick tip on how to improve the loading times of your large complex high-polygon models (which I'm sure you are all staying up late creating Rolling Eyes )

When you are done working with the mesh in 3dMax but before you export it as a .bod file, make sure you use the Slice modifier to break up the model into smaller "parts". It's still just one mesh, but apparently the X3 rendering engine processes each part in the mesh sequentially.

I figured this out when I was struggling to reduce the load times for the Asteroid Base. When I took a good look at the .bod files that Egosoft packaged, I noted that all of them had "parts"...and all of mine were just one big mesh. (I actually first started thinking about this when I began building ships for X2. I noticed that when you exported a big part using the Egosoft-supplied DLL for 3dMax, it would imbed a comment in your bod file with a warning message telling you that you had too many faces in the mesh "part".)

Anyway, once I decided to try and emulate the GFX modelers at Egosoft, it still took me another day to figure out how to chunk up a mesh into parts. However, once I did the load time for the Asteroid base dropped from 60+ seconds to 3 seconds...well worth the blood sweat and tears it took me to figure it out Very Happy


_________________

- Also check out the DDTC Forums, and the X-Wiki
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
-XTM-





Joined: 12 Nov 2005
Posts: 1277 on topic
Location: The Netherlands
Thank you for registering your game
PostPosted: Sat, 14. Jan 06, 09:46    Post subject: Reply with quote Print

Valuable stuff Deadly.

Still doesn't explain why ES gets away with multi zillion, uber textured poly meshes theirselves but what the heck...if it helps, it helps.

Thanks very much for the tip, I'll check out it's worth l8er but I'm sure it will come in very handy.


_________________
The Xtended Mod

Need Help?

Ask Questions / View the FAQ's at TheXUniverse Forums
Read the News on Mod Developments at our Website
Back to top
View user's profile Send private message Visit poster's website
DeadlyDa



MEDAL

Joined: 05 Jan 2004
Posts: 1831 on topic
Location: Wellington, New Zealand
Thank you for registering your game
PostPosted: Sat, 14. Jan 06, 17:23    Post subject: Reply with quote Print

Quote:
...ES gets away with multi zillion, uber textured poly meshes theirselves but what the heck...

The same way.

I have tried this on an 18k mesh I never implemented because i feared the load times were excessive.

By "chunking" the mesh(s) into parts, and re-compiling them into bob (binary files), my models load just as fast as Egosoft's.


_________________

- Also check out the DDTC Forums, and the X-Wiki
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
-XTM-





Joined: 12 Nov 2005
Posts: 1277 on topic
Location: The Netherlands
Thank you for registering your game
PostPosted: Sun, 15. Jan 06, 03:23    Post subject: Reply with quote Print

You must realy be using a different version of X3 then cause when I load up a ES mesh (except the Teladi ones), they are almost always 1 huge body, except for the detailorama on it.


_________________
The Xtended Mod

Need Help?

Ask Questions / View the FAQ's at TheXUniverse Forums
Read the News on Mod Developments at our Website
Back to top
View user's profile Send private message Visit poster's website
DeadlyDa



MEDAL

Joined: 05 Jan 2004
Posts: 1831 on topic
Location: Wellington, New Zealand
Thank you for registering your game
modified
PostPosted: Sun, 15. Jan 06, 03:40    Post subject: Reply with quote Print

Quote:
...when I load up a ES mesh (except the Teladi ones), they are almost always 1 huge body...

Well...when I said "big, I meant really big.

Take a look at the argon_equipmentdock.bod file in the folder "objects\stations\station_scenes\others". It has six parts in the mesh.


_________________

- Also check out the DDTC Forums, and the X-Wiki


Last edited by DeadlyDa on Sun, 15. Jan 06, 04:36; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
-XTM-





Joined: 12 Nov 2005
Posts: 1277 on topic
Location: The Netherlands
Thank you for registering your game
PostPosted: Sun, 15. Jan 06, 03:51    Post subject: Reply with quote Print

I know but that's not what I mean.
Teladi ships are also multi while most other races are mostly single part-meshed, yet this doesn't make 1 bit of a difference in spawntime.
Your theory doesn't explain why it takes a 'Bobbed' ES- Argon M1 only 3 seconds to spawn (4 body's/LODs - 1huge part,1 small if I'm not mistaken) while a much less poly heavy model of mine takes ages yet it's made up of multiple smaller parts.

The only thing I can think of is that it must make 1 mf-huge difference if the files are bobbed or not.


_________________
The Xtended Mod

Need Help?

Ask Questions / View the FAQ's at TheXUniverse Forums
Read the News on Mod Developments at our Website
Back to top
View user's profile Send private message Visit poster's website
DeadlyDa



MEDAL

Joined: 05 Jan 2004
Posts: 1831 on topic
Location: Wellington, New Zealand
Thank you for registering your game
PostPosted: Sun, 15. Jan 06, 04:42    Post subject: Reply with quote Print

I haven't been looking at Egosoft ships. As I stated, my efforts were focused on the problem I was having with the stations...which are much larger than ships.

Please note, I said larger...not higher polygon count.

I've been poking at this GFX modding game for a long time now, and one thing that has become painfully clear to me is that it's not a science. I post what I find in hopes it will help someone.

Sorry if my suggestion didn't help you...but as I clearly stated in my initial post...
Quote:
Some of the following may be inaccurate...but what the hey...it works for me



_________________

- Also check out the DDTC Forums, and the X-Wiki
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic Reply to topic
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Wed, 22. May 13, 17:57

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2009
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.33995 seconds, sql queries = 42