Realflow, Scripts, Work July 27th, 2009
I’m posting little, free script to add and control foam on custom wave object (for eg. imported from dreamscape).
This little script will get verticies out of custom object over given Y value, get their velocity and add Particles in that position. I’m using Null object to better visualize Y threshold value.
I have also added random function for little variation when adding particles.
—- UPDATE!!!
–> [GET A SCRIPT FROM RF SCRIPT PAGE]
# Name : CustomOceanSpray
# Icon : Spray_icon.png
# Toolbar : Yes
# Author : Albert ‘tmdag’ Szostkiewcz
# Website : http://tmdag.com
# Date : 30 July 2009
# Version: 1.2
Kind : Batch script, Event Script
Why?:
You can choose custom, animated ocean object (for eg. imported from Dreamscape)
Installation:
1. Copy script file (.rfs) wherever You want
2. Open Realflow with Your scene file
3. Open menu scripts / Add
4. In Add Script window, Name field enter “CustomOceanSpray”
5. Choose Spray_Batch.rfs in script field
6. Choose Spray_icon.png for Icon
7. Press “New Folder” (bottom left) and create folder for scripts
8. Choose created Folder and press OK
9. Open Even Script (Layout/EventScript of press F11), paste(replace) text from Spray_event.rtf
Usage:
Choose Your desired custom ocean object, fire up CustomOceanSpray Batch script (from toolbar):
Spray Type = Dumb
You can choose what kind of spray type You want to create (Dumb type is usually enough)
Spray rand in m = 2
Spray randomisation in meters (it depends on Your scene scale so You may want to increase or decrease it)
You may want to add daemons like Gravity, k_age, k_Volume, Noise_field, wind etc.
SCENE SCALE!!
Scene scale is very important in setting up ‘rand in m’ value!!!!
FAQ:
Q: I get half of my ocean object covered with particles! what should I do?
A: Check Your Axis setup (Realflow / Preferences), Y should be Upwards
Q: My particles are flying around!
A: Check If Gravity force is connected and try lowering ‘rand in m’ value because it depends on Your scene scale
Pros and cons:
It’s quite quick! but number of points depends on number of object vertex (I’ll try to change that soon)
History:
30.07.2009
- First release |
|

[Sample mpg]
Nice example from Alex:

and another example HERE
Here is one interesting plugin, deformer and tutorial, how to create choppy waves in Maya [HERE]
Personally I haven’t tested it so please give some feedback, I could improve my script for Your better workflow 

Leave a Reply
July 29th, 2009 at 6:53
can you upload full project with custom object in archive?
July 29th, 2009 at 8:18
[...] ????? ?????? ???????? ?????? ??????? ??????? ??????? ?? ???? ??? RW_particle ?? RW surface ?? ?? ????????? ????????? ??????? ??????? ??????,???????? ??? [...]
July 29th, 2009 at 13:36
Nice!
I didn’t know it’s possible to get velocity of vertices …
I am looking for something similar.
Maybe could you add some wind to make particle to follow the mesh … Or maybe import a reference Null from your 3d software.
July 29th, 2009 at 17:13
alex: unfortunately, object wasn’t mine but I’ll ask for permission
vbk: of course I can (this is very simple and quick script) I can add some features if You like
ps. please don’t post comments in russian, I don’t understand them
July 30th, 2009 at 15:01
tmdag my friend i have a probl with a script
im getting error
>15:56:01: treshold = 0.0
>15:56:01: Script error: “bad operand type for unary -” at line number 44.
July 30th, 2009 at 16:36
problem solved! thx for big help!
August 4th, 2009 at 7:53
http://xmages.net/out.php/i381019_preview00057.gif
September 2nd, 2009 at 6:40
?an you help me to make a script, to allow generate particle in collision point of two custom objects ?
http://xmages.net/out.php/i465239_Clipboard01.jpg
September 2nd, 2009 at 12:00
hmmm I’ll thing on solution for this one
September 10th, 2009 at 10:22
Emit particles on the ocean surface lock them to the ocean surface . Search for collision between these particles and the beach object and spawn new particles based on the collision.
I had to do it in Max recently because locking the particles to a surface is a bit of pain in RF and dumb particles do the job as well, you won’t need liquid particles.
Good luck
October 30th, 2009 at 6:15
I’d like to try this script. I don’t know how to export the dreamscape mesh to use in realflow with this script. help. thanks. also, the maya ocean deformer is only until maya 6.5. and i’m using 2008. any other alternative solutions. thanks
I want to simulate a submarine moving and submerging in dreamscape. then use realflow for splashes and spray.
Thanks again.
October 30th, 2009 at 13:18
I don’t know dreamscape at all. Maybe import dreamscape ocean into maya, then export SD for Realflow.
October 31st, 2009 at 20:51
thanks anyways.
July 1st, 2010 at 16:37
thank u for sharing alot of technology. and i have two question ,please help me .1 where is ocean deformer ….in maya .
2 i doing a project, the LOGO out from sea ,cross the surface of sea. for geting detail,i use a big box to take particle , and increase resolution of particle .but when i increase resolution the particle will explode . how can i adjust Int pressure when increase particle resolution? any idea ?
July 15th, 2010 at 20:50
Sorry I cannot help You on Maya with ocean deformer :/
About changing resolution – You have to change interpolation method because new particles are too close to previous ones.
You could also create separated simulation and mesh everything together.
I would not suggest changing pressure during simulation.
August 22nd, 2010 at 20:48
software failure is not working please help
help help help does not create waves
August 23rd, 2010 at 8:39
can u write some more details?