It is currently Sat Sep 05, 2026 12:45 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: 3D Composite Object - Extreme GAP'ing
PostPosted: Mon May 09, 2011 7:28 pm  (#1) 
Offline
GimpChat Member

Joined: Dec 20, 2010
Posts: 174
Location: Wherever the voices in my head tell me I am.
Gimp combined with GAP has some interesting possibilities in creating composite 3d objects. Using an old technique called slit-scan photography and applying it as a concept using Gimp and GAP allows this to be done.

I created this simple pattern:

Image

Applying Map Object I created the front of a cylindrical looking object:

Image

Naturally, you can vary the width (and length) of your cylinder. A narrower cylinder could be also produced from the same base pattern:

Image

Please consider the following animation:

Image

It is a 300 frame animation, where the white line moves by one pixel difference between each successive frame. Almost looks like a scanner light as it moves across an object.

At some layer early in the animation, say layer alpha, it may be at this position:

Image

At some layer "a" later in the animation, it may be here:

Image

And yet at a later layer "b" it would be here:

Image

Imagine applying each of those different layers as Layermasks to the various cylinders.

Layer "alpha" was applied as a layermask to the narrower cylinder resulting in this:

Image

Layer "a" was applied as a layermask to the regular sized cylinder resulting in this:

Image

Layer "b" was applied as a layermask also to the regular sized cylinder yielding this:

Image

Now, if I composite all three of those images, I get this:

Image

Attempting to do this manually for 300 layers, varying the size of the cylinder and using a different "scan animation" layer as a layer mask would be quite a daunting task. However, thanks to GAP, one can create 300 frames, use Frames Modify and Apply Filter on Layer(s) along with Map Object to create varying sizes of cylinders. One can then use Move Path to separately place each separate "scan animation" layer into each separate frame, and then apply that layer as a layermask. When I did that I was able to get a resulting composite image.

My first efforts, used a 1 pixel wide white line "scan animation", where the layers were applied a layermasks to varying size cylinders. The result was, um, different:

Image

I noticed that using the 1 pixel width line resulted in a diffraction pattern being created on the composite object. Interesting to look at, but not the intended effect.

After some experimenting with different sized lines, I settled on a 3 pixel width line in the scan animation. The resulting object was this:

Image

Now, my imagination asks, what if I began combining boxes, spheres, planes, and cylinders in such a procedure?

The next step in the challenge would be to make a 3d rotation of this composite object using Gimp and GAP. It is possible. It would take a lot of frames to accomplish, since it take 300 frames to make a single still. If I wanted a 60 frame simple rotation animation of that composite object, it would take at maximum 300x60 or 18,000 frames. That would be for only a six second animation. Extreme! :wow

Anyone up for the challenge?

;)

Truthfully, once you've gotten to this stage, using a 3d application, such as Blender is best. You sure wouldn't need 18,000 frames just to make that composite object rotate in Blender. It's just more of a personal curiosity of using Gimp and GAP to their limits. As was mentioned in the title, it's "Extreme GAP'ing" :geekon

Thank you for checking this out.

:)


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: 3D Composite Object - Extreme GAP'ing
PostPosted: Wed May 11, 2011 12:16 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
This is quite interesting. Though I don't really have much to add, I appreciate your sharing it with us.

One thing that might be useful, you can use onion-skinning to incorporate a previously rendered frame into the next one; thus your last frame in the sequence will be a "composited" version of the all the frames (you can delete the others). It is probably simpler to convert the frames to an image and merge the layers, but doing so can in some cases require more memory than available.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Last edited by saulgoode on Thu May 12, 2011 8:32 am, edited 1 time in total.

Top
 Post subject: Re: 3D Composite Object - Extreme GAP'ing
PostPosted: Thu May 12, 2011 3:28 am  (#3) 
Offline
GimpChat Member

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

Thanks. I had wondered previously about doing composite 3d objects based on the basic one's Gimp does. It was six months to a year ago that I was able to first figure out this process. I had some exposure the the slit-scan photography concept, and one day thought I would try it with Gimp, where the slits act like layermasks and for some locations of the slit, I would use varying sized objects. I may try using a curved slit, by making a very thin cylinder, like with the Gimp coin animation to see if that is any more effective.

Using the onionskin I believe would work after I applied the layers of the scan animation as layermasks to the various sized cylinders to get the various slices. I may try that to see if I could then reduce the time required to make the object appear to rotate. Thanks for that insight.

Thank you for commenting and for the helpful suggestion.

:)


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group