RimWorld

RimWorld

36 ratings
[Save Our Ship 2] No Planet Render
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3
File Size
Posted
2.434 MB
Aug 16, 2021 @ 8:48pm
1 Change Note ( view )

Subscribe to download
[Save Our Ship 2] No Planet Render

Description
Simple mod that removes the Save Our Ship 2 planet rendering overtop the vacuum tiles and instead replaces it with the vacuum tile's loaded terrain texture. This mod gives vacuum tiles the space texture that is relatively similar to what is shown on the world screen.

I use Camera+ and I found it annoying that the planet rendering borks itself after reloading the save, therefore I went for the brute solution and I outright prevented the rendering on the vacuum tiles. SoS2 might use this solution at some point, but I got impatient and made this for myself and others to use, in case anyone else is looking for a solution.

May also be a (negligible) optimization improvement if you're lagging in space even without dynamic planet rendering enabled.
Load order doesn't matter, since it is a single harmony patch. All you need is SoS2 in your modlist.

Q/A:
- Why are there shadows in space?
There were always shadows in that mod's space! You probably didn't notice them until I made vacuum a terrain texture, and you can see shadows casting more easily. Sadly I can't think of anything I can do to fix this.

- Why isn't space seamless/camera zoom independent? It feels like this space is a ground texture (related to previous question).
Yeah, yeah, I know, that's the cost of using TerrainDef's material. I guess you could say there are just billions of stars that you see when you pan around, at different angles. I tried to make a custom renderer to make space seamless (similarly to SoS2), but I couldn't do it. Maybe somebody else can pick up that idea.

- This doesn't make a whole lot of sense though. The planet should be rendered below you...?
Well, you could think of it this way in terms of immersion: the camera pointing towards your ship (and others/other sites) is facing away from the planet.

- Where [insert version number]?
I'll get around adding backwards compatibility. Just need to switch versions to test the mod out on previous iterations of SoS2. It might work on previous versions, assuming the submesh draw method never changed across 3 versions.

- Where's the source of this mod?
I don't think it's big enough to open a github page for. Maybe I'll do it later though, or in case somebody asks. You can look in the source yourself using an assembly peeking software (I use DnSpy).

Reference links:
Save Our Ship 2
Camera+
HugsLib
16 Comments
Timskywalker248 Mar 3, 2023 @ 6:34pm 
1.4please?
Mr. X WeregλrurumonX Oct 3, 2022 @ 12:15pm 
Mod conflicts with Map Preview (Cannot preview tile to land on). https://steamcommunity.com/sharedfiles/filedetails/?id=2800857642
Ruby 🦈 Sep 10, 2022 @ 12:25pm 
Patch doesn't apply to Plasma Exhaust (Nuclear Engine Exhaust Tiles), but's otherwise great because I'm not giving up camera+ lmao
Orbit Aug 23, 2022 @ 6:09am 
plz fix
[BRE] Feliz May 8, 2022 @ 8:05pm 
for me the background is not visible in the fire zone of the engine..
and the planet is showing through some squares
TwinIndifferent Apr 18, 2022 @ 10:28am 
What about actually making parallax-like image of space instead of flat vacuum? Like Space Station 13 builds do lately. And probably can have animation for flight purposes...
Solid Wires  [author] Aug 19, 2021 @ 10:51am 
@Nizate
Well, you gave me an idea there. I'll look and see if that idea works... I could possibly move the world camera away from the sun and making the planet sphere invisible... assuming that it's a sphere mesh in Unity and the world camera can be defined to point towards a specific direction in world space (not locally). It's going to take some transpiler operations though, which I'm not very excited about.
I would contact SoS2 developers, but I recognize that they're probably busy with other issues and something as small and insignificant as preventing the planet rendering and having a starry background instead for Camera+ compatibility would probably take a while for them to get to. I'm also not very socially adept, as you may figure. I don't want to demand this fix to them, so therefore I fixed it in my own way.
Nizate Aug 19, 2021 @ 10:33am 
Solid, you could awlays get incontact with some SoS2 people and see about making a cool work around... I believe the background is based on a render of the World map or something like that because I did notice its not just any planet its the one I am on. Maybe if there is a view angle associated with it, try flipping it 180 so you only see space?
pgames-food Aug 18, 2021 @ 6:07pm 
(thanks tubfan)
Solid Wires  [author] Aug 18, 2021 @ 11:43am 
Yeah, that's the consequence of preventing the planet render on vacuum tiles. I tried patching this but I don't understand how the background image works exactly. Therefore, the stars ended up looking like terrain flooring.