Sunset Lake Software - Comments for "Perspective in GPUImageTransformFilter" http://www.sunsetlakesoftware.com/forum/perspective-gpuimagetransformfilter Comments for "Perspective in GPUImageTransformFilter" en All I do is apply a 4x4 http://www.sunsetlakesoftware.com/forum/perspective-gpuimagetransformfilter#comment-1443 <p>All I do is apply a 4x4 transformation matrix to an image. You're going to need to do the same calculations that these perspective functions apply to create their end matrix. Once you have that matrix, you just feed it into the transformation filter.</p> pubDate Sun, 10 Jun 2012 02:14:36 +0000 dc:creator Brad Larson guid false comment 1443 at http://www.sunsetlakesoftware.com Hi Brad, firstly well done on http://www.sunsetlakesoftware.com/forum/perspective-gpuimagetransformfilter#comment-1442 <p>Hi Brad, firstly well done on GPUImage. Just came across it and looks like it will be really helpful for an app I'm working on. </p> <p>Building on the issues of the guy above, I'm trying to understand how GPUImage handles the camera position and vanishing point setting in OpenGL. I need to set these very precisely, and I see openGL has methods like gluLookAt but not sure how or if I can use these together with GPUImage, and if not then how does GPUImage handle these issues. </p> <p>Thanks, Michael.</p> pubDate Sat, 09 Jun 2012 23:27:44 +0000 dc:creator mgreg guid false comment 1442 at http://www.sunsetlakesoftware.com The math doesn't translate http://www.sunsetlakesoftware.com/forum/perspective-gpuimagetransformfilter#comment-1434 <p>The math doesn't translate directly across from a CATransform3D used for a Core Animation layer to an OpenGL ES quad, so you have to use slightly different matrix elements for perspective using GPUImage. Look at the 3-D transform example in the FilterShowcase, which applies perspective to a rotating image.</p> <p>In that case, I needed to set m33 to 0.4 as well as m34 in order to achieve the kind of perspective you expect when doing this in Core Animation.</p> pubDate Sat, 02 Jun 2012 16:56:26 +0000 dc:creator Brad Larson guid false comment 1434 at http://www.sunsetlakesoftware.com