Flocking patch help for draw_mode
hello everyone, I'm absolutely a beginner and wanted to ask for help in knowing how I could replace the points on this patch with a png image of a bird or even better a 3d render of a bird.
The patch is a work of Amazing Max Stuff.
https://www.youtube.com/@AmazingMaxStuff
Have a look at the jit.gl.multiple object. Instead of changing the position of multiple points from a single jit.gl.mesh with @draw_mode points
, you want to change the position of multiple meshes (either a plane with an image of a bird, or a 3D model of a bird).
You could use jit.gl.gridshape to generate the base mesh of your plane with the bird image, or jit.gl.model to load the 3D model of a bird into Max, then attach one of these objets to a [jit.gl.multiple @glparams position] in which you can throw your position matrix.
Here is an example with a duck, which is a kind of bird.
Thank you so much!