Skip to content

[BUG] Stars & Planets can render to close to eacht other ->overlap #20

@Codenix-1349

Description

@Codenix-1349

🐛 Bug Description

Star nodes on the 3D galaxy map can overlap visually, resulting in intersecting or partially merged spheres.

The actual behaviour:
Multiple star systems are rendered too close to each other, causing visual overlap and reducing map readability. In some cases, connection lines also intersect through star meshes.


✅ Expected Behaviour

Star systems should never overlap.

Each generated star should:

  • Maintain a minimum spatial distance from other stars
  • Respect a defined collision / spacing radius
  • Preserve clear visual separation for readability and gameplay clarity

🔁 Steps to Reproduce

  1. Start a new game session
  2. Let the procedural galaxy generate
  3. Zoom into a cluster of nearby systems
  4. Observe intersecting star meshes

🎮 Game Context

  • Branch: main
  • Commit (if known): unknown
  • Godot Version: 4.x
  • OS: Windows 10/11
  • Build Version (if applicable): Development build

📂 Affected System

  • UI
  • Combat
  • AI
  • GalaxyMap
  • Economy
  • Audio
  • Camera
  • Save/Load
  • Other:

⚠️ Severity

  • Medium (Gameplay affected, workaround exists)

Reason:
The game remains playable, but visual clarity and navigation accuracy are affected.


📸 Screenshots / Logs

See attached screenshot:
Stars overlap visually on generated galaxy map.


🧠 Additional Notes

This likely originates from procedural generation logic not enforcing a minimum distance constraint between star positions.

Possible causes:

  • No spatial validation during star placement
  • Missing distance check between generated coordinates
  • Random generator range too dense
  • Scaling factor not considered when positioning MeshInstances
  • Star radius not included in spacing calculation

Suggested fix:
Implement minimum distance validation (e.g. sphere packing check) during procedural generation before confirming star placement.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmediumAffects gameplay but workaround exists.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions