Skip to content

Fix oversized bounds on the Mariner B panel models - #27

Open
sparr wants to merge 1 commit into
KSP-RO:masterfrom
sparr:marinerb-mesh-bounds
Open

sparr wants to merge 1 commit into
KSP-RO:masterfrom
sparr:marinerb-mesh-bounds

Conversation

@sparr

@sparr sparr commented Oct 10, 2026

Copy link
Copy Markdown

Part of #24, sibling of #26. This fixes the two BDB-MarinerB models (Assets/BDB/bluedog_MarinerB_TrackingSolar.mu), whose reported bounds are larger than their geometry.

Same fix as #26, I rotated each mesh to line up with its local axes, then did the opposite rotation on its transform.

Reported thickness, in meters:

Model and state Geometry Before After
BDB-MarinerB-Angled, retracted 0.34 0.55 0.38
BDB-MarinerB-Straight, retracted 0.23 0.47 0.25
Both, extended 0.05 0.59 0.05

Those figures are for stock or KSPCommunityFixes bounds. KSP-RO/RP-1#2962 would bring RP-1 in line with the table.

Similar side effects to #26

AI Disclosure Claude Opus 5.5 did the investigation and produced the measurements above and wrote the commit message.

@njits23

njits23 commented Oct 10, 2026

Copy link
Copy Markdown

As somewhat expected, in RP-1 I'm not seeing the reported thickness reduction in the straight configuration, because the disabled transform is still active and being counted for the bounds.
image

In the future, it would be great if you could include such screenshots directly into the PR rather than having us go check in game ourselves.

Also, please remove the Claude co-author.

Ten meshes in bluedog_MarinerB_TrackingSolar.mu (five in each of the
Angled and Straight variants) are thin plates stored tilted by 10 to
39 degrees inside their own transforms, so their mesh-local bounding
boxes are much larger than the plates. Unity builds renderer bounds
from those boxes.

Rotate each mesh's data to line the plate up with its local axes and
counter-rotate its transform. World-space geometry and the transforms
of child objects are unchanged.

Reported thickness with KSPCommunityFixes bounds:
  Angled retracted    0.55 m -> 0.38 m (geometry 0.34 m)
  Straight retracted  0.47 m -> 0.25 m (geometry 0.23 m)
  both extended       0.59 m -> 0.05 m (geometry 0.05 m)
Reported retracted thickness with RP-1 bounds, which also count the
other variant's disabled meshes, goes from 0.64 m to 0.39 m for both.

The file was imported and exported with io_object_mu in Blender 5.2,
which also moves the Animation component from
"MarinerB_TrackingStation" to "Rotate", splits vertices, and
recomputes tangents.

Part of KSP-RO#24.

Code and commit message by Claude Opus 5.5 <noreply@anthropic.com>
@sparr
sparr force-pushed the marinerb-mesh-bounds branch from 1acdc13 to 3c4c271 Compare October 10, 2026 16:29
@sparr

sparr commented Oct 10, 2026

Copy link
Copy Markdown
Author

I've removed Claude's metadata attribution on the two PRs here. I'll include screenshots on future PRs of part changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants