It is currently Wed Aug 19, 2026 4:53 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: reversing map to object
PostPosted: Tue Sep 15, 2015 11:41 am  (#1) 
Offline
GimpChat Member

Joined: Sep 15, 2015
Posts: 5
Let's say you have taken an image and used map to object within GIMP. Is there anything within the G'MIC plugin that can reverse that process? Like taking a sphere (or circle because that's how gimp treats objects), and mapping it's "surface" into a planed image? I know that there will be data lost/distorted especially near the top and bottom, much like a mercator map.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: reversing map to object
PostPosted: Tue Sep 15, 2015 3:52 pm  (#2) 
Offline
GimpChat Member

Joined: Dec 20, 2010
Posts: 174
Location: Wherever the voices in my head tell me I am.
opakedragon:

Hi. I would recommend trying a 3D program like Blender. Blender actually represents objects as three dimensional, while gimp does not. Gimp's object mapping is not designed to unwrap the original object back to it's original 2D form.

Here is a simple example:

Take this image:

Image

Mapped to a sphere, leaving the X, Y, and Z coordinates at zero, it produces this:

Image

Gimp only maps approximately the inner third of the original image on to the front of the sphere. If we take another image as the starting point:

Image

Again if we map that to a sphere, we get the same result:

Image

If you now wanted to reconstruct the second image with the red square on it, Gimp could not do that because, as far as I understand the program, it does not remember that red square, since it was not included in the mapping. As far as Gimp is concerned, both final images are basically the same.

We only perceive what we see as 3D. From Gimp's point of view, it is a 2D object with various shades of color. We use that shading to perceive 3D, but it really isn't 3D.

Blender, if I recall correctly, would be able to unwrap both spheres and provide the two differing original planar image used for each. That is because Blender sees objects as truly 3D, thus having X, Y, and Z axes. Gimp only uses X, Y, and Z terms for computing and once the computing is over, it only sees a 2D object.

There may be a way to create a filter that remembers the entire input image data, but then you are probably getting into more complex 3D image math at that point.

Hope this helps some. :)

P.S. It's been quite a while since I have visited gimpchat. Hello to all those here who may remember me. Hope you all are well.


Top
 Post subject: Re: reversing map to object
PostPosted: Tue Sep 15, 2015 6:55 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
I do remember you, ccbarr, You did some great tutorials back in the day, pretty complicated but you made them easily followed.


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group