⚠ ネタバレ注意: 本サイトはSFアニメ「SOLAR LINE」の内容を詳細に分析しています。未視聴の方はご注意ください。
📝 AI生成コンテンツ: 本考証の大部分は AI(Claude Code 等)によって生成されています。内容の正確性については原作および引用元をご確認ください。

Task 589: Fix Per-Episode 3D Scene Camera Framing

未着手 ← タスク一覧

Task 589: Fix Per-Episode 3D Scene Camera Framing

Status: DONE

Description

Per-episode 3D scenes (from Tasks 587-588) had poor camera framing. The camera

used hardcoded positions that didn't account for where the transfer arc was

located in the scene, making arcs invisible or off-screen.

Root Cause

Two issues in loadScene() camera positioning for episode scenes:

  1. Coordinate swap bug: Arc positions from sceneData.transferArcs use data

coords [x_ecliptic, y_ecliptic, z_height], but Three.js Y-up needs

(data[0], data[2], data[1]). The bounding box was computed in wrong coords.

  1. Fixed camera direction: Using a fixed direction vector (0.54, 0.45, 0.72)

worked for some arcs but failed for arcs in other quadrants of the solar system.

Fix

elevated 35° above ecliptic plane. This ensures the camera always looks "inward

and down" at the arc regardless of its position.

Files