Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  FluXY Dye
#1
Hi, I hope you are all doing well.
I just have a few questions about FluXY. If you take the time to answer, I'd appreciate it.

I'm trying to implement the dyeing mechanic of a game called "Jelly Dye" (the app store link is down below).

My first question is, do you think that it is possible to achieve this with FluXY package?
Second question is, is there a better/easy way to achieve it?

If it is possible with FluXY, then I need help Sonrisa

I'm working on a container with the shape of a volume. I am increasing its size to fill the volume faster, applying torque to ensure even distribution, and gradually reducing turbulence over time to slow down its spread and eventually stop. It seems like it's kinda working but I need to do it with custom mesh. That's the point I'm having problems. Scaling the target causes unwanted shapes to appear. (a screenshot is attached). Torque is causing this I guess but It was fine when working with volume.

How can I prevent this?
Is there a better way to spread it and eventually make it look completely filled with no motion? I feel like I'm on the wrong path, I cannot fully understand spreading mechanism of this package.
Also I don't want it to dissolve or look like transparent. I need it opaque all the time.

Lastly, I was able to fix a few things in the last few hours but I cannot rotate and fill the whole object. (Screenshot with the blue effect)

Any help, advice or leading is appreciated.
Thanks in advance.

(While trying to figure things out I almost changed every single value on editor. So, if you see something strange please let me know Guiño)

https://apps.apple.com/us/app/jelly-dye-...orm=iphone


Attached Files Thumbnail(s)
                   
Reply
#2
Hi,

This forum is for Obi assets. For questions related to other assets, please use the appropriate support channel (for FluXY, emailing to fluxy(at)virtualmethodstudio.com).

(23-09-2024, 09:47 PM)mayktr Wrote: My first question is, do you think that it is possible to achieve this with FluXY package?
Second question is, is there a better/easy way to achieve it?

This game definitely uses an eulerian, texture-based fluid simulation, so yes FluXY would be the correct choice.

(23-09-2024, 09:47 PM)mayktr Wrote: I am increasing its size to fill the volume faster, applying torque to ensure even distribution, and gradually reducing turbulence over time to slow down its spread and eventually stop. Is there a better way to spread it and eventually make it look completely filled with no motion?

Using torque / target scaling is a quite convoluted way to do this, increasing pressure (alpha channel of the velocity texture) would be a simpler, more effective way.

(23-09-2024, 09:47 PM)mayktr Wrote: I feel like I'm on the wrong path, I cannot fully understand spreading mechanism of this package.

As in any fluid simulation, fluid spreads from high-pressure areas to low-pressure ones. So increasing pressure on a point will make fluid flow outwards from it.

Note that for accurate pressure-based effects you need your solver be using the Iterative pressure mode, instead of the Separable one.

(23-09-2024, 09:47 PM)mayktr Wrote: Also I don't want it to dissolve or look like transparent.

Make sure all dissipation values in your container are set to zero, then use a low-precision storage asset for your solver (this will prevent density from dissipating over time). Check the "Fog" sample scene for an example.

(23-09-2024, 09:47 PM)mayktr Wrote: I need it opaque all the time.

You can initialize the container's density values of the container using its "Clear color" property, under the "Surface" foldout. This will fill the entire container with an opaque color.

kind regards,
Reply