problem drawing background texture to jit.world

T. A. Gambarotto's icon

Trying to add a background texture to jit.world where I am rendering multiple instances of the same gridshape. Texture renders over the shapes; draw message behaviour not consistent. See attached. Giving me a headache this one; any help appreciated!

Max Patch
Copy patch and select New From Clipboard in Max.

T. A. Gambarotto's icon

Might rework my patch to use jit.gl.multiple. Testing someting now...

T. A. Gambarotto's icon

So jit.gl.multiple solves this problem, except for one thing: I want to set different shapes within the multiple, and this attribute does not seem to be allowed.

Rob Ramirez's icon

use a jit.gl.multiple for each shape you want

T. A. Gambarotto's icon

Thanks-- that makes sense and would work for my purposes. My prototype is due at the end of the month though and I don't have time to re-architect for then. I'll just add it to my backlog :D

T. A. Gambarotto's icon

Question, Rob -- is there a big performance boost over using jit.gl.multiple vs. iterating manually? For say, less than 100 shapes.