Jit.gl.multiple and anchor points
Hi,
I am trying to figure out a way to use jit.gl.multiple to draw an array of planes (created with a jit.gl.gridshape object), whilst maintaining the anchor attribute of the original object. It seems that the original @anchor attribute does not carry through to the instances of the object created with the jit.gl.multiple. Does anybody know where I am going wrong, or is this something that is just not possible?
Cheers
Tom
hi tom.
gl.multiple does not currently support the @anchor attribute.
sorry about that!
Thanks for the clarification. I won't spend any more time trying to get it to work!
Would be great as a feature in a future update though: jit.gl.multiple is something I use all the time, and whenever I want to control the y scale of individual objects sitting on a ground plane, I have to do the extra maths to alter their location according to their scale.
Cheers
Tom
Is there any workaround for that?
Ok a possible solution is jit.gl.gridshape matrixoutput mode 2 to jit.gl.mesh and than multiply that one.
nice solution!
It works but I have some difficulties to set colors
here an example where I'm trying to assign random colors on spheres