Any fix/workaround for thisjit.gl.multiple problem with scale? I tracked down a behavior. If I draw an object (e.g. jit.gl.plato), set automatic=0, give it a name, and then reference that name using jit.gl.multiple, then the following occurs.
Any @scale that I set on the object (e.g. jit.gl.plato), is somehow used to scale the position matrix that I feed into jit.gl.multiple for the object. I desire to increase the size of the object, but not scale its position.
This also appears in other cases like using multiple with jit.gl.model. The OBJ (may or may not) be scales like I want. I can always set normalize=1 on jit.gl.model. I do want to scale the model so it is an appropriate size in my openGL world. So on jit.gl.model, I set @scale appropriately. Unfortunately, then jit.gl.multiple applies this scale to the position matrix it received which is undesired.
The only workaround (poor quality) I’ve found is to set matrixoutput on the object (e.g. jit.gl.model), jit.op on that to scale the first 3 planes (the vertices), then feed it back into jit.gl.mesh. Unfortunately, the lighting/shading is dramatically lower quality than if I directly draw with jit.gl.model.
C74 RSS Feed | © Copyright Cycling '74