Page 1 of 1

[0.4.10] Textureable sun and moon.

Posted: Tue Apr 22, 2014 12:27
by RealBadAngel
To use textures for sun and moon put sun.png and moon.png in your texture pack folder.
If you want them to be aviable for all the texture packs (including default), you can put them in /textures/pack/base/
If you want textures to be tinted, tonemaps have to be provided (512x1 px) named sun_tonemap.png and moon_tonemap.png
Sample tonemaps added as attachments.
Enjoy :)

Re: [0.4.10] Textureable sun and moon.

Posted: Tue Apr 22, 2014 13:36
by paramat
Thanks for this, along with the custon skybox i now have all i need to complete my space mods.
I assume we could use a transparent texture to disable the sun or moon?

Re: [0.4.10] Textureable sun and moon.

Posted: Tue Apr 22, 2014 13:51
by twoelk
I have added three of your lines to the wiki

Now I have to find out how my moon station can circle a gas giant

Re: [0.4.10] Textureable sun and moon.

Posted: Tue Apr 22, 2014 14:35
by RealBadAngel
paramat wrote:Thanks for this, along with the custon skybox i now have all i need to complete my space mods.
I assume we could use a transparent texture to disable the sun or moon?
ofc you can use transparent ones

Re: [0.4.10] Textureable sun and moon.

Posted: Fri Apr 25, 2014 00:00
by veriaqa
Nice...

Re: [0.4.10] Textureable sun and moon.

Posted: Fri Apr 25, 2014 14:01
by RealBadAngel
twoelk wrote:I have added three of your lines to the wiki

Now I have to find out how my moon station can circle a gas giant
For that i suppose setting the size of sun/moon is needed. ATM it has fixed size.

And heres some video with the feature:
https://www.youtube.com/watch?v=hubBBzh_190

Re: [0.4.10] Textureable sun and moon.

Posted: Sat Jul 12, 2014 01:35
by philipbenr
sorry to bump, but is there a way to make this feature customizable in games? I want to change the sun and moon feature in my game, but not touch anything else.

Re: [0.4.10] Textureable sun and moon.

Posted: Wed Aug 06, 2014 10:50
by afflatus
Great stuff!
What location should I use to change the default images for a specific game?

Re: [0.4.10] Textureable sun and moon.

Posted: Wed Aug 06, 2014 16:38
by Calinou
afflatus wrote:Great stuff!
What location should I use to change the default images for a specific game?
This doesn't seem to be possible, currently, only texture packs may change it.

Re: [0.4.10] Textureable sun and moon.

Posted: Sun Aug 10, 2014 09:33
by twoelk
Want to be on a moon circling Saturn?

Just put the file called moon.png into the textures/base/pack folder of your minetest version and enjoy Saturn travelling across your sky. This will change the default moon to an image of Saturn.

Sadly, as of version 0.4.10, the moon image seems to be displayed at a fixed size within Minetest. So until this may change in the future the orb of Saturn appears to be a little smaller than the default moon due to space needed to include the rings.

See the included info.txt for more information.

Re: [0.4.10] Textureable sun and moon.

Posted: Sun Aug 10, 2014 14:26
by Sokomine
twoelk wrote: Want to be on a moon circling Saturn?
Very nice idea! Reminds me of a film where Saturn (or another planet with rings) appeared prominently at the end. Now the night is a lot nicer.

Re: [0.4.10] Textureable sun and moon.

Posted: Sun Aug 10, 2014 15:38
by Inocudom
Ahh, Saturn, Saturn... By far the most revered and worshiped planet in the solar system... Many corporations use symbols that relate to it... Said to have once been our primary star in a purple epoch of great antiquity... It is also known as Kronus, and thus is known as Father Time... The true name of Rome is Saturnia... The cube is the shape that represents it the best, thus it is quite at home in Minecraft, and thus in Minetest...

Re: [0.4.10] Textureable sun and moon.

Posted: Sun Aug 24, 2014 03:42
by Moonsand
Its really nice to be able to use textures for sun and moon now. Good work! Would be awesome if they were resizeable too tho.
Sokomine wrote:Reminds me of a film where Saturn (or another planet with rings) appeared prominently at the end.
Probably 'the quite earth', great movie. ^^

Re: [0.4.10] Textureable sun and moon.

Posted: Sun Aug 24, 2014 13:24
by Inocudom
Moonsand wrote:Its really nice to be able to use textures for sun and moon now. Good work! Would be awesome if they were resizeable too tho.
Sokomine wrote:Reminds me of a film where Saturn (or another planet with rings) appeared prominently at the end.
Probably 'the quite earth', great movie. ^^
There is a reason why Saturn is used in corporate logos far more often than the other planets, and it is not just due to the fact that it is beautiful. Saturn is associated not only with silence, but also with restrictions, rules, corporations, and even judgement (which is why judges wear black robes.)

What about Jupiter, Uranus, and Neptune as moon textures as well? I especially prefer Uranus, as that poor planet gets very little attention.

Again, great work RealBadAngel. Time and time again, you prove to be one of the finest developers of Minetest.

Re: [0.4.10] Textureable sun and moon.

Posted: Sun Aug 24, 2014 22:39
by Jordach
Inocudom wrote:Again, great work RealBadAngel. Time and time again, you prove to be one of the finest developers of Minetest.
Oh dear god you've not seen the infinite bitching from the other devs he gets.

tl;dr he makes something new breaks something unrelated, his commit gets reverted so it never happened.

Re: [0.4.10] Textureable sun and moon.

Posted: Mon Aug 25, 2014 10:49
by twoelk
Jordach wrote:...
Oh dear god you've not seen the infinite bitching from the other devs he gets.
...
haha and the bitching from a guy known as Jordach. Just thinking of the recent "conversations" about the looks of lava.

but to be honest I think he "fixes" more than he breaks. Most people trying to work on the "look and feel" of Minetest get a good beating now and then, especially from some core devs who consider other things more important. I am not saying they are always wrong but I think he does quite often get accused of more than he is responsible for. What I do appreciate about RBA though is that he seems to be more aware of things outside of the Minetest-core code than others, such as that Minetest is using only a fraction of what could be possible with Irrlicht.

To keep praise in proportion I do believe there are other contributions worthy of more praise than this -
- but I must admit I really enjoy seeing Saturn or other stuff I experimented with traverse the Minetest sky. I do hope of course that this feature gets more options.

Possible future configuration could include (my wishlist ;-P)
  • Size of object in the sky
  • Keeping the descriptive original file name
  • setting of a rising time
  • More than one object (satellites and natural satellites)
  • setting offset from default path for each satelite (parallel paths)
  • making the orbit time of each satellite independant from the star background (making eclipses possible)
  • making individual orbit paths independant from the default star background direction (east to west)

Re: [0.4.10] Textureable sun and moon.

Posted: Mon Aug 25, 2014 11:32
by ExeterDad
Jordach wrote:Oh dear god you've not seen the infinite bitching from the other devs he gets.
LOL! Oh I see the logs. Like a gaggle of Old Ladies.
I gotta stand in RBA's corner. Some pretty exciting stuff he's working on. Actually you all are doing great work. Tis a shame a good portion of you dev's are so damn head strong though :)

Re: [0.4.10] Textureable sun and moon.

Posted: Mon Aug 25, 2014 14:19
by Jordach
twoelk wrote:
Jordach wrote:...
Oh dear god you've not seen the infinite bitching from the other devs he gets.
...
haha and the bitching from a guy known as Jordach. Just thinking of the recent "conversations" about the looks of lava.
That lava and water at first DID NOT use a dynamically generated cloud for bumpmappingm so it looked horrible.

Re: [0.4.10] Textureable sun and moon.

Posted: Mon Aug 25, 2014 20:39
by Sokomine
twoelk wrote: but I must admit I really enjoy seeing Saturn or other stuff I experimented with traverse the Minetest sky.
Oh yes. It looks very nice. Wish we could really travel that well and come that close to the outer planets (except with probes).

Re: [0.4.10] Textureable sun and moon.

Posted: Mon Aug 31, 2015 12:25
by 4aiman
Hello there!

Sorry for necroposting, but I don't really want to create a new thread.


The question is: is there a way to change the moon/sun image at run-time?

I don't really care if there's only one moon/sun image for everyone or I should change those manually for every player online.

Does the set_sky do it's job?