[Mod] Craft Clouds [craft_clouds]

Post Reply
User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

[Mod] Craft Clouds [craft_clouds]

by qwertymine3 » Post

Simple physical clouds using 3D Perlin noise - Inspired by the clouds in Craft https://github.com/fogleman/Craft

Clouds are by default at the normal cloud height - these are normally too far above the player to generate when the player is at ground level, but can be seen when climbing a mountain in mapgen v5 or v7.

Image
Spoiler
Image
Image
Image
Download
https://github.com/Qwertymine/craft_clo ... master.zip
Github
https://github.com/Qwertymine/craft_clouds


Depends - None

License - WTFPL
Avatar by :devnko-ennekappao:

User avatar
pinkysnow
Member
Posts: 91
Joined: Sat Sep 26, 2015 01:58
GitHub: pinkysnowman

Re: [Mod] Craft Clouds [craft_clouds]

by pinkysnow » Post

its very nice :) i am doing a similar thing but using meshes but i do say it looks very nice indeed

+1

i would sugest a new node with maybe some alpha channel, and maybe the ocasional higher more puffy cloud

User avatar
firefox
Member
Posts: 1709
Joined: Wed Jan 14, 2015 07:34
In-game: Red_Fox
Location: Xanadu

Re: [Mod] Craft Clouds [craft_clouds]

by firefox » Post

what about liquid clouds? (without flowing) they are made of steam after all

+1
✨🏳️‍🌈♣️✨

Dragonop
Member
Posts: 1233
Joined: Tue Oct 23, 2012 12:59
GitHub: Dragonop
IRC: Dragonop
In-game: Dragonop
Location: Argentina

Re: [Mod] Craft Clouds [craft_clouds]

by Dragonop » Post

+1 those clouds look really cool, I like them

and:
+1 for firefox's idea, I think you could make it to only flow in one direction, only one block, so it looks like it's moving. (As always, no idea if this is currently possible)

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

Re: [Mod] Craft Clouds [craft_clouds]

by paramat » Post

Looks good and well coded. It might be better to use:

Code: Select all

vm:set_lighting({day = 0, night = 0})
I'm concerned the tops of mountains will lose their shadows and become fullbright.

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Craft Clouds [craft_clouds]

by qwertymine3 » Post

paramat wrote:Looks good and well coded. It might be better to use:

Code: Select all

vm:set_lighting({day = 0, night = 0})
I'm concerned the tops of mountains will lose their shadows and become fullbright.
Thanks for pointing that out - it is now fixed.
Avatar by :devnko-ennekappao:

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

Re: [Mod] Craft Clouds [craft_clouds]

by Sokomine » Post

Nice idea. Perhaps they could come in diffrent colors, like real clouds? Sometimes they're white, sometimes more greyish. Have you tried out the liquid approach suggested by firefox?
A list of my mods can be found here.

User avatar
qwertymine3
Member
Posts: 202
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: [Mod] Craft Clouds [craft_clouds]

by qwertymine3 » Post

Sokomine wrote:Nice idea. Perhaps they could come in diffrent colors, like real clouds? Sometimes they're white, sometimes more greyish. Have you tried out the liquid approach suggested by firefox?
The issues with trying to colour the clouds is that (as it is simple perlin noise) it would be hard to identify a single cloud ( and only colour that one ).

I have tried liquids and semi-transparency:
The liquid clouds work fine, haven't gotten around to polishing up though. Still haven't found out if I can avoid the need for a flowing block without the engine complaining.
There are issues with semi-transparency in minetest - I think I'll avoid this for now.
Avatar by :devnko-ennekappao:

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

Re: [Mod] Craft Clouds [craft_clouds]

by paramat » Post

For colouring clouds you don't need to separate individual clouds, cloud colour varies gradually over a huge distance, so you could use a 2D noise for colour with a large 'spread' (512?), because colour varies smoothly and doesn't need fine detail you would only need 2-3 octaves so it would be lightweight.

User avatar
TumeniNodes
Member
Posts: 2943
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] Craft Clouds [craft_clouds]

by TumeniNodes » Post

Would these be able to get hard coded into the engine as default? so they move as clouds do now? That would be amazing.
I tried out "craft" before and thought the clouds are so awesome! But stationary. It would be so cool if they moved and maybe even changed in shape a little as they move along.
The sky in "craft" is extremely impressive as well... would also make a nice addition
A Wonderful World

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests