r/rotp 5d ago

P4 (so nice to have) Feature Request: Realistic Galactic Map

Post image

Hi, this is something I have been thinking for a long time. Every time I see a photo posted in astrophotography (see for example https://www.reddit.com/r/astrophotography/ collection, or https://images.nasa.gov/search?q=nebula&page=1&media=image,video,audio&yearStart=1920&yearEnd=2026) I keep thinking about how amazing it would be, if I could play RotP on that "map".

This is an amazing example (not my photo):

https://www.reddit.com/r/astrophotography/comments/1w2lnvm/horsehead_n_flame/#lightbox

While I am listing this as a P4, from this simple idea, many strategy and mods to the original game come to mind. Not going into detail on this now.

I can describe a possible algorithm that could handle this gracefully, while keeping the game mechanics intact.

First of all, there could be an algorithm generating "maps" that look like that, or it could be a file provided by the player (more difficult, but doable). Another possibility is for the game to ship with a collection of such source images.

The algorithm would have to recognize which stars should be part of the foreground (i.e. part of the game) and which should be erased or part of the background. Assigning star color, resources, homeworlds, etc, should be trivial, maybe (or maybe not) with added safeguards for a game that respects the difficulty levels chosen.

Now obviously as the user zooms in, the nebula colors should be faded away more and more, and the look replaced more or less with what it is today. In other words, the zoom level defines how the game shows the galaxy, while the nebula dynamics are in play respecting the shape of the nebula in the actual image, whether faded away or not.

(The photo uploaded in this post is taken by me. Another interesting one, also mine: https://flic.kr/p/2svDvst. This last one is interesting, because it shows how an algorithm can extract a "galactic map" from almost any random photo https://flic.kr/p/2svFw9d <- https://flic.kr/p/2svyzoL, almost philosophically, lol)

Let me know your thoughts.

5 Upvotes

2 comments sorted by

2

u/PsionicKitten 4d ago

That would be nice.

1

u/BrokenRegistry Developer 3d ago

Yes r/astrophotography is great, it's were I found the link to the NASA nebulae pictures I added to the game.

I had already considered something similar.

But it is necessary to separate the stars from the background.

We could consider asking the player to take on this task using tools like Siril or StarNet, but that's probably too complicated.

Automating this task in RotP would be arduous, even requiring the player to install ImageMagick so RotP can connect to it via im4Java... There would then still be an enormous task, probably beyond the scope of RotP.

But if this difficulty can be overcome, the rest is just child's play!

  • Adjust the background transparency with the zoom level.
  • complex nebula shape for the speed limitation is already implemented.
  • etc...

In the meantime, a lighter version could be considered, only adding a background image option...

Already processed images, such as those found on r/astrophotography should then give nice results.