[Mod] Under Sky [under_sky]

Post Reply
Shara
Moderator
Posts: 179
Joined: Sat Aug 20, 2016 15:18
GitHub: ezhh
IRC: Shara

[Mod] Under Sky [under_sky]

by Shara » Post

This is a small and simple mod which adds a black skybox for players who are underground to prevent the regular skybox (and sun) showing through the walls of large caves which have not fully loaded. This improves atmosphere and keeps caves as dark as they should be.

Checks are in place so players using noclip underground to gain an overview of cave systems will not experience the black skybox.

(There are no screenshots because this is quite difficult to capture in an image. This mod is more about preventing something which breaks immersion and can look wrong than about adding something).

Download: https://github.com/Ezhh/under_sky/archive/master.zip

Source: https://github.com/Ezhh/under_sky

Dependencies: none

License: MIT (https://opensource.org/licenses/MIT).

Compatibility: Do not use this with other mods that change the skybox.

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Under Sky [under_sky]

by azekill_DIABLO » Post

that a great idea!

User avatar
TenPlus1
Member
Posts: 2867
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Under Sky [under_sky]

by TenPlus1 » Post

Help, I'm stuck in the darkness now...

User avatar
TumeniNodes
Member
Posts: 2873
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [Mod] Under Sky [under_sky]

by TumeniNodes » Post

TenPlus1 wrote:Help, I'm stuck in the darkness now...
That's what sofar's wield light is for...
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: [Mod] Under Sky [under_sky]

by ManElevation » Post

wow that's nice!
My Public Mods! Discord: Rottweiler Games#3368

User avatar
Milan*
Member
Posts: 252
Joined: Thu May 28, 2015 06:45
GitHub: tchncs
IRC: Passant
In-game: Milan Passant
Location: Germany
Contact:

Re: [Mod] Under Sky [under_sky]

by Milan* » Post

Oh, wonderful, thanks!
Illuna Minetestservers | Mastodon | [ matrix ] | I may host you a Minetestserver, just contact me.

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Under Sky [under_sky]

by azekill_DIABLO » Post

this mod was added to voxellar 1.7! however it disable when noclip: is it normal?

Shara
Moderator
Posts: 179
Joined: Sat Aug 20, 2016 15:18
GitHub: ezhh
IRC: Shara

Re: [Mod] Under Sky [under_sky]

by Shara » Post

It turns off when using noclip and inside nodes. This is because if you're flying through walls with noclip, you probably want to get a good view of cave systems, but that's really difficult against a black background.

It should then turn on again when you are inside a cave.

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Under Sky [under_sky]

by azekill_DIABLO » Post

thank you i think it's a great thing!

Shara
Moderator
Posts: 179
Joined: Sat Aug 20, 2016 15:18
GitHub: ezhh
IRC: Shara

Re: [Mod] Under Sky [under_sky]

by Shara » Post

Thanks. Feel free to send me a link to your updated version of voxellar when it's ready. It's always nice to see one of my mods in use. :)

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Under Sky [under_sky]

by azekill_DIABLO » Post

it's posted you have the link on my signature :D

and here: viewtopic.php?f=50&t=14115

Shara
Moderator
Posts: 179
Joined: Sat Aug 20, 2016 15:18
GitHub: ezhh
IRC: Shara

Re: [Mod] Under Sky [under_sky]

by Shara » Post

Updated to also turn off clouds when the sky is black.

c98351e3

Re: [Mod] Under Sky [under_sky]

by c98351e3 » Post

Great idea, this should be in default.

Bug report:
skybox doesnt switch back to default when reaching surface again and stays black instead.
Only rejoin fixes this.
This is on mt 5.2.0 and mtg 5.2.0.

User avatar
TenPlus1
Member
Posts: 2867
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Under Sky [under_sky]

by TenPlus1 » Post

If it helps I've fixed this issue with the syboxes in other_worlds and changed it so the player skybox goes black when underground: https://notabug.org/TenPlus1/other_worl ... skybox.lua
Last edited by TenPlus1 on Fri Jul 03, 2020 06:49, edited 1 time in total.

User avatar
FreeGamers
Member
Posts: 643
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod] Under Sky [under_sky]

by FreeGamers » Post

I was using skybox mod to handle this sort of function before and similarly came up with the same solution, change skybox to black when under -50 elevation. However, since the new weather mod has been introduced into Minetest, I've had conflicts that I haven't resolved yet. Just curious if you've experienced any issues with that.I may take a look at 10+1's fix for other worlds (another mod I used, but I ported the skybox configs to "skybox"). I have another mod controlling rain and snow too that might be a part of this mess. Not really sure what the point of this post is besides noting the new weather mod in MTG seems to have some conflicts with this.

User avatar
TenPlus1
Member
Posts: 2867
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Under Sky [under_sky]

by TenPlus1 » Post

@FreeGamers - We really need an api in default to handle things like background changes via biome or y-level and maybe player overrides for gravity.

c98351e3

Re: [Mod] Under Sky [under_sky]

by c98351e3 » Post

TenPlus1 wrote:
Wed Jun 24, 2020 05:30
If it helps I've fixed this issue with the syboxes in other_worlds and changed it so the player skybox goes black when underground: https://notabug.org/TenPlus1/other_worl ... skybox.lua
Thank u, ill try that.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests