Forums > Jitter

gl.gridshape maps to multi nurbs surfaces

August 23, 2010 | 1:05 pm

By splitting my movies (with jit.submatrix) and putting each piece onto a gl.nurbs surface via gl.texture I have a nice corrected multi projector setup and very pleased I was until…

If I want to move anything around on top of my corrected movie projection using GL (like a GLgridshape) then obviously it goes outside of the nurbs surface.

As a workaround I can send the gl.gridshape to a jit.matrix (with jit.gl.asyncread) and feed it into my display corrector where it gets split and mapped to the nurbs surfaces, but that is going from GPU-CPU-GPU again so kills the frame rate and its pretty messy as I have a separate named gl scene. Does anyone have any ideas about a better way to do this? Am I making myself clear? I can post a patch but I’m going to need to do a lot of tidying first!


August 23, 2010 | 4:19 pm

this response is no surprise i’m sure, but post a patch.


August 23, 2010 | 6:11 pm

Yeah, it’s hard to tell without seeing what you mean by "display corrector" .


August 23, 2010 | 9:35 pm

Yeah, sorry, was just fishing while I sorted it out. Consider my wrist slapped.

Here’s an example patch, you should see what I’m on about.

– Pasted Max Patch, click to expand. –

August 24, 2010 | 12:06 am

It seems like what you are looking for is a way to capture both the video and the geometry to a texture and then split that texture between 2 jit.gl.nurbs objects. Below is one way to do what you like. I use jit.gl.sketch to drive the capture, and jit.gl.slab with td.resample.jxs to split the texture.

– Pasted Max Patch, click to expand. –

August 24, 2010 | 8:10 am

Ahh, that’s perfect Andrew! Thanks very much, its been bugging me for a while. I thought it would be something to do with combining textures, but couldn’t quite figure out how to cut up the geometry. I guess its all there in the examples if you can find it!


August 24, 2010 | 12:18 pm

Hmm, having another problem now. In my proper patch I am using jit.gl.multiple with gridshape, and it does not seem to want to be captured. I have tried various things, but I think I may be misunderstanding exactly how gl.multiple works or something. I’m not sure if I should be trying to capture multiple or the gridshape, I’ve tried both, but I think the multi is just bypassing gl.sketch.

I have incorporated it into the example so you can see what I mean.

– Pasted Max Patch, click to expand. –

August 24, 2010 | 1:07 pm

Ahh, got it, the gl.multiple needed @transform_reset 2


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