Foam on custom ocean object

Share your scripts with other members
User avatar
Posts: 1023
Joined: Thu Jun 28, 2007 2:22 pm
Location: New Zealand

Foam on custom ocean object

Postby tmdag » Tue Aug 04, 2009 8:22 am

I have created simple, small script to create spray particles like on realwave surface but You can use totally custom wave object (for eg. from dreamscape). Firstly, script was created just to help godwinf on this topic but I got very nice feedback and I fought that it may be expanded a little.

Here are few examples of it's usage:

From Alex:

another wave - AVI movie

My example but dreamscape object from godwinf (our forum user)

MPG movie

You can get script from [RF Script PAGE] and my Blog

# Name : CustomOceanSpray
# Icon : Spray_icon.png
# Toolbar : Yes
# Author : Albert ‘tmdag’ Szostkiewcz
# Website :
# Date : 30 July 2009
# Version: 1.2

Kind : Batch script, Event Script

You can choose custom, animated ocean object (for eg. imported from Dreamscape)

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

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 is very important in setting up ‘rand in m’ value!!!!

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)

- First release
"Do not feed the trolls"
Albert 'tmdag' Szostkiewicz
FX Technical Director
Weta Digital

Posts: 27
Joined: Sat Jul 11, 2009 10:04 am

Foam on custom ocean object

Postby godwinf » Tue Aug 04, 2009 10:23 am


User avatar
Posts: 255
Joined: Sat Apr 07, 2007 5:48 am

Foam on custom ocean object

Postby zorcad » Tue Aug 04, 2009 11:55 am

nice script.

Posts: 1
Joined: Tue Apr 06, 2010 1:15 pm

Foam on custom ocean object

Postby 3823647 » Thu Apr 08, 2010 3:50 am

:D nice

Posts: 23
Joined: Fri May 07, 2010 8:41 am

Foam on custom ocean object

Postby naminator » Tue May 18, 2010 1:15 am

It says " We are currently improving the registration page and the site to upload scripts, so these pages are temporarily unavailable.

Posts: 2
Joined: Wed Jul 07, 2010 11:57 am

Foam on custom ocean object

Postby amincgi » Wed Jul 28, 2010 5:56 pm

Niceee :first:

Return to “User Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest