Announcement

Collapse
No announcement yet.

Creating particles inside the PhoenixFD liquid

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Dealing with solid and transparent liquids is quite tricky and won't work well when using only the Grid Texture. Mapping the fog color for the refraction works only on the surface of the material and this won't look great. What you can do instead is to separate the different liquids by the color of the particles and then create two separate meshes. Here is a video of how this works - https://www.youtube.com/watch?v=jfE66K-vqYE
    Georgi Zhekov
    Phoenix Product Manager
    Chaos

    Comment


    • #17
      Thanks again,

      I have not yet have the possibility to test your interesting solution with my animation. It's an answer for rendering issue and will be investigated later.

      However I have a new issue. I also need to have a particle mattress in the surface of the simulated liquid. Once I got decent liquid simulation results I tried resimulation to create some foam to be used as an additional particle source. However resimulation crashes Max at the very first frame. I have searched for information on how to use resimulation to generate foam to an existing simulation. I think I got it right, Anyway, is there available any material or tutorials on how to do this correctly?

      Comment


      • #18
        Hmm,

        Can you try if the resimulation crashes with the latest Phoenix nightly build? If it still does, please send over the file and we will take a look. It shouldn't crash Max not matter what.

        As for the workflow - check this out - https://docs.chaos.com/display/PHX4M...toresimulating
        Georgi Zhekov
        Phoenix Product Manager
        Chaos

        Comment


        • #19
          Thanks,

          I updated Phoenix to the latest nightly build, but it didn't change. Max had crashed when I came back to see what's going on. I don't know - should I disable resimulation and run whole simulation again with foam enabled? It will take something between week or two, which I might not have. I don't have permission to send any geometry.

          Or should I change foam parameters in a way, it will generate foam next to nothing and then gradually increase the amount to see if it's there.

          Comment


          • #20
            Oh, okay. Yes, using a small amount foam will be a good test to check if the foam amount makes it crash.

            Generally using the resimulation will be faster if the liquid calculation is taking a big portion of the simulation time. If it is not, using the regular sim shouldn't be a lot slower compared to the resim.
            Last edited by georgi.zhekov; 09-12-2021, 07:16 AM.
            Georgi Zhekov
            Phoenix Product Manager
            Chaos

            Comment


            • #21
              Thanks,

              It seems, reducing particles are helping. It seems to be really slow - like it's creating whole simulation again. I thought it would be faster just to add foam particles into an existing simulation.

              Comment


              • #22
                Yes, for some scenes where the liquid is simulation is not that slow, the resim won't make much difference in the simulation time.
                Georgi Zhekov
                Phoenix Product Manager
                Chaos

                Comment


                • #23
                  Yes,

                  It seems to work now with much fewer foam particles. Only 21 days and 6 hours left with resimulation process. After that I can start new iterations with tyFlow to get the particles generated.

                  Comment


                  • #24
                    Uuuhhhhmmm, 21 days and 6 hours? The grid looks super low resolution and the particles are very few as well, so this sim should be almost realtime. How many frames will you simulate? Also, are you sure you can't exclude some scene nodes from the interaction list? Could it be that tyFlow is slowing it down so much?
                    Svetlin Nikolov, Ex Phoenix team lead

                    Comment


                    • #25
                      Actually, to keep things simple, I have created several scenes for this animation. I have the render scene, where's the renderable CAD-model, Presimulated PhoenixFD grid anf tyflow cache object. Then I have PhoenixFD scene, where is my simulation dummy geometry, that I have modeler mostly from scratch for simulation only. Then I have tyFlow scene, where is the same Presimulated grid and some dummy collision geometry, I have created. So the PhoenixFD simulation scene don't have any tyFlow things at all. Once I have decent PhoenixFD simulation, I create tyFlow particle cache in separate scene and then copy both (tyFlow and PhoenixFD) caches to file server where all of my bacburner rendering servers will find those during render time. To keep things simple, I have created several separate PhoenixFD scenes for each individual phenomena I want to show in my animation.

                      This way the liquid and and particles are always in sync. Then I have one dedicated workstation as a framestore and Premiere video editing so I can at any time render the animation to my video streaming account with the latest changes in animation, graphic elements and sound.

                      Edit: The simulation has total of 2000 frames.
                      Last edited by JuhaHo; 10-12-2021, 07:04 AM.

                      Comment


                      • #26
                        Something is not right here. Even with relatively low foam particle amount, I get over 2 GB Aur files per frame instead of 30 MB (without particles). This might explain why it's so slow.

                        Comment


                        • #27
                          Hmm, can you paste us the Cache File content info from your simulation rollout for one of the large frames?
                          Last edited by georgi.zhekov; 13-12-2021, 02:00 AM.
                          Georgi Zhekov
                          Phoenix Product Manager
                          Chaos

                          Comment


                          • #28
                            I don't have those frames anymore. I reduced the foam amount to 0,1 and increased the Birth Threshold to 100. Now it's estimating the simulation time to be something like three days. The Aur file size seems to be now only 50 MB bigger/frame than earlier.

                            Comment


                            • #29
                              The resimulation process had crashed last night during Frame 615 of 2 000. On the evening I saw there was about 7 days left - even when relatively low foam amount is used.

                              Comment


                              • #30
                                Hey, we have to fix any crashes - can you send over the Phoenix log from C:\ChaosPhoenix and see if there is a "'3dsmax_minidump.dmp" file with a timestamp from the moment of the crash in C:\Users\<username>\AppData\Local\Temp?
                                Svetlin Nikolov, Ex Phoenix team lead

                                Comment

                                Working...
                                X