cables is under heavy development.
There might be one or another bug, please let us know about it!

MeshInstancer_v4 Op


Draw the same mesh multiple times on the GPU

For better performance you should use the "Trigger Once" op on the mesh going into the Geom input. Check the example patch to see this being applied.

Edit Documentation

Full Name
  • Ops.Gl.MeshInstancer_v4
  • Core Op - Official cables op
AuthorTest Patches


Example Patch mesh instancer

This patch demonstrates how we can generate 3 arrays of random numbers between 0-1.
Using the arrayMultiply op allows us to smoothly change the range of each array going into the position, scale and rotation arrays.

Open In Editor

Youtube Video Tutorial


exe (Trigger)

Trigger In

geom (Object:geometry)

The shape that will be instanced

Scale (Number)

Global scale for all instances, disabled if scale array is used

Limit Number of Instances

Limit Instances (Number:boolean )

Enable to set a limit on how many instances are created

Limit (Number:integer )


positions (Array)

Needs an XYZ array to determine the positions of each instance

Scale Array (Array)

Needs an XYZ array to determine the scale of each instance

Rotations (Array)

Needs an XYZ array to determine the XYZ rotation of each instance. 0 - 360 degrees.

Rotation Type index (Number:integer )
Material blend mode index (Number:integer )

Pick a material blend mode with an integer

Colors (Array)

Needs an RGBA array to determine the color of each instance.

TexCoords (Array)

Needs an array4 in standard UV range (0-1). First two numbers are for UV coordinates. Second two are for UV scale. [ U, V, U scale, V scale ]


Trigger Out (Trigger)

Trigger Out

Num (Number)

Total number of instances/shapes

Usages of MeshInstancer_v4

  • Examples
  • Public
  • My Patches
  • Ops


created opuser avatarcables - 2019-11-14
Ops.User.cables.MeshInstancer_v3 renamed to Ops.Gl.MeshInstancer_v3user avatarcables - 2019-11-14
Ops.Gl.MeshInstancer_v3 renamed to Ops.Gl.MeshInstancer_v4user avatarpandur - 2020-07-23
added core lib: cgl_shadermodifieruser avatarpandur - 2020-07-23
featureadded option to set rotation from normals array user avatarpandur - 2024-01-23