Visible Planets in Space

by Nauviax

Render the local planet behind platforms when in orbit. Now with parallax, rotation, and mod support!

Tweaks
5 days ago
2.0
17.8K
Environment

g Cerys Compatibility

15 days ago

Can you make Cerys render in space while rendering a huge and dark Fulgora in the background? Similar to the image at the very top of its introduction page.

15 days ago

The mod doesn't support rendering two planets at the same time right now, and I don't think it's something I'll ever get around to supporting. The closest you could probably get is by adjusting Cerys' starmap icon to include Fulgora in it, but I'm aware this wouldn't look nearly as good. (Cerys would likely be much smaller)

I've added this to my todo list either way, but I can't currently think of a nice way to implement this into the existing logic.

15 days ago
(updated 15 days ago)

Perhaps a dedicated image for visible-planets could be added in Cerys files? This way, it won't affect the starmap icon.

15 days ago

Or, like some HD planets do, stitch images together. Combine the images of the two planets.

15 days ago

What I'm thinking of doing is moving the visible-planet sprite prototype creation to data-updates, which would allow other mods to then retrieve and edit those prototypes however they want.

What this means is Cerys can replace the starmap icon with a new sprite that includes Cerys and Fulgora, but more importantly adjust the SCALE of said sprite so that it appears much larger than other planets would render. This way an image could be added and scale adjusted so that Cerys appears normal and a massive Fulgora is in the background of the sprite. This would also let me tick off "Allow mods to specify custom planet scale" from my list.

Of course, this image would likely be extremely pixelated, and even having an HD texture may not be enough to fix it. I also don't want to break existing mod compatibility, and moving code from data-final-fixes to data-updates might cause issues there.

I'm a little busy what with Christmas being tomorrow and all, but I'll look into a few options over the next week or so.

15 days ago

I understand your idea. Merry Christmas to you! Please don’t spend too much energy on this request. Wishing you a pleasant and relaxing holiday.

15 days ago

I forgot to mention, this is my favorite mod for visual effect adjustments. Thank you for creating it!

14 days ago

The latest version adds a way to override the sprite being used without affecting the starmap icon, along with a way to set a planet specific scale. If you have a fairly large sprite with Cerys small and in the center, then override Cerys' scale to be much bigger, it might look alright?

I've added the function names to the bottom of the mod page. Let me know if it works out, though I'm still looking into a better way to do a background planet. (Might be a little easier now that I have a system for planet specific settings?)

14 days ago
(updated 13 days ago)

What's the reason we couldn't have two renderings, one for the planet and one for the moon?

I included parent_planet = "fulgora" and planet_type = "moon" in the definition of the cerys planet prototype for this purpose. You could read the prototype, see there is a parent_planet, then render both.

14 days ago
(updated 14 days ago)

This is the current result.^^

14 days ago

What's the reason we couldn't have two renderings, one for the planet and one for the moon?

Currently I'm using the platform index to store the planet render, so two renders isn't possible on one surface. I'm seeing now that this really isn't a great idea, and I'm seriously considering doing a big rewrite soon to both fix this issue, but also fix parallax in multiplayer too. (I looked at your Cerys code, which seems to have parallax that wouldn't break in multiplayer.)

The only things stopping me right now is Christmas break really, and fear of needing to do a bunch of migrations to make old saves update cleanly. Hopefully sometime in January?

New response