Multiple boids

May 9, 2008 at 6:52pm

Multiple boids

Just wondering is it possible to change the different elements in jit.boids3d so as for example the elements can be different colours or different shapes etc…

#37665
May 9, 2008 at 7:14pm

yes, search for “depth sorting / transparency / jit.multiple issue” or
jit.boids3d

On Fri, May 9, 2008 at 9:52 PM, Harrison Ford wrote:
>
> Just wondering is it possible to change the different elements in
jit.boids3d so as for example the elements can be different colours or
different shapes etc…
>

#130243
May 9, 2008 at 7:23pm

jit.boids3d just spits out a matrix of x,y,z position values.
you can do whatever you want with those values.

one possibility is to send the output to jit.iter -> prepend position -> jit.gl.whatever (encapsulated in a poly). with this method you send the middle outlet of jit.iter to jit.unpack -> prepend target -> poly~

another, perhaps more efficient possibility is to send the output of boids to jit.gl.multiple. you could split the matrix sections and send each section to a different gl.multiple object. jit.scanwrap, jit.split and their ilk might help in this situation.

-rob

#130244

You must be logged in to reply to this topic.