photo morphing point two

Dec 29, 2012 at 10:32pm

photo morphing point two

I’ve been working on photo warping and have come up with this patch which I’ve bastardised form several tutorials. I’m not really sure how it works though, the image is getting sent to a pwindow with no visible connections or invisible connections that I can find, I want to work out why as my final output seems tied to this pwindow, if I hide the pwindow nothing comes through to my morph pwindow and if i resize this pindow it also resizes my final output anyone know how I can fix this?

– Pasted Max Patch, click to expand. –
#65852
Dec 29, 2012 at 10:44pm

Check the name attribute of the pwindow and the drawto attribute of jit.gl.render. They’re the same and have been auto-filled because you didn’t explicitly state the render destination. That can be a named window, pwindow or matrix. See jit.gl.render help/reference.

#237161
Dec 30, 2012 at 5:44pm

Thanks. I just tried assigning names to the jit.gl.render and my pwindow. The same problem is occurring for me still though. I went through the reference and help files and haven’t quite been able to get my head around it yet and why its not working in my patch, this is the rectified patch so far

– Pasted Max Patch, click to expand. –
#237162
Dec 30, 2012 at 9:28pm

the pwindow is the gl drawing destination. every gl context needs one.
you will have much better performance if you can figure out how to keep all your images in the gl context, rather than reading back to a matrix with gl.asyncread.

also, make sure you update your max 6 to 6.0.8, as there are some bugs related to opengl crashing that have been fixed.

– Pasted Max Patch, click to expand. –
#237163
Jan 4, 2013 at 2:06pm

Thanks Rob, this is great.

#237164

You must be logged in to reply to this topic.