Leaves, like grass, should change colour depending on the biome. #2683

Closed
opened 2022-09-27 20:34:06 +02:00 by FossFanatic · 10 comments
Contributor

Currently, grass seems to change colour depending on which biome it is on, but the same cannot be said for leaves, or other plants for that matter.

Leaves should also change their colours depending on which biome they're located on. This will help give the biomes a more uniform and overall more beautiful look.

This colour change should also count for most other plants, like vines.

Currently, grass seems to change colour depending on which biome it is on, but the same cannot be said for leaves, or other plants for that matter. Leaves should also change their colours depending on which biome they're located on. This will help give the biomes a more uniform and overall more beautiful look. This colour change should also count for most other plants, like vines.
Contributor

it's just reeds / sugarcane and grass. Tallgrass and fern might work i suppose, leaves and vines are probably off the table (vines bc they use param2 which is used for the color for the orientation) and leaves because they get placed through schematics - i think going over them after the fact might be quite expensive.

I've made it for water before, only works for water source not flowing water though you can have a look in this commit if anyone wants to play around with this stuff - that's basically how it works: biome has a "palette index" number and the node definitions include a palette file - the number signifies which pixel from the palette to use as the color.

What about creepers though? I think we need chameleocreepers

it's just reeds / sugarcane and grass. Tallgrass and fern might work i suppose, leaves and vines are probably off the table (vines bc they use param2 which is used for the color for the orientation) and leaves because they get placed through schematics - i think going over them after the fact might be quite expensive. I've made it for water before, only works for water source not flowing water though you can have a look in this commit if anyone wants to play around with this stuff - that's basically how it works: biome has a "palette index" number and the node definitions include a palette file - the number signifies which pixel from the palette to use as the color. What about creepers though? I think we need chameleocreepers
Author
Contributor

leaves and vines are probably off the table (vines bc they use param2 which is used for the color for the orientation) and leaves because they get placed through schematics - i think going over them after the fact might be quite expensive.

What a shame. Hopefully one day the development team can get around fixing this seemingly easy but actually difficult issue.

But I guess "chameleon creepers" that blend in with the environment could make for a new type of danger. It doesn't seem very vanilla though, so it should probably be a mod that can be installed instead.

>leaves and vines are probably off the table (vines bc they use param2 which is used for the color for the orientation) and leaves because they get placed through schematics - i think going over them after the fact might be quite expensive. What a shame. Hopefully one day the development team can get around fixing this seemingly easy but actually difficult issue. But I guess "chameleon creepers" that blend in with the environment could make for a new type of danger. It doesn't seem very vanilla though, so it should probably be a mod that can be installed instead.

Who cares about vanilla :)

Who cares about vanilla :)
Contributor

b485364feb - here's the water thing only works with water sources though so also not ideal but it does kind of look nice - except at the interface between flowing and source water haha

But it shows how it works: the biomes have a "palette_index" property which is a number that correlates to a pixel in a palette which is used by the minetest paramtype2 "color" (which means param2 set's the color if you hadn't guessed)

https://git.minetest.land/MineClone2/MineClone2/commit/b485364febc55aec8bf0b49b98d634dd778cf61b - here's the water thing only works with water sources though so also not ideal but it does kind of look nice - except at the interface between flowing and source water haha But it shows how it works: the biomes have a "palette_index" property which is a number that correlates to a pixel in a palette which is used by the minetest paramtype2 "color" (which means param2 set's the color if you hadn't guessed)
Contributor

There everything you asked for except vines totally does work with leaves - forget what i said.

There everything you asked for except vines totally does work with leaves - forget what i said.
Contributor

and vines can maybe work as well using the "colorwallmounted" paramtype2 - the palette would be limited 32 but mcl_core_palette_grass only has 30 at the moment anyways

and vines can *maybe* work as well using the "colorwallmounted" paramtype2 - the palette would be limited 32 but mcl_core_palette_grass only has 30 at the moment anyways
Author
Contributor

This sounds like great news.
So, it's only flowing water that is unable to change colours, and vines are limited in which colours they can use? What is the reason behind this?

This sounds like great news. So, it's only flowing water that is unable to change colours, and vines are limited in which colours they can use? What is the reason behind this?
Contributor

as i said they use the same field for the orientation so only 5 bit remain ig https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L729

as i said they use the same field for the orientation so only 5 bit remain ig https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L729
Author
Contributor

So, does this mean that it's impossible to change the colour of flowing water? Or will a solution be found to this one day?

So, does this mean that it's impossible to change the colour of flowing water? Or will a solution be found to this one day?
ancientmarinerdev added the
graphics
label 2023-02-02 21:55:37 +01:00
Author
Contributor

I guess I should close this now, since biome coloured leaves have finally been added: MineClone2/MineClone2#3420.

It has been quite the journey to get this added.

I guess I should close this now, since biome coloured leaves have finally been added: https://git.minetest.land/MineClone2/MineClone2/pulls/3420. It has been quite the journey to get this added.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: VoxeLibre/VoxeLibre#2683
No description provided.