Page 1 of 1

Node Texture Colourised...

PostPosted: Fri Jun 20, 2014 18:35
by TenPlus1
It's great that the wield_texture has a few commands to rotate the texture, flip it and even lighten and play with the alpha channel colour, but what would be even better is if node textures had the facility to colourise a current texture using hue and saturation levels e.g.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
texture = "default_dirt.png^default_grass_side.png[hue196[sat50"


Image

This way mod makers can modify default textures or texture packs in-game to create a new look for mods with say coloured blue grass/wood instead of creating new textures...

Re: Node Texture Colourised...

PostPosted: Fri Jun 20, 2014 19:12
by 4aiman
If this would enable to create "enchantement" effect (e.g. constant change of colour w/o re-setting the wielded item) then it'll be even more amazing to have this :)

Re: Node Texture Colourised...

PostPosted: Fri Jun 20, 2014 21:29
by Jordach
Another possibility would be;

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
texture = "default_pick_mese.png^[randhue[randsat"

Re: Node Texture Colourised...

PostPosted: Sat Jun 21, 2014 19:41
by TenPlus1
You would end up with a totally weird and wonderful world to explore with colours gone wild :)

Re: Node Texture Colourised...

PostPosted: Sat Jun 21, 2014 21:42
by LionsDen
I would like it if we could overlay a texture on top of a node in it's metadata when it is in the world. This would allow even more special effects.

Re: Node Texture Colourised...

PostPosted: Sun Jun 22, 2014 19:39
by TenPlus1
Yeah, could animate many things including lock nodes and maybe even character/living nodes...

Re: Node Texture Colourised...

PostPosted: Tue Jun 24, 2014 10:08
by 4aiman
LionsDen. I'm afraid this may have chances only in FM...
(If only devs have changed their opinion)

Re: Node Texture Colourised...

PostPosted: Mon Oct 06, 2014 14:57
by TenPlus1
This has thankfully been added to the latest 0.4.10 dev (6th Oct 2014) with the new colorize tag in images... e.g:

tiles = {"default_wood.png^[colorize:#FF000050"}, -- red wood

...thanks devs :)

Re: Node Texture Colourised...

PostPosted: Tue Oct 07, 2014 02:32
by ExeterDad
I noticed that!
+1000

Re: Node Texture Colourised...

PostPosted: Tue Oct 07, 2014 13:48
by BlockMen
TenPlus1 wrote:This has thankfully been added to the latest 0.4.10 dev (6th Oct 2014) with the new colorize tag in images... e.g:

tiles = {"default_wood.png^[colorize:#FF000050"}, -- red wood

...thanks devs :)


Ah, here is the topic. I looked for but haven't found :D

Re: Node Texture Colourised...

PostPosted: Thu Oct 09, 2014 09:56
by 4aiman
TenPlus1 wrote:This has thankfully been added to the latest 0.4.10 dev (6th Oct 2014) with the new colorize tag in images... e.g:

tiles = {"default_wood.png^[colorize:#FF000050"}, -- red wood

...thanks devs :)


If only it could be done on-the-fly for any node...
Smooth biome transitions might have benefit from it.

Re: Node Texture Colourised...

PostPosted: Tue Nov 04, 2014 19:01
by Hybrid Dog
What about using just a colour with node position depending noise instead of a texture?

Re: Node Texture Colourised...

PostPosted: Sat Aug 22, 2015 15:20
by FreeLikeGNU
I think it would be cool if it colored nodes map gen style with definable gradients. For instance grass that slightly varies in hue over distance within its biome. Maybe using a perlin noise map? It could add variation to the world.

Re: Node Texture Colourised...

PostPosted: Mon Aug 24, 2015 10:34
by 4aiman
FreeLikeGNU wrote:I think it would be cool if it colored nodes map gen style with definable gradients. For instance grass that slightly varies in hue over distance within its biome. Maybe using a perlin noise map? It could add variation to the world.

There's a liquid issue on github with discussion of a set_node_overlay function. I find it related.
https://github.com/minetest/minetest/issues/3096