[mod]skybox[skybox]

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

[mod]skybox[skybox]

by sofar » Post

Presenting, beautiful and immersive skybox kits!

Video: https://www.youtube.com/watch?v=-m3HFGJ--Ig

Please watch the video to see it's effect - a screenshot would not do it any good nor explain the mod as well.

Code: Select all

License: LGPL-2.1+ with CC-BY-3.0 art (6 skyboxes included)
API: yes, other mods can add new skyboxes and manipulate them for users.
Permission: skybox
The mod creates 6 skybox kits. The kit consists of the 6 textures, but also includes a daylight modifier and color tint for fog, and tuned clouds (thickness, color, speed, lightness, translucency, density). Together, they allow the skybox to look much more immersive than a simple texture-only skybox change.

This mod is fairly large! Be prepared for slow server logins on the first connection. The skybox textures are balanced for detail and visual quality, and not tuned for fast loading.

Beware though! Using a skybox effectively disables sun, moon, clouds and day/night will be very different.

Github/source: https://github.com/minetest-mods/skybox
Download: https://github.com/minetest-mods/skybox ... master.zip

If you want to enable a specific skybox for all users, put this into a worldmods `init.lua` file on your server:

Code: Select all

minetest.register_on_joinplayer(player) skybox.set(player, <number>) end
(replace <number> with the number of the skybox you selected)

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

Re: [mod]skybox[skybox]

by azekill_DIABLO » Post

hooray! besr mod of the year!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: [mod]skybox[skybox]

by GreenXenith » Post

Made (found) my own skybox using this amazing mod. It's a crappy image, but hey, it worked! :D
Image
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

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

Re: [mod]skybox[skybox]

by azekill_DIABLO » Post

huh? awesome! but where is the real ground?
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: [mod]skybox[skybox]

by GreenXenith » Post

azekill_DIABLO wrote:huh? awesome! but where is the real ground?
I flew up enough that it faded away. I was just testing the concept :P
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
Linuxdirk
Member
Posts: 3216
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [mod]skybox[skybox]

by Linuxdirk » Post

This is pretty insane! Wow!

Quick question: How possible would it be fading/changing the skybox into another skybox basing on biome the player is in?

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

Re: [mod]skybox[skybox]

by azekill_DIABLO » Post

yes, with half transparent textures, surperposition and color variation :)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [mod]skybox[skybox]

by sofar » Post

Linuxdirk wrote:This is pretty insane! Wow!

Quick question: How possible would it be fading/changing the skybox into another skybox basing on biome the player is in?
Very difficult, engine work needed.

The only thing possible right now in the engine is to use texture compositing, but there is no way to do blending of textures right now. Even animated textures are not supported right now for the skybox.

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

Re: [mod]skybox[skybox]

by azekill_DIABLO » Post

and the problem is also we can't see moon, sun or anything with skyboxes.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

u34

Re: [mod]skybox[skybox]

by u34 » Post

Image

Image
Attachments
screenshot_20170418_155745_s.png
screenshot_20170418_155745_s.png (641.38 KiB) Viewed 2588 times
screenshot_20170418_161504_s.png
screenshot_20170418_161504_s.png (657.28 KiB) Viewed 2588 times

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

Re: [mod]skybox[skybox]

by azekill_DIABLO » Post

omg!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
PEAK
Member
Posts: 187
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK
Contact:

Re: [mod]skybox[skybox]

by PEAK » Post

That's indeed very immersive! ... but produces a heavy load. I scaled down the textures with Gimp (50%): that helped a lot -- and it’s quite beautiful enough.

Since I’m running the stable version of Minetest I had to comment out all lines related to store the player attributes storage (line 43 and lines 56-76).
So it works for me, anyway I’m playing singleplayer.
I am okay with using the screenshots in all my posts for the website of Minetest (http://minetest.net).

User avatar
TumeniNodes
Member
Posts: 2941
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]skybox[skybox]

by TumeniNodes » Post

Very cool PEAK, thank you
I hadn't even thought of that.

time for me to go play :D
A Wonderful World

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [mod]skybox[skybox]

by sofar » Post

