[Mod][WIP] Skybox Extended [skybox_extended]

Post Reply
User avatar
emperor_genshin
Member
Posts: 70
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin - Genshin
In-game: Emperor_Genshin - Genshin
Location: Cyberspace
Contact:

[Mod][WIP] Skybox Extended [skybox_extended]

by emperor_genshin » Post

Greetings Minetest Community!

This mod adds a simple coded interchangeable skybox which adds Space to a regular minetest world, adding certain realism when going into higher altitudes.
  • When on earth
    Image

    When in space (Currently activates at Y = 1000)
    Image

    Screenshots were taken from one of my WIP servers, please focus on the skybox changes instead of the other things that are shown in these images.
NOTE: This mod is still work in progress, would like volunteers to help me test this mod entirely.

If you have any further Ideas for this mod feel free to share them here.

NOTE: I've tested this on one of my public minetest servers during my spare time, so far it works very well.
The skybox images that I was using as a placeholder to test the mod is from Xonotic, please give credit to Cuinn Herrick if you are using his images.

Credits: Kudos to Amaz for helping me adding a check timer code and paramat for reviewing the code.

Source Code License: WTFPL

Dependencies: None

Requires: Minetest 0.4.11 or Higher

Version: 0.2
  • Version:0.1: First Release
    Version:0.2: Added Fixes + Check Timer
  • TODO: Make generated debree for space.
Repository: https://notabug.org/Genshin/skybox_extended
Last edited by emperor_genshin on Mon Sep 02, 2019 20:33, edited 22 times in total.
I'm just a individual who likes to make impressive things. | Current Mod: Dungeon Crawl Maker https://www.youtube.com/watch?v=c6g6H2kLBpg

fessmK
Member
Posts: 49
Joined: Wed Sep 25, 2013 15:56

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by fessmK » Post

Nice idea. You should upload the skybox images if you can. Also, make the stars more detailed, and see if you can make a second skybox with improved stars appear at night.

User avatar
emperor_genshin
Member
Posts: 70
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin - Genshin
In-game: Emperor_Genshin - Genshin
Location: Cyberspace
Contact:

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by emperor_genshin » Post

Thank you, I'll see what I can do with the skybox images. :)
fessmK wrote:Nice idea. You should upload the skybox images if you can. Also, make the stars more detailed, and see if you can make a second skybox with improved stars appear at night.
Side note: may be adding space vaccum feature on this mod later on as well, incluiding random space debree like asteroids and such to generate.
I'm just a individual who likes to make impressive things. | Current Mod: Dungeon Crawl Maker https://www.youtube.com/watch?v=c6g6H2kLBpg

User avatar
paramat
Developer
Posts: 3691
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by paramat » Post

'local space = ' and 'local spaceskybox = ' should be before 'register globalstep' for speed.
Also globalstep is 10 times per second, there's no need to check the y's of all players that often, add a timer or use random to check less often, once every few seconds is enough.

User avatar
emperor_genshin
Member
Posts: 70
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin - Genshin
In-game: Emperor_Genshin - Genshin
Location: Cyberspace
Contact:

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by emperor_genshin » Post

Thank you paramat, will make sure to fix that as soon as possible.
paramat wrote:'local space = ' and 'local spaceskybox = ' should be before 'register globalstep' for speed.
Also globalstep is 10 times per second, there's no need to check the y's of all players that often, add a timer or use random to check less often, once every few seconds is enough.
I'm just a individual who likes to make impressive things. | Current Mod: Dungeon Crawl Maker https://www.youtube.com/watch?v=c6g6H2kLBpg

User avatar
DS-minetest
Member
Posts: 1141
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by DS-minetest » Post

i like it, i always wanted such of mod
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

User avatar
davidthecreator
Member
Posts: 359
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by davidthecreator » Post

awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

User avatar
Napiophelios
Member
Posts: 1019
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by Napiophelios » Post

This is pretty neat for space fans.
Maybe you could expand it for several ranges:
One for space
one for surface levels
one for underground
and one for the Nether

I experimented with the underground range a little.
If you rearrange the values for -200 and use solid black textures;
caves are completely dark without any "blueskies" showing in open areas.
Image Image


regsky.png
(241.35 KiB) Not downloaded yet
skyext.png
(213.12 KiB) Not downloaded yet

User avatar
emperor_genshin
Member
Posts: 70
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin - Genshin
In-game: Emperor_Genshin - Genshin
Location: Cyberspace
Contact:

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by emperor_genshin » Post

Already done that ;)

You could give it a try on minetest server snet1.thesentinelempire.com/30015

