LOD file format.

Discussion area for mod-related subjects, questions regarding creating and using mods.
DarkAngel
Green
Green
Posts: 19
Joined: Thu Jun 21, 2007 8:52 pm

LOD file format.

Postby DarkAngel » Sun Sep 16, 2007 6:37 am

Is the LOD file format published anywhere or is it possible to get it from the Devs?.

sony tuckson
Ace
Ace
Posts: 660
Joined: Mon Sep 01, 2003 3:34 am

Postby sony tuckson » Sun Sep 16, 2007 5:42 pm

LOD is the compiled 3d format for all objects, it can be achived via a 3dsmax plugin, and no other way

DarkAngel
Green
Green
Posts: 19
Joined: Thu Jun 21, 2007 8:52 pm

Postby DarkAngel » Mon Sep 17, 2007 6:12 am

Well the game must interpret the files to read them in and I know that GulfKnights UMC2 can read in LOD files so he must have gotten the info from somewhere.

I'm trying to write a program for designing target areas and would like to read in the LOD files so that I can portray the objects at their correct size.

sony tuckson
Ace
Ace
Posts: 660
Joined: Mon Sep 01, 2003 3:34 am

Postby sony tuckson » Tue Sep 18, 2007 5:06 am

I understand your objective, but LOD files are peculiar to the game

I mean a lot of 3d games and flight sims have LOD files, they are all different, only the suffix LOD is in common

now one thing is that you can read some info with an hexadecimal editor (that's how we duplicate 3d objects to get different skins..(e.g. pilots)
texture name is one info readily accessible

I don't know about dimensions though

ThirdWire
Ace
Ace
Posts: 6596
Joined: Mon Feb 03, 2003 6:39 am
Contact:

Postby ThirdWire » Tue Sep 18, 2007 5:31 am

Hi DarkAngel,

Sorry, we don't publish our LOD format.

Dimensions of models can be difficult to get from LOD files even if the format is published tho.... You'll need to go through all the heirarchy, apply all the 3d transoformation, and check all the vertices position and transform them ot world coordinates to get min/max size. Unless you already have 3d engine that can handles all that, I think it'll be a lot easier to just get the size of the objects by hand and create your own list.

TK
--

DarkAngel
Green
Green
Posts: 19
Joined: Thu Jun 21, 2007 8:52 pm

Postby DarkAngel » Tue Sep 18, 2007 5:56 am

Well how did the guy who wrote UMC2 get the file format then. That program loads thirdwire LODs.

How am i supposed to get the sizes by hand?. The problem with that is that it wouldn't make the program flexible enough to be used on any terrain including user built ones.

ThirdWire
Ace
Ace
Posts: 6596
Joined: Mon Feb 03, 2003 6:39 am
Contact:

Postby ThirdWire » Tue Sep 18, 2007 7:39 am

Hi DarkAngel,

Well, you need to ask the guy who did UMC2, although we didn't publish LOD format, we also don't stop people form reverse engineering it either ;) Its not encrpyted or anything, so its fairly straight forward to figure out...

As with any project, I suggest you take it one step at a time, and first, just have a text file that list target name and size. Anyone whos currently placing objects by hand should already have rough idea of the size of objects. Or if someone is releaseing new terrain with custom building, ask them to provide the size for those objects - if they have max file, its easy measure size in max.

Once you have that going, you can always go back and try adding getting size from LOD files.

TK
--

KZ_3D
Novice
Novice
Posts: 3
Joined: Sat Nov 17, 2007 4:57 am

Postby KZ_3D » Sat Nov 17, 2007 5:13 am

DarkAngel,

Can you send me a simple e-mail to me ?
I can help you.


Return to “Modders Corner”



Who is online

Users browsing this forum: Do335 and 0 guests