Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Internal Objects

In RealFlow, objects can come from different sources. Under Edit > Add > Object you will find a couple of built-in standard objects, such as “Cube”, “Sphere”, “Rocket”, “Capsule”. By default, these nodes are low-polygon objects and perfectly suited to a quick scene setup where obstacles or containers are required. Some of these objects provide a certain feature that is hardly known: there are high-resolution versions of these nodes available. In detail, the objects are “Sphere”, “Hemisphere”, “Vase”, “Cone”, “Cylinder”, and “Torus”.

The only drawback is that these high-res nodes are only accessible through Python scripting, but fortunately, the relevant commands are easy to understand and to use:

scene.addSphere(4)

Just copy and paste the command printed above to a “Batch Script” window (Layout > Batch Script), and choose “Run” from the editor's “Script” menu. Now you will see a smooth sphere with 5,120 polygons in the viewport. By changing the number in brackets you are able to change the sphere's resolution. The maximum value is 8 and creates a sphere with roughly 1.3 million polygons. For the “Hemisphere” object the workflow is exactly the same:

scene.addHemisphere(resolution)

The other nodes provide similar commands, but some of them require more than one value to define their shape, for example the “Torus”. Here, the instruction is:

scene.addTorus(value1, value2)

value1” describes the number of subdivisions in horizontal direction, “value2” is responsible for the vertical tesselation.

Cone” and “Cylinder” take two arguments, the “Vase” requires a third value to define the its opening. With a value of 1.0, it is possible to create an open cylinder with the “Vase” type – an analogy to the “Cube_top_open” node.

Of course, these customized objects support all rigid and soft body dynamics features of their low-resolution “relatives”.

 

  • No labels