Skip to content

Fix oversized bounds on the Mariner 3 panel model - #26

Open
sparr wants to merge 1 commit into
KSP-RO:masterfrom
sparr:mariner3-vane-bounds
Open

sparr wants to merge 1 commit into
KSP-RO:masterfrom
sparr:mariner3-vane-bounds

Conversation

@sparr

@sparr sparr commented Oct 10, 2026 •

Copy link
Copy Markdown

Very slight partial fix for #24. This fixes one model, CA-Mariner-3 (Assets/Coatl/argo-mk2-solar.mu).

I rotated the vane's mesh data by 50 degrees and counter-rotated its transform, with the following results:

State Geometry (m) Reported before (m) Reported after (m)
Retracted 0.10 x 1.20 x 0.44 0.50 x 1.20 x 0.44 0.10 x 1.20 x 0.44
Extended 1.60 x 0.30 x 0.44 1.60 x 0.30 x 0.44 1.60 x 0.38 x 0.44

There's a trade-off here, since the two states aren't at the same angle so one of them must be off-axis to the bounds calculation.

Import/export through Blender has these side effects. I couldn't spot a difference due to them, but it might be subtle or only appear in certain situations:

  • The Animation component moves from solar to solar/solar/panel, with curve paths adjusted to match.
  • The three collider objects lose a MeshFilter that had no renderer.
  • Vertices are split (748 to 1382 across the three meshes) and tangents are recomputed.
  • Texture names lose their .tga extension.
  • File size goes from 57 KB to 78 KB.

It could be worth fixing this another way to avoid these side effects, but I'm not familiar with other tools that can handle these files.

AI Disclosure Claude Opus 5.5 did the investigation and produced the measurements and side effects survey, and wrote all of the commit message.

@njits23

njits23 commented Oct 10, 2026

Copy link
Copy Markdown

You appear to have let Claude sneak in again as a contributor.

@njits23

njits23 commented Oct 10, 2026 •

Copy link
Copy Markdown
image image It would appear that with the updated model the dimensions in-game are as expected.

It would be great if in the future such in-game demonstrations of the before and after situation could be included rather than just the table, which cannot be trusted to be accurate without in-game proof.

The vane mesh in argo-mk2-solar.mu is a thin plate stored tilted 50
degrees about X inside its own transform, so its mesh-local bounding
box is 0.43 x 0.29 x 0.42 m for a plate 0.07 m thick. With the panel
retracted, that box makes Unity report the CA-Mariner-3 model as 0.50 m
thick when its geometry is 0.10 m thick.

Rotate the mesh data by 50 degrees and counter-rotate the transform.
World-space geometry is unchanged. Reported retracted size goes from
0.50 x 1.20 x 0.44 m to 0.10 x 1.20 x 0.44 m. Reported extended size
goes from 1.60 x 0.30 x 0.44 m to 1.60 x 0.38 x 0.44 m.

The file was imported and exported with io_object_mu in Blender 4.5,
which also moves the Animation component from "solar" to "panel",
drops the unused MeshFilters on the three collider objects, 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 mariner3-vane-bounds branch from 26c234c to d622bd6 Compare October 10, 2026 16:34
@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