Growing meshes

Discuss the Wing Commander Series and find the latest information on the Wing Commander Universe privateer mod as well as the standalone mod Wasteland Incident project.
Post Reply
spiritplumber
Developer
Developer
Posts: 1831
Joined: Mon Mar 07, 2005 10:33 pm
Contact:

Growing meshes

Post by spiritplumber »

For soem reason every time I do something to a mesh it increases in size a lot, filesize wise. Does anyone know how to avoid this?
My Moral Code:
- The only sin is to treat people as if they were things.
- Rules were made for people, not the other way around.
- Don't deceive. Real life is complicated enough.
- If all else fails, smash stuff.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

What do you do when you do stuff on a mesh?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
spiritplumber
Developer
Developer
Posts: 1831
Joined: Mon Mar 07, 2005 10:33 pm
Contact:

Post by spiritplumber »

usually it's convert to .obj, modify the texture, and convert back to .bfxm
My Moral Code:
- The only sin is to treat people as if they were things.
- Rules were made for people, not the other way around.
- Don't deceive. Real life is complicated enough.
- If all else fails, smash stuff.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

To modify the texture, I prefer:

convert to xmesh: mesher whatever.bfxm 0_0.xmesh

Edit with notepad: notepad 0_0.xmesh (or whatever)

convert to bfxm:
mesher 0_0.xmesh whatever.bfxm xbc
mesher 1_0.xmesh whatever.bfxm xba
mesher 2_0.xmesh whatever.bfxm xba
mesher 3_0.xmesh whatever.bfxm xba
mesher 4_0.xmesh whatever.bfxm xba
...

NOTE: do not perform 'xba' on LOD levels (ie: x_1, x_2, etc.), since that's done automatically when you do the xba in x_0)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
tiny paintings
Bounty Hunter
Bounty Hunter
Posts: 214
Joined: Mon Jun 27, 2005 7:35 pm
Location: Stockholm, Sweden
Contact:

Post by tiny paintings »

Dunno if this is what spirit meant but when you do additional UV-mapping etc. you need it in obj... Adding damage maps, etc. can only be done manually with xmesh can it not? Either way, converting bfxm->obj->bfxm shouldn't increase the file size.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

Oh... If it's UV-mapping, then ok.

In that case, try converting from obj to xmesh:

mesher whatever.obj 0_0.xmesh oxc

...and take a look at it. That way, you can tell why is size being increased.

Even try

obj->xmesh->bfxm

If size does not increase when doing that, then it's what I suspected a while ago: the obj importer is broken (I had some trouble with it a while ago, but wasn't sure if it was mesher or the file itself).
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply