Tutorial: Hybrido as Realwave!

Hi everyone,

Long time we think that the possibility to mix Hybrido with RealWave in Realflow would be great. And now this tutorial is going to explain how to do it. It means, how to project the Hybrido simulation in a Realwave, but with the possibility to generate foam and splash particles for Hybrido simulation too.  Thanks to my colleague Alex for helping with the graphs setup. Please, don’t forget download the basic scene and graphs.

Hybrido as RealWave part1

Hybrido as RealWave part2

Hybrido as RealWave part3

Hybrido as RealWave part4

Download the basic scene from here

Download the graphs for the scene from here

Enjoy RealFlow 2013!


About these ads

~ by luismma on January 20, 2014.

84 Responses to “Tutorial: Hybrido as Realwave!”

  1. Great tutorial. Thanks.

  2. This is Really Useful! Realflow has come so far!

  3. Nice tutorial about mixing the two elements.
    It would be great to have a tutorial on rendering them in maya and krakatoa. Thanks.

  4. Hi, I have a boat sim..where i am having great difficulties with the Splash emitter(also splash settings of the splash and fome..same

    issue)…the core sim has 10M particles,cell size is 0.58

    when i have positon variance set to 0.1/0.09..i get negligle particles to begin with like 300/500(yes only so few !!!)..so i have to

    crank up the emission rate but even then the distribution is not even

    so then i try bigger values for position variance(with low emission rates) but then i get very blotchy/clump/groups of particles..
    then i use the graph to simulate splash and foam and get somewaht decent results…
    what i would like to knw is how to get evenly spread particles( moderate count like 5-8M)..with the splash and foam/splash emiiter

    this blotchy splash particles has always troubled me with splash emitters
    one more strange thing that happened was i was studying the hyflip_splash demo scene adn then i recreated it exactly..matched every single value from object animation to cell scale size…but i was not getting as many splash and foam particles as the demo scene(in the end i had to increase the position variance and reduce the emission rate)[demo scene starting frames has abt 30-50 k particles i got 3-5k..this i found extremly strange] though i have made peace with it for now :D

    Please help!

    boat Scene files


    • Hey,

      I think you should set more emission rate particles. It is emitting particles per second and per cubic meter. I advice you to increase the Emission rate to 3000000 and then you can play with the position variation (values between 0.09 and 0.07) and curvature threshold (values between 0.1 and 0.4). Also, the speed thershold can help you to remove particles depending on their velocity.

      I hope it helps.


  5. the scene scale is about the same as in the above tutorials,i used the splash and foam settings mention in part for as the starting point ..but no luck

  6. Hi Luis.

    I have some trouble understanding the simulation flow part, actually i made this part copying all what you did in the tutorial, and realflow crash, actually i have try everything (am learning by the way). So do you have a clue of what could it be. This is the only way to use Hybrido as a realwave? Because i would like to know other was to do it. I found other tutorial that make this, but don`t say how to do it, just appears the still as an image.

    Thanks for your time.

    Hope you can help.

    In the mean time i`m going to do more research.


    • Hi Jason,

      Unfortunately there is not another way you can use the RealWave with Hybrido if we talk about nodes. Of course, you can apply a RealWave force by using graphs. There is a demo scene which you can see how this system is working. The scene is “surface force field”.

      About the RealFlow crashing it could be due to the Vbo. Please, go to Preferences>Display and uncheck the Use “Vertex Buffer Objects” checkbox.


      • Hi Luis.

        After several try’s i get it all now, but i have some questions now.

        First the secondary particles and the foam, do i have to simulate all before project them to the realwave mesh?

        And second, i have been burning my brain off trying to understand why the projected particles only project the half of the particles, i’m not saying that the remove particle cut that in half, am saying i have this big hole on the projected particles.

        Look at here:

        As i said before, i’m going to try to understand it better and see if i can fix it, but if you can help, that would be great.


      • Hi jdleandro,

        you’ll need to simulate the scene without the realwave deformation, but only the main fluid. Splash and foam will be simulated after you have the main simulation and deformed with the RealWave mesh.

        About the hole in your main fluid, it is probably you have a high distance to remove particles, and it could be adjusting the fluid. Also, check the axis to verify if they are in the same order like the tutorial scene. If not, you must change the order in the preferences or in the graph if you don’t want to touch the axis preferences.


      • Hi again, i understand what i did wrong, maybe some would do the same as me, so i’m gonna tell you guys what happen.

        On the Real node, in the Input (Real_01) i put a 0 as a value, but you have to put a value over 0 to get it right, because if you put a 0, you get what i get, only the half of the particles.

        Hope this help everyone with the same problem.


      • Hi,

        That is!. Thanks for the info. Let me know when if you make a video with the final result. ;)


      • Hi Luis.

        I’ll post a video, but it have to be show first on TV because is a TV commercial. I don’t know the release date, but i think is going to be after the world cup.


      • Heyyy!

        Good news. Please let us know when it is released. I would like to see it. Thanks for sharing!


      • Hi Luis

        Of course i will, that TV commercial goes on the air after the World Cup of Brazil.


      • Nice!!!

        Let us know. Thanks. ;)


      • Hi Luis

        I talk to my bosses and they say that i could show the playblast from maya on another camera view, so here is the preview mesh, when i can show the final shot i’ll post it here, so everyone can see it.


      • Hi Jason,

        It looks nice!!!. Well done. How many particles do you have?


      • Hi Luis.

        Thanks, it takes to long on the simulation part, for many errors, but finally i got it, thanks to you basically.
        There is 9 million particles in that shot, in the final shot there is like 12 million particles.


      • Hi,

        Great!. Do you have a video we can see?. ;)


  7. Hi again, I am currently trying to made simulation like this:

    But there is a problem that bother me such a long time. The size of the ship is big and it create a large amount of space when it is sinking:

    The fluid seems need a long time to recover/refill into those spaces which will make the mesh weird(with big hole). I had tried to increase the core sampling or even increase the hybrido max step to 6 but still no luck. Is this situation normal or do I need to decrease the cell size?


    • Hi Justin.

      Maybe that´s the object scale on the scene, real flow use meters as a default scale, so you have to apply a 0.1% on the scene scale so it can match the same scale, software’s like Maya use centimeters. Have you checked also the volume size on the display volume?


      • Hi Jason,
        The geometry scale i am using in realflow is 10, and the cell size scale is 2. I am trying to increase the geometry scale to 100 but the simulation time will significantly increase.

      • Hi Justin

        In which units are you working? I mean on the 3D software, if you are working on A. Maya you have to set your geometry scale on 0.1, in that way the scale is going to match with the real scale of the ship. I’m almost sure that’s what is happening, because you can see how slow the particles move.

        In RealFlow, the object scale is very important, thats why you have to match it before you start simulating, if you dont do that on the start, when you resize the scale, everything is going to look the same. (Something like that happend to me before).

        My advice would be to start a new scene, match the geometry scale with the original 3D software you use to model the ship and then scale everything to that scale and simulate. Remember to do that before you simulate anything. Maybe you could use the same settings.


      • Yeah,

        My advice would be to start a new scene, match the geometry scale with the original 3D software you use to model the ship and then scale everything to that scale and simulate.

        That is the way!

        Working in that way, you won’t need to think about scales in RealFlow.


      • Hi Justin,

        It is advisable to work in RealFlow with scale 1. If you are working with a different scale, make sure you have scaled the daemons to work with your scale. If only you want to increase the geometry scale, so the ship will be bigger, I advice you to make that change in Maya or your 3D platform, so the scale in RealFlow will be 1 and you don’t need to change anything. If it is not possible, you can change the geometry scale in RealFlow, but keep in mind that each grid scquare in RealFlow is like 1 meter.


      • I got what you mean now. Now I am going to rescale the scene in Maya and scale 0.1. So when I import it into realflow, it would be perfect fit.

      • Hi Justin,

        Yes. Also you can work in the other way, I mean, scaling the geometry in RealFlow, but it could be difficult to understand when working with daemons and they are not been scaled because you’ll see the fluid behaviour slower or faster depending what global scale you apply to the scene.



      • Thanks Justin!


    • Hi Justin,

      It is due to you have a bad voxelization for your ship. You should check out if the geometry is closed before exporting to RealFlow. I use 3dsmax and STLCheck modifier to verify if I made the mesh without errors. Also, it would be useful to make a proxy to work faster in RealFlow. I can see you have a flag and another elements with a lot of polygons and they need to be voxelized by RealFlow for simulating too. ;)


  8. heyyy in this tutorial you didn’t teach us how to used graph . in part 2 8.22 min of video how you create that all nodes or they automatically generate when you working its really confusing please help me to understand

    • Hi Kaviraj,

      Yeah, I know but explain the graphs would be another long tutorial. Sorry. Meanwhile, take a look at this link to learn more about graphs.


  9. How to make foam particle collide with the ocean mesh in hybrido


    I rencently do a test about the ocean simulation in realflow with hybrido,this new feature is awesome and the speed of simulation is great! But I have a problem is that,when I have created the mesh,the foam particle did not collide with the ocean surface correctly ,there are some particle under the surface in some areas.I think the reason is that I use the displacement for the main fluid,make some areas higher than others.Can you tell me how to fix this issue?I want all the foam particle are above the surface,because the carmera of the shot is very close .Thank you!! I am looking forward to your reply!!
    Best wish!!

    • Hi Chen,

      Yeah, that is a real problem by default. Usually, the foam render and mesh render are different passes and then, they are composed in some program like Nuke. But, I know you would want the foam over the mesh surface, so it is more comfortable before compositing the passes. The same graph, to project the hybrido particles over the realwave, would be useful to make the same thing with foam particles and the mesh you created from your hybrido. You just need to change the getDomain node by a getParticles node and choose the correct emitter and the correct mesh.


  10. Everything works fine until I execute the second graph. When I execute the second graph my CPU usage jumps to 100% and stays like that for a very long time without any change.

  11. hey thank you sir…. i learn little bit about graph.my practical remove also working and practical projection also .but when i simulating projection particle in exprot center i also uncheck the gfc format from HY_Domain_removed . in HY_domain02 gfc particles are generating but not rpc its only 1 kb size and when simulation its not loading sir help me

    • Hi,

      That is because you have the Hybrido domain 2 connected in the relation ship editor. It must not be linked. If it is linked by default due to you have checked the automatic connection.;)


  12. help me …………………

  13. my HY_domain02 0 partical count command line

  14. help me

  15. Hi,
    first of all i want to congratulate with you for all of your stuff, then iwould like to know how i can turn my mesh (that is a solid) into a surface while meshing in realflow, so i just want to have the top surface of the mesh, thanks in advance,

  16. Hello luis! I have question please =)

    How to know the good size betwen 3dsMax and RealFlow? I read closely your topic and I not found the answer =/
    I used the rule but I don’t understand in volume m^2, My shim measure 120m in max, how have the same size in realflow. what’s the metter size object in realflow compared to the grid?

    Thank you very much

    • Hi François,

      If you work in 3d max in centemiters keep in mind that 1cm in 3DSMax = 1meter in RealFlow. The easiest way is creating a cube in RealFlow and export it as SD file and then import it into 3dsmax. Now you know that cube is 1 meter in RealFlow, so you can scale up or down your geometry according to this cube. ;)


  17. the link is go out!

  18. Hi Luis, thanks for the great tutorial.
    Have a small problem, none of the XML graph seems to work for me!
    I switched all the node you show so the name can match and when I press the play button, nothing happens in the clipping graph as much as the project hybrido one..

    HY_Domain02 isn’t plugged anywhere. Would you have a small idea ? Thanks !

    • Hi Hugo,

      It could be due to the names you have for your files. Check the filename options to see if you have by default name#.ext or name_#.ext.

      luisM. ;)

  19. Hi Luis, thank you for the last suggestion you gave me about the graph..you have been so kind, unluckly for you i’m here with another question, i would want to move my deamon togheter with a boat, in order to simulate only where i need, so the boat is moving and i would want to have a simulation box that follow the boat and in witch the simulation take place..in order to have the beginning of my simulation a little bit before the hull of the boat..thank you in advance,

    • Hi Riccardo,

      You have the option to parent the daemon to the node you want. To do that, go toParent to option inside node params.

      luisM. ;)

  20. did you have facebook ?

  21. after Executing the Second GRAPH my CPU usage goes to 98% – 99% and then Realflow Doesnt responds.,,,
    My Cell SIZE: 4
    SYSTEM SPEC: I7 4770k
    8gb RAM
    AMD HD 7950GPU
    plz HElp me,,….

  22. Hi,

    Thanks for the tutorial, just a quick question how do you set the particle folder in export central?

    • Hey Gustavo!

      Do you mean to change by scripting the folder in the export central?. If so, you must use the “scene.setExportResourcePath()” python command.

      luisM ;)

  23. Hello Luis!

    I tried that graph projecting the real wave deformation onto the hybrido, but as soon as I execute the graph, Realflow 2013 or 2014 crashes. The other graph works, getting rid of unwanted particles, but the projection graph crashes real flow every time. I”m using a mac-mini core i7 latest OS. Any suggestions?

    • Hey,

      Check you don’t have the hybrido domain 2 linked with anything. It mustn’t be linked. Usually, if you have the connect to HUB automatically, the Hybrido2 will be connected and it will crash RF when executing the graph.

      luisM. ;)

  24. hey luis.,
    my problem right now is the mesh isn’t coming out as expected., it has something sort of like “squarey inside bumps” ,……..certainly not like the realwave,
    plz help me out meshing.

    • Hi Sankar,

      Do you have a screenshot or video?. Have you tried activating the weight Normalization parameter to remove this kind of things.


  25. it was smoothing problem…now its great

  26. Hi Luis, this is an amazing tutorial!!

    But regarding the ship’s animation, is it possible to simulate the ship’s movement with the real wave before we start off with the hybrido process and use this ship simulation data on the hybrido to simulate it’s splash?

    Thanks for your time!!

    • Hi!

      Yeah it is possible. You can simulate your ship with RealWave to get the movement. Next import the SD from your ship to simulate with Hybrido and adding a Ocean Force Field to Hybrido to get, more or less, the same fluid behaviour you had in the RealWave. Once you have the Hybrido simulation, you have the possibility to simulate the secondaries.


  27. Ey, great tutorial… I started to learn realflow and It helps me so much.
    I have a basic question, why don’t you use the simulation for the movement of the ship? I’m trying to make a simulation like this, a ship across the ocean. I want the real movement of the ship with the realflow’s simulation ocean, the ocean and then export this to my 3D program. So I don’t understand why don’t you make the interaction of the ship and the water… thanks!!

    • Hi sabel,

      Thanks to you!. I could use the simulation to move the ship but it depends on the scene. Most of scenes where you have a ship need control, like movies we all see, and that control is only available if you animate the geometry. Of course, you can simulate the ship by using dynamics and multijoints. The process would be as follow.

      – Set the ship geometry to dynamic rigid body
      – Create and animate boxes to hold the ship to avoid it can sink. Place the boxes you need to hold the ship below it. I advice you to place the boxes with a few distance between boxes and geometry so the ship can move down and up. Once the boxes have been placed, you should animate them. They are going to push the ship so the distance depend on you.
      – Create a multijoint setting the ship as objectA and boxes as Object B. The order won’t matter.
      – Find the value to generate the joints between both geometries.
      – Simulate the scene. Try with few particles first and check out the mass for your ship as it is a rigid body now. Too many mass will sink the ship.

      I hope it helps.


  28. Hi Luis, Great tutorial, and your page is really helpful, I have one question, when I try to project the particles I only get part of them projected, from left to right, it projects only like one quarter of all of them. What could be the reason? how can I fix it?

    • Hi Daniel,

      Thanks for your words ;). It is because Hybrido’s domain rectangle should be bigger. Also, in that scene, make sure that the Hybrido2 is not connected to anything in the Relation Ship Editor.

      luisM. ;)

  29. Hello and many thanks for your support I’ve been watching your tutorials and trying to keep up I am a beginner to RealFlow but have to understand its full potential. When I import your graph I changed the file path to match my project. I get an error saying the file name extension “.lnk” differs from format. I have the RealFlow Particle Cache (rpc) on and in the export setting I am simulating with that file extension so I dont understand the error and where its coming from any ideas?

    • I fixed it by adding the .rpc to the output file name!

      • Hey,

        I’m glad it is fixed now ;). Yeah, Most of times you have that kind of error is due to the extension names don’t match. ;)


    • Hi Dani,

      It is weird. In some place you have the .Ink extension for your files. Send me your graph and I’ll tell you where is the error. ;)


  30. Hi Luis, First of all, thanks for all your tutorials, they’re really usefull !!
    I have a problem when i create splashes on the Hy_Domain_02, they’re not apply on waves created with the graph… but they work in the area of the interaction mesh-sim…
    Any idea to fixe it ??

    • Hi Hub,

      Thanks to you for watching :). It is probably you have not scale up the Splash bounding box. The splash has a bounding box to adjust the area where the splash particles are going to be created. You’ll need to do it bigger.


  31. Thanks for the rapidity of you’re answer !!
    Yes i already adjust the bounding box but something doesn t work properly… i don’t know why … Maybe it’s because i work with a 0.01 geometry scale …
    I try to do a sim where a killer whale appears at th top of the sim, i ll try with the ocean statistical spectrum integrated in the Hy_domain_01…
    Another question, when i change the geometry scale, does that influence all other parameters in the domain or other nodes ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 370 other followers

%d bloggers like this: