#How do I achieve 3D color filling effect

32 messages · Page 1 of 1 (latest)

abstract delta
wary idol
#

I am not an expert or very knowledgable on this, but I am pretty sure it is using shaders.

#

It would be some kind of fill shader with a ghose mesh, like the mesh starts appearing as we fill it.

abstract delta
icy lagoon
abstract delta
# icy lagoon Could you outline all the features that you want?
  1. The color should be filled wherever I touch the mesh.
  2. If I touch different parts of the mesh then the color should interact with what is already present, you can refer to the video linked.
  3. 1 mesh will have only 1 type of color.
  4. Should be able to use it in mobile devices.
  5. According to my research, this should be some type of eulerian fluid.
wary hamlet
abstract delta
#

I don't want prebuilt asset, I want to build it myself.

icy lagoon
#

I doubt it's an actual fluid sim

#

Maybe pre rendered or just hard coded swirling

#

Wait no it's probably a fluid sim

#

Maybe the fluid sim is done at a lower resolution and then rendering interpolates to a higher res with swirls

icy lagoon
#

What is the question

abstract delta
# icy lagoon What is the question

I want to do this inside a 3D mesh, which will run on Android devices. Simply implementing fluid sim won't be a feasible solution as it'd be heavy for mobile devices. The question is how to achieve this without using fluid sim, if the answer is shaders, again, how?

icy lagoon
#

why a 3d mesh?

#

and also do you want to simulate fluid or not

#

because the effect looks pretty simulated

#

doesn't matter if the sim is with shaders or not

glossy rivet
#

Wait

#

See CodeMonkey's Sprite DissolveEffect

abstract delta
abstract delta
icy lagoon
somber siren
# abstract delta I want to do this inside a 3D mesh, which will run on Android devices. Simply im...

If you don't want any actual fluid sim, I'd consider using some sort of voxel representation (3D grid of floating point values meaning 0 -> no liquid, 1 -> full liquid for example) for the container and use flood fill and/or some sort of cellular automata to gradually fill the voxel grid. You could then raymarch against the grid values + add some noise to make it look like an actual fluid. The concept would be essentially same as in this one: https://www.youtube.com/watch?v=ryB8hT5TMSg&t=28s. I doubt you would get it to look exactly as in the example video but something similar at least. Haven't made one myself but I have understood implementing fluid sim yourself is a painful process but with such small container and low resolution requirement, simple fluid sim could potentially be fast enough to work on mobile too but making one sounds tricky enough.

abstract delta
abstract delta
icy lagoon
#

I mean like you can shade the jello so it looks 3d, but the color fill effect is 2d. Like a texture

abstract delta
#

I'll share the work here if I'm able to achieve it

icy lagoon
#

... I mean it still doesn't solve your fluid problem

abstract delta