Storing jit.gl.model in 2 dimension matrix

Feb 7, 2013 at 2:25pm

Storing jit.gl.model in 2 dimension matrix

Hi I apologize if my question is/was vague to you guys, here is the clear patch illustrates my problem:

I found there’s only one dimension matrix for jit.gl.model, for the xfade function I will need to store them in 2 dimension matrix, I’ve successfully made it by jit.fill and jit.spill but then I realize jit.fill has limited list length to output(my model is up to 30k+ dim), so I use PIP method to slice the matrix first but fail to regroup matrix together….

(please see the red patcher)

many thanks….

L

#66391
Feb 7, 2013 at 8:44pm

replace your pak_model sub-patcher with [ jit.scanwrap 3 float32 113 113 ]

#238990
Feb 8, 2013 at 1:13am

#238991
Feb 8, 2013 at 1:43am

Hi Rob

This is very useful, it works perfect just except one more thing:

I have just found if i use jit.scanwrap, there’s an error massage now from jit.gl.texture ->

jit.gl.texture @rectangle 1: doesn’t support repeat wrap mode, reverting to ‘clamp’

Thank you!

L

#238992

You must be logged in to reply to this topic.