Photoshop warp alorithm
Posted: 2013-04-08T13:46:22-07:00
Hey guys,
I'm building a rendering tool which uses PSDs as source templates and IM as a rendering engine. I've succeeded reverse engineering PSD format and now get 16 control points for warp transformation of each layer in the PSD. However, when I try to apply it to source data I get very different results, mainly because I have no idea about what rendering algorithm does PS use. I'm quite sure about the numbers though.
Initially I thought this could be Shepards distortion but the order "3" polynomial transformation gives me much better results, however it's still quite far from perfect. See for yourself (PSD on the left, IM transformed rectangle on the right)
https://dl.dropbox.com/u/3204447/Screen ... 3%20PM.png
My question is: Does anyone know what transformation algorithm does PS use? Can it be replicated in IM with the same mesh? Any ideas?
Many thanks for your help.
I'm building a rendering tool which uses PSDs as source templates and IM as a rendering engine. I've succeeded reverse engineering PSD format and now get 16 control points for warp transformation of each layer in the PSD. However, when I try to apply it to source data I get very different results, mainly because I have no idea about what rendering algorithm does PS use. I'm quite sure about the numbers though.
Initially I thought this could be Shepards distortion but the order "3" polynomial transformation gives me much better results, however it's still quite far from perfect. See for yourself (PSD on the left, IM transformed rectangle on the right)
https://dl.dropbox.com/u/3204447/Screen ... 3%20PM.png
My question is: Does anyone know what transformation algorithm does PS use? Can it be replicated in IM with the same mesh? Any ideas?
Many thanks for your help.