xenurine-minetest / Beer_Test

A mod which adds beer to Minetest
0 stars 0 forks source link

Show liquid level state for liquid containers by texture/model/nodebox #13

Open nics-le opened 6 months ago

nics-le commented 6 months ago

Means: an empty barrel should look like an empty barrel (as it does in status quo in every state), a half filled barrel should look like a half filled barrel and a full barrel should look like a full barrel. And liquids surface color should match with it's ingredients too.

Problems: While modifying the top texture (for liquid surface) could be done by filters etc (so we can even set its color dynamically by malts EBC value) it's not so easy to dynamically change the nodebox model to show liquids current volume. Actually it's not possible since minetest engine doesn't support it.

So our only option is to register a node for each liquid volume level and dynamically replace the nodes if barrel/cauldron got filled (or liquid is taken from it).

Questions:

  1. Do we want to implement this?
  2. if yes: how many different states?
  3. will we use nodeboxes or meshes?
  4. if meshes: is it possible to manipulate their textures by using filters?
xenurine commented 6 months ago

for now, ill make the barrel appear closed, this should fix the liquid level issue (we could possible add an animation where the lid moves (like what happens with chest.

for the Cauldron we can have a full state and a empty state. we could add a third stage so we have;

Empty (at 0% full) Half full (under 50%) full (over 50%)

I think the best solution is ti use the two stage approach