Author Topic: Detail box issues  (Read 13415 times)

0 Members and 1 Guest are viewing this topic.

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
So, I've got a model that has detail boxes for objects in the hangarbay.  Unfortunately, my detail boxes are very erratic; even though there are several objects that have the same detail box, the said objects are not all visible/invisible at the same time, especially when I get close to them. :banghead:

To get the min/max coordinates for the detail boxes, I make a cube in Blender, and then I get the min/max XYZ values (in Global coordinates) from the vertices of the cube.

Is there something obvious that I'm missing? Or is FS's detail box system just awkward like that?

Also, does stuff like uvec, fvec, and detail boxes use a different coordinate system than subobject offsets?
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
I think the detail box coordinates may not be global coordinates, but relative to the center/pivot of the subobject with said detail box.

Also, yes, fvec, uvec, and I presume detail boxes, have the x value inverted.
ie. fvec: 1,1,1 corresponds to say the turret normal -1,1,1... for whatever insane reason.

This also applies to the tabled coordinate system (for maneuvering thrusters, etc), which agrees with fvecs/uvecs.

IIRC this is because PCS2 actually uses a coordinate system with inverted x-values compared to the freespace one. BY GOD THAT IS DUMB.
« Last Edit: July 27, 2012, 01:21:29 pm by Droid803 »
(´・ω・`)
=============================================================

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
I think the detail box coordinates may not be global coordinates, but relative to the center/pivot of the subobject with said detail box.

Yes, that's correct.

  

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Thanks, guys.

I decided to create a spreadsheet to help automate the calculation of detail boxes, assuming you're doing detail boxes the same way I am.

http://www.ciinet.org/kevin/myimages/others/DetailBoxCalculator.ods
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!