Zone12 |
I know there is already a post on polar distortion, which I searched for after working on a landscape texture. I would love to be able to distort this texture so it can be perfectly mapped to a sphere. The best way to do this is a colour based distortion. Basically it takes two grayscale images one for vertical and one for horizontal distortion, and then applies those to the image, with the orogin of each pixel governed by the shade of grey in the distortion map.
In this example, the right of the image is 25% grey, so the pixel would be taken from 25% of the width of the image to the left. image: ![]() horizontal distortion map: ![]() result: ![]() I think that this would be a great addition to filterforge. |
|
Posted: March 4, 2007 10:35 am | ||
ssamm |
Zone12,
I believe you can do this with the Offset component, by plugging a gradient/image into its Offset H input -- except the gradient would have to look grey (which is 0 offset) on the left side and slightly whiter-than-grey (which will drag the image to the right) on the right side. |
|
Posted: March 4, 2007 1:36 pm | ||
CFandM
![]() |
Were you talking about something like this..
test.ffxml Stupid things happen to computers for stupid reasons at stupid times! |
|
Posted: March 4, 2007 2:50 pm | ||
CFandM
![]() |
||
Posted: March 4, 2007 2:53 pm | ||
ssamm |
Good illustration, CFandM.
That's basically what I was talking about -- however if the image was not symmetrical, I think that left side would be a reflection of the right side (rather than just be the leftside without any offset change) -- because it's black instead of gray. (You seem to get a mirror wrap around effect if you offset far enough...) |
|
Posted: March 4, 2007 3:15 pm |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,711 Registered Users
+18 new in 30 days!
153,531 Posts
+36 new in 30 days!
15,347 Topics
+72 new in year!
21 unregistered users.