PEAK wrote:That's indeed very immersive! ... but produces a heavy load. I scaled down the textures with Gimp (50%): that helped a lot -- and it’s quite beautiful enough.
Only at startup (first server login), really. The size of the images doesn't affect cpu or gpu utilization.

If you're a minimalist, you should remove the textures that you're not using.

User avatar
TumeniNodes
Member
Posts: 2941
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]skybox[skybox]

by TumeniNodes » Post

It would be awesome if there were a way to code in some animated overlays ; )
now those would add some proper lag :P

But I am more than thrilled with what you've done so far..., sofar (see what I did there?)
this is definitely a huge visual enhancement
A Wonderful World

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [mod]skybox[skybox]

by sofar » Post

https://www.youtube.com/watch?v=aiGSZR-q6AM

Image

Skybox textures AND clouds at the same time. I hope to be able to push this into minetest-0.4.16.

User avatar
TumeniNodes
Member
Posts: 2941
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]skybox[skybox]

by TumeniNodes » Post

I think I just had a crisis (as Jeremy Clarkson puts it) :P

Anyone who opposes this should be politely, yet repeatedly hit on the head.

I am not usually one for such language but... NICE f@%#in work sofar!!!!! (whew, thankfully the filter kicked in)
I'm wicked excited about this... if it wasn't obvious yet

(next step) try to use this same method (sort of) for the sun and moon and set them on some sort of cycle movement :D
A Wonderful World

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

Re: [mod]skybox[skybox]

by azekill_DIABLO » Post

hail sofar god of minetest. YEESS!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [mod]skybox[skybox]

by sofar » Post

The skybox mod as of now enables and tunes the clouds to match the skybox textures. This does require that you use a `git` build from today, or newer. It's probably best to wait for one of the semi-official builds before you try this, or you'll have to compile yourself.

Cheers,

User avatar
TumeniNodes
Member
Posts: 2941
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]skybox[skybox]

by TumeniNodes » Post

sofar,

I have forked selected items from RBA's git repos.
I have not looked through most of it, just a bit here and there but, it would be really awesome to find out how the hell he produced this https://www.youtube.com/watch?v=_UO_8U3 ... yo&index=4

seems to be related to the axis of rotation of the skybox?

anyway, just thought i would throw this here. I am sure you have prob seen it in the past but, just in case.
A Wonderful World

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

Re: [mod]skybox[skybox]

by azekill_DIABLO » Post

wow.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [mod]skybox[skybox]

by sofar » Post

TumeniNodes wrote: I have not looked through most of it, just a bit here and there but, it would be really awesome to find out how the hell he produced this https://www.youtube.com/watch?v=_UO_8U3 ... yo&index=4

seems to be related to the axis of rotation of the skybox?
The skybox itself is just a geometric object that has position, rotation, speed, etc.. What he does in the video is just slowly rotate the entire skybox over the Y axis.

It's certainly cool, but, there are some big problems with this approach, since it is very simplistic.

You can't do this in a mod.

There is a way to make this actually work well, and give it a good API, but it would basically throw away all the existing sky and skybox code, and would need an entirely new API.

Ideally, a future API would allow "sky objects" to be created independently, and have them of different types (e.g. "texture" for a star, moon or sun, or even a planet, spaceship, and a "box" type for things like clouds or star field, or majestic mountains, or deep blue sea etc.) and given them all parameters like order (z/depth), rotation axes, transparency, time related coefficients (day/night shading/blending etc).

User avatar
TumeniNodes
Member
Posts: 2941
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]skybox[skybox]

by TumeniNodes » Post

Thanks for the info sofar, nice to be able to understand more about this.

And if a new API is built to facilitate this in the future, it will be well worth the wait.

And, btw..., welcome back.
A Wonderful World

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

Re: [mod]skybox[skybox]

by azekill_DIABLO » Post

that very nice work, i hope 5.0 will allow us to do much more!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
mbb
Member
Posts: 256
Joined: Sat Jan 17, 2015 17:47
GitHub: mbruchert
IRC: mBb
In-game: MBB

Re: [mod]skybox[skybox]

by mbb » Post

Image
cdb_2fcfab1b41f9

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 15 guests