Forums > MaxMSP

Storing jit.gl.model in 2 dimension matrix

February 7, 2013 | 2:25 pm

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


February 7, 2013 | 8:44 pm

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


February 8, 2013 | 1:13 am


February 8, 2013 | 1:43 am

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


Viewing 4 posts - 1 through 4 (of 4 total)