RealFlow Wisdom

RealFlow blog: Tips, Technics and Scripting.

How to know you are using the correct resolution?

Maybe this post can be simple for the most advance users but could help to newbies to understand the importance of the resolution parameter used in the emitters. You can detect the lack of resolution in your fluids if you see a thin layer of particles stuck to the side of the objects.  Have a look to next videos.

This video shows an emitter with resolution set to 1.0, you can observe a layer of particles stuck to the side of the glass.

Next video shows that increasing the resolution to 10.0 you will rid of the layer, but if you look carefully you see there is still a layer on the top sides of the fluid.

In next video you can see the best results but maybe it is not needed to increase so much the resolution up to 50.0 and a value of 25.0 or 35.0 would be enough for this simulation.  Obviously you can get better results with a better accuracy simulation but much more time to compute it will be needed.

Advertisements

July 13, 2010 Posted by | Particle Base Fluids, Tips | , , | 6 Comments

How to animate emitter attributes in RFRK2.0?

Some features in RF5 are not available directly in RFRK 2.0, one of them is the possibility to animate the radius or splash, those which are included in the sequence tab:

To animate the particles attributes you have to do it manually, I mean using a simple mel line. First go to the frame you want to animate and set the value, then write in the Script Editor:

setKeyframe “rfrk_geo_flowmesher21.files[0].radius”;

Where files[0] is the first emitter in the tab list and radius is the attribute to set the key.

This video shows four particles with an animation in both Radius and Plygone Size attributes.

Note: Thanks to Mihnea Balta for the tip.

June 8, 2010 Posted by | RenderKit, Tips | , , , , , , | 2 Comments

Saving previews using the command line option.

RF5 (Windows® version) let you save the previews in avi format but now you can use external applications to save your previews using the file format (the container of the video), and the codec (the compression type) you prefer, so this expand all the possibilities and improve your pipeline.

For this I am using a open-source app like ffmpg, http://www.ffmpeg.org/, you can find a lot of information about this application, if you are not familiar with the compilation process you always can look for an installer in Internet.
Once you have installed you will need to make it accessible adding the place to the system path.
Open RF and go to the Video preview preferences and select the “Save Image Sequence” and the Shell Command…” option.

In the lower field type next command line:

 

ffmpeg -f image2 -i \\path\...\frame%010d.png -vcodec copy -vbsf h264_mp4toannexb \\path\...\frame.mov

for instance:

ffmpeg -f image2 -i E:\trabajos_milu\test\preview\video\frames\frame_%05d.png -vcodec copy -vbsf h264_mp4toannexb E:\trabajos_milu\test\preview\frame.mov

where %05d is number of digits.

May 15, 2010 Posted by | GUI, Pipeline | , , | Leave a comment