[0.4.10] Textureable sun and moon.

Locked
User avatar
RealBadAngel
Member
Posts: 557
Joined: Wed Jul 18, 2012 16:30

[0.4.10] Textureable sun and moon.

by RealBadAngel » Post

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 :)
Attachments
moon_tonemap.png
moon_tonemap.png (220 Bytes) Viewed 2612 times
sun_tonemap.png
sun_tonemap.png (209 Bytes) Viewed 2611 times

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

Re: [0.4.10] Textureable sun and moon.

by paramat » Post

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?

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [0.4.10] Textureable sun and moon.

by twoelk » Post

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

User avatar
RealBadAngel
Member
Posts: 557
Joined: Wed Jul 18, 2012 16:30

Re: [0.4.10] Textureable sun and moon.

by RealBadAngel » Post

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

User avatar
veriaqa
Member
Posts: 65
Joined: Tue Nov 19, 2013 13:38

Re: [0.4.10] Textureable sun and moon.

by veriaqa » Post

Nice...

User avatar
RealBadAngel
Member
Posts: 557
Joined: Wed Jul 18, 2012 16:30

Re: [0.4.10] Textureable sun and moon.

by RealBadAngel » Post

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

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: [0.4.10] Textureable sun and moon.

by philipbenr » Post

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.

User avatar
afflatus
Member
Posts: 362
Joined: Tue Apr 01, 2014 19:47
GitHub: 0-afflatus
IRC: afflatus
In-game: afflatus
Location: Avalonia
Contact:

Re: [0.4.10] Textureable sun and moon.

by afflatus » Post

Great stuff!
What location should I use to change the default images for a specific game?

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

Re: [0.4.10] Textureable sun and moon.

by Calinou » Post

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.

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [0.4.10] Textureable sun and moon.

by twoelk » Post

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.
Attachments
Saturn_as_moon.zip
(25.72 KiB) Downloaded 372 times

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [0.4.10] Textureable sun and moon.

by Sokomine » Post

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.
A list of my mods can be found here.

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [0.4.10] Textureable sun and moon.

by Inocudom » Post

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...

Moonsand
New member
Posts: 1
Joined: Fri Jul 05, 2013 04:46

Re: [0.4.10] Textureable sun and moon.

by Moonsand » Post

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. ^^

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [0.4.10] Textureable sun and moon.

by Inocudom » Post

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.

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

Re: [0.4.10] Textureable sun and moon.

by Jordach » Post

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.

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [0.4.10] Textureable sun and moon.

by twoelk » Post

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)

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [0.4.10] Textureable sun and moon.

by ExeterDad » Post

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 :)

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

Re: [0.4.10] Textureable sun and moon.

by Jordach » Post

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.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [0.4.10] Textureable sun and moon.

by Sokomine » Post

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).
A list of my mods can be found here.

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: [0.4.10] Textureable sun and moon.

by 4aiman » Post

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?

Locked

Who is online

Users browsing this forum: No registered users and 1 guest