Xmesh scale and units.csv scale question

This is the location for all mods to collaborate. Anyone making or planning their own mod should post help requests, screen shots and news here.

Moderators: Omega, tillias, Mod Contributor

Post Reply
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Xmesh scale and units.csv scale question

Post by chuck_starchaser »

Xmesh scale and units.csv scale question:
What does the xmesh scaling factor do? (First variable in xmesh.)
My assumption was that vertex coords would be multiplied by
the scaling factor in xmesh, and then again by the scaling factor
in units.csv; but it appears that this is not so. I played with the
xmesh scaling factor to make weapon and engine plumes' positions
line up with a ship, but when we calculated the size the ship should
have in-game, given the mesh coords and the two scaling factors, we
got a value of a few centimeters; but flying the ship in-game next to
another ship, it doesn't look as microscopic as it should, if that were
the case. Any pointers or wiki links on how these things work? TIA
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

I believe it is pretty simple:

XMesh scaling factor scales the mesh only... this probably isn't too useful, but if for example you designed the mesh as a replacement for another one, but you scaled it between -1 and 1 in the modelling program, this could scale it back to the size that the old mesh was so you don't have to change other values inside of units.csv.

Units.csv scaling factor scales everything: positions of weapons, engines, as well as relative positions if you have multiple meshes, etc. So this is what you use to change the relative sizes of some units against each other.
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

Thanks, Ace! What you just said is what I always assumed, in fact. I'm going to check those numbers again...
Post Reply