Random Points

3D Generator  -  Random Points generated inside a volume (sphere, box or any other Smode primitive)

RandomPointsGeometryGenerator

If you want to change the shape of this generator, you can select it either inside the ElementTreeWorkspaceComponent Icon Element Tree , directly in its parameters inside the ParametersWorkspaceComponent Icon Parameters Editor . To change the shape (position / orientation / size) select it in the element tree (red arrow):

RandomPointsShape RandomPointsShape

Here is an example of a Random points generator with a box shape:

RandomPointsGeometryGenerator-Box RandomPointsGeometryGenerator-Box

Here is a little comparison between this generator set as sphere and a GeosphereGeometryGenerator Icon Geosphere with a RandomPointsGeometryModifier Icon Random Points Modifier over it.

RandomPoints RandomPoints

Here is a little example using this generator with volumetric light:

You can also use any GeometryV9Generator Icon 3D Generator with the RandomPointsGeometryModifier Icon Random Points to produce almost the same results (except that points will be scattered over a surface instead of a volume).This also makes possible to sample custom Scene3dFileGeometryGenerator Icon 3D File , which is not possible with Random points generator.


Variables:

  • Seed: How the random generator gets initialised, each number produces a different randomness
  • Count: Count of the random points
  • Positions: A surface on which the random points will generate random points

Python

    Oil.createObject("RandomPointsGeometryGenerator")