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
Xmesh scale and units.csv scale question
Moderators: Omega, tillias, Mod Contributor
-
- Elite
- Posts: 8014
- Joined: Fri Sep 05, 2003 4:03 am
- Location: Montreal
- Contact:
Xmesh scale and units.csv scale question
Latest version of Cinemut Opaque
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
-
- Elite
- Posts: 8014
- Joined: Fri Sep 05, 2003 4:03 am
- Location: Montreal
- Contact:
Latest version of Cinemut Opaque
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
-
- Lead Network Developer
- Posts: 2560
- Joined: Sun Jan 12, 2003 9:13 am
- Location: Palo Alto CA
- Contact:
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.
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.
-
- Elite
- Posts: 8014
- Joined: Fri Sep 05, 2003 4:03 am
- Location: Montreal
- Contact:
Thanks, Ace! What you just said is what I always assumed, in fact. I'm going to check those numbers again...
Latest version of Cinemut Opaque
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.