There is a newer version of this op!
This version will not receive any updates. It is recommended to use a newer version.
Current version: Ops.Gl.MeshInstancer_v4
Draw the same mesh multiple times on the GPU
summary (oneliner)
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.
doc
issues
example patch id
youtube id
caniuse query
collections
Inputs
exe (Trigger)
Trigger in
geom (Object)
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 (boolean /Number)
Enable to set a limit on how many instances are created
Limit (integer /Number)
If limit instances is enabled this number determines how many instances are created
Parameters
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
Outputs
Num (Number)
Total number of instances/shapes
Patches using MeshInstancer_v2
Changelog
added - scale array now works on XYZ
2019-05-29 - andro
Added trigger out port
2019-08-12 - andro
2019-05-29 - andro
Added trigger out port
2019-08-12 - andro