FLUIDOS plugin for Carrara -- version 1.4 update

145791026

Comments

  • ImagoImago Posts: 5,152
    PhilW said:

    I think the issue you have is that the size of the source is smaller than the size of the grid you are using, which is leading to the stream breaking up into blobs. The grid is not fine enough to be able to resolve the stream. It looks like - as a minimum - the Source needs to be at least as big as the grid size, this should give a continuous stream, but you may still see some grid artifacts. The finer the grid, the less artifacts you will get. So either increase the size of the Source or decrease the size of the grid to achieve a continuous stream.

    I'll try to increase the grid, I need that dimensions. Thanks, I'll let you know if your suggestion worked!

  • PhilWPhilW Posts: 5,145
    edited January 2018

    As previously noted, halving the grid size takes eight times as long to calculate, so you might want to look at resizing the Fluid Domain to be as tight as you can make it on the area that you are simulating. Every little helps!

    Post edited by PhilW on
  • DartanbeckDartanbeck Posts: 21,533

    Thanks for the tutorials, Phil. Great way to get an initial start.

    I'm happy to report that I got Fluidos installed and working without errors. I didn't have much time, so I just set up something a little ambitious right away... I mean... not compared to an experienced user, just that it'll take quite a while to calculate before I will see results. 

    I knew I wasn't able to stay awake to mess with it, and I won't have much tweaking time tomorrow so I just wanted to test an idea that I mentioned quite some time ago - something I want to try as far as the way I'm planning to use this amazing tool.

    I'm guessing that, once we have the simulation calculated, we can use it in the scene as if it was just another Carrara object without the new stuff messing with the sim, right? I mean, as long as I don't parent anything to the container. I just want to try and run some elements through the simulation where my proxies are. But we could probably bring in a whole scene around the simulation without affecting it, right?

    Either way... I can feel myself having a lot of fun with this thing. 

    Thanks again Alberto! Thanks again all contributors!

  • AlbertoAlberto Posts: 1,436
    Imago said:
    PhilW said:

    I think the issue you have is that the size of the source is smaller than the size of the grid you are using, which is leading to the stream breaking up into blobs. The grid is not fine enough to be able to resolve the stream. It looks like - as a minimum - the Source needs to be at least as big as the grid size, this should give a continuous stream, but you may still see some grid artifacts. The finer the grid, the less artifacts you will get. So either increase the size of the Source or decrease the size of the grid to achieve a continuous stream.

    I'll try to increase the grid, I need that dimensions. Thanks, I'll let you know if your suggestion worked!

    I agree with Phil. The fragmented steam is something I observed during my experiments.

    Thanks again Alberto! Thanks again all contributors!

    Your're welcome. I'm happy you are enjoying it !

  • DartanbeckDartanbeck Posts: 21,533

    Is there a setting for linking this to the GPU, or is that automatic?

    I admit, it's been a  L O N G  time since I've updated my drivers. I just noticed that my GPU is only working 2% during the simulation calculations (Radeon R7 260X, 2GB)

  • DartanbeckDartanbeck Posts: 21,533

    Nice Manual! :)  Nice, complete explanations. Bravo!

  • DartanbeckDartanbeck Posts: 21,533

    (I know... I'm supposed to be asleep!)  surprise

  • 3DAGE3DAGE Posts: 3,311

    Dart :)

    once you have a saved simulation in a folder, you can open a new scene,. add a fluid domain (as a visualiser) then simply point it to the folder with your sim data

    then you can playback the sim keyframes,.. or flip the keyframe values 100 -0 to play it in reverse,. or even create a loop  by playing a part of the sim

    My last clip was a scene exactly as described above,. just a bunch of Flud Domains (as visualisers) with the Fluid S modifier applied,. then pointed to the folders I had simuated previously,.

  • DartanbeckDartanbeck Posts: 21,533

    Awesome!

    I've been having some difficulties, but I think I found a clue in the manual.

    I'm starting with still water (same x,y dimensions as Fluid Domain) with an object (previously objects) already in that space very close to the floor of it.

    During the simulation, the object(s) just rises straight up out of the water

    So far the entire fluid mass becomes effected by the small object. Makes it look like gravity is in reverse.

    I noticed in the manual that using the overall scale box under transform does not work properly for this. I didn't use that to scale my objects. I used the scale tool. But when I look, it was affected by my manual scaling. So now I'm testing by using manual values in the x, y, and z boxes in the transform.

  • DartanbeckDartanbeck Posts: 21,533
    edited January 2018

    Though it may very well be that, for something like this, I need a smaller fluid grid size.

    Post edited by Dartanbeck on
  • ImagoImago Posts: 5,152
    Alberto said:
    Imago said:

    I'll try to increase the grid, I need that dimensions. Thanks, I'll let you know if your suggestion worked!

    I agree with Phil. The fragmented steam is something I observed during my experiments.

     

    Finally managed to have the right stream size without having the strem too much subdivided.
    I had to put the Carara scene to "Small" magnitude, bring "Overall" size of the emitter to 0,05 and the grid dimension to 400. Velocity to 23, bigger value makes it subdivide again too much, even if I would like to use at least 40.

    Only big issue now is the impossibility to parent the emitter and use deeper parenting.
    I hope it can be fixed!

    Anyway, great plugin, Alberto!

  • DartanbeckDartanbeck Posts: 21,533

    Though it may very well be that, for something like this, I need a smaller fluid grid size.

    Yeah... there was some improvement but it still blasted the entire fluid mass to the top of the domain. That was at 0.25 grid. Going for 0.125 (default) now to see if it works. 

  • AlbertoAlberto Posts: 1,436

    Awesome!

    I've been having some difficulties, but I think I found a clue in the manual.

    I'm starting with still water (same x,y dimensions as Fluid Domain) with an object (previously objects) already in that space very close to the floor of it.

    During the simulation, the object(s) just rises straight up out of the water

    So far the entire fluid mass becomes effected by the small object. Makes it look like gravity is in reverse.

    I noticed in the manual that using the overall scale box under transform does not work properly for this. I didn't use that to scale my objects. I used the scale tool. But when I look, it was affected by my manual scaling. So now I'm testing by using manual values in the x, y, and z boxes in the transform.

    The overall scale box don't work only in the working Fluid Domain itself; scale tool is good if you use for x, y or z dimension individually. On the other hand, the objects inside domain could be scaled as you wish.

    Preferably, don't scale the viewer (the object with FluidS modifier) because the simulation fluid will be deformed if you do –unless it is you intended.

  • DartanbeckDartanbeck Posts: 21,533

    Hmmm... I'll try making the collision object much smaller in that case. It seems like it has a much larger force field around it than it is. 

    For my tests today, which have been similar to before, I'm using the default sized Fluid Domain in the default position. Perhaps making the Fluid Mass object the exact same size is too big?

    We'll experiement and get it! ;)

  • ImagoImago Posts: 5,152
    edited January 2018
    Alberto said:

    Preferably, don't scale the viewer (the object with FluidS modifier) because the simulation fluid will be deformed if you do –unless it is you intended.

    Yes, I learned how to do. I create two domains, select both and move them together to the right position, the I select only one and resize it as I need. This way I have the 100% of chance to have all working properly.

    About the size, is exactly my problem. I use Carrara with exported DAZ's scenes. Those scenes are especially crafted to be used in Carrara and obtain an output that fit at 100% with DAZ's ones. Cameras, lights, props, chars are sized, positioned and set to attain this. If I resize the char I lose all those measurements! (Yes, I'm crazy! cheeky)

    I could resize the scene only if I could have an "OBJ Sequence importer" for DAZ studio. If it existed, I could simply convert those PLY files with Spin Mesh Converter and load them directly on DAZ.

     

    *EDIT*

    Ah, forgot to add I do animations!

    Post edited by Imago on
  • DartanbeckDartanbeck Posts: 21,533
    Imago said:
    Alberto said:

    Preferably, don't scale the viewer (the object with FluidS modifier) because the simulation fluid will be deformed if you do –unless it is you intended.

    I could resize the scene only if I could have an "OBJ Sequence importer" for DAZ studio. If it existed, I could simply convert those PLY files with Spin Mesh Converter and load them directly on DAZ.

    Once the scene is in Carrara, selct the whole thing an Ctrl (or Cmd) + G to make a group, then scale the whole group uniformly.

  • DartanbeckDartanbeck Posts: 21,533
    edited January 2018

    Not sure what's going on. I've tried this many simple ways - I must just be doing something wrong... missing a step... perhaps this can help someone see what I'm doing wrong.

    At first I thought that, since the instructions say 24 FPS, maybe it doesn't work well with 30. So I tried with 24 and my GPU readings during the simulation were much smoother, but the same issue occurs.

    Here's what I've been doing:

    1. New Empty Scene (I was using my default start scene and thought maybe something in there was messing with Fluidos physics)
    2. Insert > Fluid Domain (10' x 10' x 10')
    3. Center Fluid Domain (it loads with the hotspot in the bottom back right corner, so 0x, 0y centers it)
    4. Insert > Cube and resize to 10' x 10' x 2' (Z)
    5. Cube is centered, I just set Z to 1.0' to drop it to the floor
    6. Insert Sphere and scaled it down in each axis to 1.75'
    7. Position Sphere so it is centered and almost completely submerged into the Cube
    8. Set timeline to end (frame 24, 1 second) and lift the sphere slightly - about half submerged into the cube
    9. Parent both Cube and Sphere to the Fluid Domain, one at a time

    Fluid Domain Properties (Effects Tab)

    • # Frames = 24
    • FPS = 24
    • Cell Size = 0.50
    • All else is left default

    Solid or Fluid Properties for the Cube (Effects Tab)

    • ☑ this is a Fluid Mass
    • All else default

    Solid or Fluid Properties for the Sphere (Effects Tab)

    • All default
    • To experiment, I also tried ☑ Add Body Force = 0.0

    On with the Simulation

    • Select Fluid Domain and Ctrl + Shift + F
    • Upon completion, Insert > Fluid Domain (got the same results also trying a primitive cube)
    • New Fluid Domain - send to exact position of the simulated Fluid Domain
    • New Fluid Domain - Add FluidS Modifier
    • New Fluid Domain - At the end of the timeline, set completion to 100
    • New Fluid Domain - At beginning of the timeline, set to ☑ Enabled

    This simulation doesn't take very long. The results are not at all what I expected. To try and correct this behavior, I've tried the same as above with a larger Fluid Domain and Fluid Mass, then with a smaller Cell Size and again with an even smaller Cell Size (defaullt 0.125) as well as with a much smaller Sphere within the much larger (20' x 20') Fluid Domain and Fluid Mass

    The results are consistently like this, even when I tried starting with the Sphere starting above the mass (but within the Fluid Domain influence) and animating it to barely touch the fluid mass. One time I forgot to animate the Sphere, so it never touched the Fluid Mass, and I still got the same result.

    I just installed the latest driver for my video card last night (AMD Radeon R7)

    FOS_01TESTS.jpg
    1366 x 1553 - 2M
    Post edited by Dartanbeck on
  • DartanbeckDartanbeck Posts: 21,533

    Ooops... in the above image, where it says "Boundary of Original" it was supposed to continue under it with "Fluid Mass"

    For the screenshot, I set the original mass to invisible but kept it selected so we could see the yellow bounding box, which fits the cube primitive perfectly. As you can see, the first frame of the simulation the simulated mass is risen up from the floor.

    The image shows frames 4 and 7. Frames 5 and 6 are completely blown out of the Fluid Domain's influence area. There are no keyframes there... (?) 

    The final frame is just some spattering on the ceiling and vertical wall as seen in the Frame 7 image, with a few drops still hanging out around the sphere.

  • PhilWPhilW Posts: 5,145
    edited January 2018

    I've noticed that sometimes you can have an object moves that in real life should push the water out of the way and yet that doesn't happen in the simulation, and from discussing that with Alberto it seems that could be a limitation of the way that the fluid sim works. He suggested applying a replusion force to the object, and while that has an effect, it again didn't produce quite the effect I was after.

    Dart - Are you using a Surface Force on your object?

    P.S. I started writing this about three hours ago, got distracted through various things and therefore didn't see all the detail that you posted in the meantime. That behaviour is very strange! It almost looks like you have reversed gravity. I'll do some tests to see if I can replicate it.

    Post edited by PhilW on
  • DUDUDUDU Posts: 1,945

    It looks like you have a positive gravity (force), Z= +32 rather -32...

  • DartanbeckDartanbeck Posts: 21,533
    DUDU said:

    It looks like you have a positive gravity (force), Z= +32 rather -32...

    That's what I thought, but it's the default -32. Maybe a graphics card issue?

    PhilW said:

    Dart - Are you using a Surface Force on your object?

    I tried it with the force box checked, but left the amount at 0.00

  • DartanbeckDartanbeck Posts: 21,533

    I should also add that I didn't change the shader color until I decided to take screenshots. I only did that to help show the sphere.

  • DartanbeckDartanbeck Posts: 21,533

    Okay, there was an updated version. I think that's the one I'm using, but I'll try downloading it and installing it again.

    When running, I suppose it makes sense that it's not using hardly any (0% - 1%) of my GPU memory. The GPU's clock spins up to max as does the Memory clock. I did notice that, when I run the simulation for 30 FPS, the GPU's clock and memory clock sort of pulse on and off, where if I run at 24 FPS, it's a smooth state of wide open.

    Also, during the simulation only four of my eight CPU cores crank up. The other four work a little. 

  • DUDUDUDU Posts: 1,945

    In this case, you must reverse your computer (the bottom upwards), and de water will be in the right way! wink

  • PhilWPhilW Posts: 5,145

    I've just run a near identical simulation and I don't get the same results as you.

    When I run with no surface force on the sphere, the water just sits there. You can see the odd artifact around where the sphere is rising (due to the relatively large grid size) but apart from that, not even a ripple.

    When I run it with a Surface Force on the Sphere of 0.0, the water stays at the bottom and I get a churning effect around the sphere. This is due to the water trying to get away from the sphere and immediately being replaced by the surrounding water, so you get a sort of cycling effect around the sphere.

    But what I don't get is the water flying up to the top!  And I can't see a reason why our sims are different.

  • DartanbeckDartanbeck Posts: 21,533
    PhilW said:

    But what I don't get is the water flying up to the top!  And I can't see a reason why our sims are different.

    Does my order of operartions look complete? Am I missing a step? I read the whole manual and watched the tutorials... but sometimes we just overlook something obvious?

    Like I said, I'll try a fresh install... see what happens. I'll also delete all of me Temp files.

  • PhilWPhilW Posts: 5,145
    Imago said:
    Alberto said:

    Preferably, don't scale the viewer (the object with FluidS modifier) because the simulation fluid will be deformed if you do –unless it is you intended.

    Yes, I learned how to do. I create two domains, select both and move them together to the right position, the I select only one and resize it as I need. This way I have the 100% of chance to have all working properly.

    About the size, is exactly my problem. I use Carrara with exported DAZ's scenes. Those scenes are especially crafted to be used in Carrara and obtain an output that fit at 100% with DAZ's ones. Cameras, lights, props, chars are sized, positioned and set to attain this. If I resize the char I lose all those measurements! (Yes, I'm crazy! cheeky)

    I could resize the scene only if I could have an "OBJ Sequence importer" for DAZ studio. If it existed, I could simply convert those PLY files with Spin Mesh Converter and load them directly on DAZ.

     

    *EDIT*

    Ah, forgot to add I do animations!

    I don't think anyone is suggesting rescaling your entire scene. Just position and scale the Fluid Domain to encompass where the fluid sim will take place, but try to minimise areas where there won't be any water. So for example if you have a tap filling a glass below it, position the Fluid Domain so that encompasses the tap and the glass, but anything else outside this area is not calculated. As long as the visualiser is in the same location as the origin of the Fluid Domain that was calculated, it should all be in the right position.

  • 0oseven0oseven Posts: 626
    3drendero said:

    I just tested Fluidos on my PC with only an older Intel CPU, no graphics card. Just the shitty integrated Intel crap graphics that does NOT support OpenCL at all. 

    Without the Intel OpenCL CPU drivers; FAIL. Fluidos gets stuck at 2%, does nothing else, no CPU or HDD load, no error code.
    With the Intel OpenCL CPU drivers: PASS. Fluidos works.
    Used these Intel OpenCL CPU runtime drivers: https://software.intel.com/en-us/articles/opencl-drivers#latest_CPU_runtime

    Conclusion: Fluidos requires a working OpenCL driver installation, either GPU och CPU OpenCL works.
    Tools for testing if OpenCL works:
    GPU Caps: http://www.ozone3d.net/gpu_caps_viewer/
    LuxMark 3.1: http://www.luxrender.net/wiki/LuxMark#Binaries

    Also laptops with both Intel and NVIDIA graphics enabled, should disable the Intel graphics, unless battery time in 2D is critical.
    Cannot run several other 3D apps due to incompatibilitites between Intel/NVIDIA, even the frickin NVIDIA control panel crashes on my laptop.

    As suggested I  ran the ozone3d -viewer .Attached images show openCL results which I admit to having no real idea how to interpret . Hopefully  image detail is good enough for you to see results,  Image 1 is Nvidea and Image 2 is Intel.

    You say to disable Intel graphics. I only know how to do this via the Nvidea control panel.ie make Nvidea the default graphics in the global setting.  Is there another way ? And of course I have set Carrara to run with Nvidea Graphics Card 

    OpenCl Viewer -nvidea.JPG
    375 x 534 - 53K
    openCL viewer INTEL.JPG
    400 x 540 - 56K
  • DartanbeckDartanbeck Posts: 21,533

    I can confirm that the plugin does not work on my computer. 

    I ran the basic simulation in PhilW's first tutorial video and, instead of the fluid mass falling into the domain, it blows apart from within somehow. I even tried putting a -32 force on the fluid mass and it didn't pay any attention to that either.

    I downloaded the plugin again and reinstalled everything, emptied the temp for Carrara and for the plugin... it just doesn't work :(

  • PhilWPhilW Posts: 5,145

    Hi Dart - have a go at loading and running this scene file. You will need to create your own folder for the fluid data but otherwise don't touch anything (you could increase the grid size to make it run faster initially).

    https://www.dropbox.com/s/3oafrrvlds04mdu/Fluidos Dart's Sphere.car?dl=0

Sign In or Register to comment.