Also, great work with the experiment Napiophelios :)
Napiophelios wrote:This is pretty neat for space fans.
Maybe you could expand it for several ranges:
One for space
one for surface levels
one for underground
and one for the Nether

I experimented with the underground range a little.
If you rearrange the values for -200 and use solid black textures;
caves are completely dark without any "blueskies" showing in open areas.
Image Image


regsky.png
skyext.png
Edit: I still may need to work on this server before releasing it to the Public Server List.

Hmm, maybe I'll add that addition to the official mod, I just need more time to think about it feel free to help me decide, would this be a necessary addition? :)
I'm just a individual who likes to make impressive things. | Current Mod: Dungeon Crawl Maker https://www.youtube.com/watch?v=c6g6H2kLBpg

User avatar
DI3HARD139
Member
Posts: 154
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by DI3HARD139 » Post

I'll help with the testing if you'd like. Both in Server and SP environments (Heavily and lightly modded).

User avatar
emperor_genshin
Member
Posts: 70
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin - Genshin
In-game: Emperor_Genshin - Genshin
Location: Cyberspace
Contact:

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by emperor_genshin » Post

Sure, that would be great. :)
DI3HARD139 wrote:I'll help with the testing if you'd like. Both in Server and SP environments (Heavily and lightly modded).
I'm just a individual who likes to make impressive things. | Current Mod: Dungeon Crawl Maker https://www.youtube.com/watch?v=c6g6H2kLBpg

User avatar
DS-minetest
Member
Posts: 1141
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by DS-minetest » Post

TailsTheFoxDoes MT wrote:*deleted*
just copy the code in a init.lua and make textures


@emperor_genshin: can i get those textures from ur screenshots
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

User avatar
DI3HARD139
Member
Posts: 154
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by DI3HARD139 » Post

I second DS-minetest's request.

User avatar
emperor_genshin
Member
Posts: 70
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin - Genshin
In-game: Emperor_Genshin - Genshin
Location: Cyberspace
Contact:

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by emperor_genshin » Post

The Skybox textures I used as a placeholder for this mod are from Xonotic, if you want them click this link bellow.

http://opengameart.org/content/xonotic-skyboxes

The skybox textures that you are looking for is called "polluted_earth".
DS-minetest wrote:
TailsTheFoxDoes MT wrote:*deleted*
just copy the code in a init.lua and make textures


@emperor_genshin: can i get those textures from ur screenshots
DI3HARD139 wrote:I second DS-minetest's request.
NOTE: You may want to convert these files to .png for minetest.

As a side note I will work on my own skybox textures soon.
I'm just a individual who likes to make impressive things. | Current Mod: Dungeon Crawl Maker https://www.youtube.com/watch?v=c6g6H2kLBpg

User avatar
DS-minetest
Member
Posts: 1141
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by DS-minetest » Post

emperor_genshin wrote:The Skybox textures I used as a placeholder for this mod are from Xonotic, if you want them click this link bellow.

http://opengameart.org/content/xonotic-skyboxes

The skybox textures that you are looking for is called "polluted_earth".
DS-minetest wrote:
TailsTheFoxDoes MT wrote:*deleted*
just copy the code in a init.lua and make textures


@emperor_genshin: can i get those textures from ur screenshots
DI3HARD139 wrote:I second DS-minetest's request.
NOTE: You may want to convert these files to .png for minetest.

As a side note I will work on my own skybox textures soon.
thx

(TailsTheFoxDoes MT's post disappeared)
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

User avatar
emperor_genshin
Member
Posts: 70
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin - Genshin
In-game: Emperor_Genshin - Genshin
Location: Cyberspace
Contact:

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by emperor_genshin » Post

Would be great if Minetest's skybox feature had a Fade-In/Fade-Out function when applying a change to the skybox. =/
I'm just a individual who likes to make impressive things. | Current Mod: Dungeon Crawl Maker https://www.youtube.com/watch?v=c6g6H2kLBpg

User avatar
DI3HARD139
Member
Posts: 154
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by DI3HARD139 » Post

I agree with that. I was playing around with some skybox textures. Namely Outer space ones and currently have 3 layers. One at 10k, 2nd at 20k and 3rd at 30k. Kind of annoying how it just jumps between textures.

User avatar
emperor_genshin
Member
Posts: 70
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin - Genshin
In-game: Emperor_Genshin - Genshin
Location: Cyberspace
Contact:

Re: [Mod][WIP] Skybox Extended [skybox_extended]

by emperor_genshin » Post

Added Repository Link
I'm just a individual who likes to make impressive things. | Current Mod: Dungeon Crawl Maker https://www.youtube.com/watch?v=c6g6H2kLBpg

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests