Help - Search - Members - Calendar
Full Version: Lua script: polar mapping correction (Dogwaffle, Gimp, Artweaver)
Hash, Inc. Forums > The A:M Exchange / Resources / User Groups > 3rd Party Programs, Utilities and Products > A:M Paint
staigerman
when you have a texture, perhaps a seamless texture, and map it in a spherical projection, you tend to see the pinching or compression at the poles. To avoid those, you can remap the texture through a polar mapping correction.

If you use the GIMP (free), ARtWeaver (free) or Project Dogwaffle (free or commercial versions) you can install a Lua/gluas plugin in each of those and find additional filters available, written in Lua.

I just converted Paul Bourke's generic algorithm for polar transform into such a Lua script. Give it a try if you have an imaging application with Lua support.

http://www.thebest3d.com/dogwaffle/lua/polar

If you know other applications which support Lua, in particular which support the gluas subsystem for scripting new filters, please let me know. Note that not all Lua scripts coming from Project Dogwaffle or ArtWeaver will run on the GIMP, since we also have added a GUI system called the guiserver, and other proprietary elements, but this particular filter uses none of that and does work on GIMP 2.2 with the current gluas plugin (look for it in Filters>Generic>gluas... )

sidenote: I find the execution on Dogwaffle (PD Pro 4) significabtly faster than on GIMP, is it just my version of GIMP/gluas or is it indeed so much more optimized? Anyone else care to compare numbers?



itsjustme
Extremely cool, Philip! I don't have PD Pro, I've got the free version, so I doubt if it has that bell/whistle. I will do some experimenting in GIMP and see what kind of times I get. Thanks!

---------------------
EDIT
---------------------

It looks like it's supposed to work on the free version of Dogwaffle as well, very cool. I'll try that as well.
rickh
This is a really nice idea.

I will have to try it out.

Richard.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.