It is currently Thu Jul 04, 2024 5:18 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 19 posts ] 
Author Message
 Post subject: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 3:46 am  (#1) 
Offline
GimpChat Member

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

Image

Not an exciting animation, but interesting for Gimp since it is not a 3D program and making a solid ring that is also animated is quite an involved process. While it appears as one continuous animation, it was made of 60 frames, each with 6 layers. Five of the layers of each frame are animated by multiple applications of Map Object. Additionally, some of the layers switch their positions during the animation to give the appearance of a single continuous animation.

Making something like this with Blender can be done in a matter of minutes. Doing it with Gimp and GAP took hours of planning, setup, and rendering. The challenge is how far one can push Gimp and GAP to make things it wasn't generally designed for.

Background (for the curious):


First, I wondered how I could use Map Object to make a solid ring object. Normally, if you use Map Object to make a Cylinder object and use hollow rings for the top and bottom caps, a cylinder will be created, but it will have no thickness to it's walls. Providing that thickness was the original goal. I did that by making two layers. Once rendered, each of those layers would become the front and back of the cylinder. A third layer was a hollow ring pattern, which I used for the top and bottom caps of the cylinder. I then set up a fourth layer to be rendered as the back inner wall of the cylinder. I rendered that cylinder layer at a smaller width from the first two cylinder layers. The width was not arbitrary in size though. Rather, I calculated what size my top and bottom cap rings had to be and what width factor I would have to use on Map Object to make the smaller "inner wall" of the cylinder match up with the inner portion of those rings.

[Geek alert :geek :mrgreen: ]
To make the math specific, I started with a 400x400px image. I made the ring caps outer diameter 400x400. Since the width factor for Map Object for a cylinder object is 0.25, that meant that if I must made a cylinder from a 400x400 filled layer, once it was rotated properly, it would make a cylinder whose outside diameter was 100x100 if the Length factor is set to 0. (400 X 0.25 = 100) The reason the Length factor is set to 0 for the calculations is because this gives us the center cross section of the cylinder. If we have a cylinder whose length factor is 1 for instance, then the diameter of the cap facing closest to us, will appear larger than it actually is, while the diameter of the opposite cap furthest from us will appear smaller. The true size of the cylinder diameter is located at the center slice. This is at Length factor of zero (0). I never set the Length factor to zero (in fact I used a Length of 0.10 for this experiment), I just keep that in mind for the calculations. I set the inner diameter of the ring caps at 320x320. Multiplying 320 by the Map Object width factor of 0.25 equals a value of 80. So 80 would need to be the diameter of the inner wall of the cylinder, to match with the inner diameter of the cylinder caps (at Length factor 0). Since the image was 400x400, getting a value of 80 for a final result required a Map Object width factor of 0.20 (80/400=1/5=0.20) So the inner cylinder wall would be made from a cylinder whose width factor was 0.20. This may be a little confusing, but behind all computer graphics applications is math. The math used for this purpose is simple compared to much of the math applied behind the scenes in Gimp (and GAP).
[/Geek alert]

In order to highlight the 3D effect of the results, I decided to rotate the composite object 45 degrees about the X-axis coordinate, resulting in this:

Image

I then figured out how to rotate it 90 degrees in the opposite direction to get this:

Image

I then started manipulating the rings and applying a few filters coming up with this:

Image

After all of that, I then decided to take the plunge and attempt to animate it. I didn't animate it going a full 360 degree flip, since that would have required more layers and more shuffling of layers during the animation for it to work. Again, the result is rather plain, but doing something like this, really gave me an appreciation for what ultimately goes into a 3D application like Blender, just to make a simple animation. Also, it's a test of just how far Gimp and GAP can be pushed.

Thank you for checking this all out.

:)

P.S.: I have added two XCF files, one an XCF file of a tilted ring, showing the various layers used in making the ring. The other one named used_parts.xcf are the parts used to make the various parts of the animation (with the exception of the background, but that is trivial to add).


Attachments:
used_parts.xcf [39.71 KiB]
Downloaded 172 times
plus_tilt.xcf [85.8 KiB]
Downloaded 182 times
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: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 4:26 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
WOW ccbarr those are excellent. You sure know your math......

_________________
Image


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 4:48 am  (#3) 
Offline
GimpChat Member

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

Thank you.

:)


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 5:06 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Apr 27, 2010
Posts: 1453
Location: Sweden
Very impressive indeed, doing 3D graphics in a 2D program. You sure make GIMP do things the designers probably never imagined it could be used for. :)
.
Griatch

_________________


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 6:37 am  (#5) 
Offline
GimpChat Member

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

Thanks for your comment.

:)


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 6:43 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2011
Posts: 1764
It looks perfect to me...congratulations with that. Perhaps the designers may take that on board for future versions of GIMP


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 7:37 am  (#7) 
Offline
GimpChat Member

Joined: Dec 20, 2010
Posts: 174
Location: Wherever the voices in my head tell me I am.
akky wrote:
It looks perfect to me...congratulations with that. Perhaps the designers may take that on board for future versions of GIMP


akky hi,

Thanks for your comment.


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 10:18 am  (#8) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
That ring looks like it could be easily made into a roll of duct tape. Your animation is excellent!

Click here

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 11:10 am  (#9) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I think you are right "O". How much will you bet that someone will try it? lol

_________________
Image


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 11:55 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
ccbarr that is amazing!

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 4:22 pm  (#11) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Looks like something done in Xara or another vector graphics program. Nice work with Gimp!! :clap

Extruding a flat 2D object, adding light and texture, then rotating on an arbitrary axis is a non-trivial task using a raster graphics app.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 7:53 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Yeah its phenomenal to say the least. :)
Is it possible to have a full revolution of the object occur?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 8:14 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I was able to get one step closer to 3-D LOL
I created my own steel bar gradient and applied it to a tall rectangle.Then i rotated it 90% clockwise and ran polar coordinates on it.
The result was a ring with a segment missing so i just copied another part of the ring.Then i merged all the layers into one, and ran GMIC 3-D extrusion and this is what i got. :)

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 8:23 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Mar 02, 2011
Posts: 1850
Location: Michigan
Good luck Rod!

_________________
Image
I'm back I think


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 8:45 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Didn't work so i deleted the last post about interpolation effects. :lol

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 9:11 pm  (#16) 
Offline
GimpChat Member

Joined: Mar 08, 2011
Posts: 155
That's awesome! The light reflection on the inside and outside of the ring and the shadows are details some might have missed in doing the work just animating it. Well done.


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Mon Jun 13, 2011 10:50 pm  (#17) 
Offline
GimpChat Member

Joined: Dec 20, 2010
Posts: 174
Location: Wherever the voices in my head tell me I am.
Thanks everyone for your comments. I appreciate it that many understand the notion of how difficult doing something like this would be with Gimp and GAP.

:gimp

I felt it was possible, and had the idea in mind for quite some time, but it's a matter of having the time and right frame of mind to see it through to completion.

It is true that one can make 3D extruded objects and even animate them using GMIC, however that was not my goal here. It was to use Map Object combined with GAP to simulate a solid ring object, despite the fact that Map Object is not designed to normally accomplish that. However, GAP fills in the "gaps" nicely to allow such an animation to be done.

I like O's idea about the object being used like a roll of tape. Indeed, I could imagine an animation where the roll rolls along on a surface and some tape appears to be placed over the surface as it rolls along. The tape could even tear off with jagged edges like scotch tape has when you tear it off a roll. Would be a bit more complex animation, but certainly doable with Gimp and GAP.

@GnuTux The animation was developed using Map Object mapping various designed layers to various Cylinder objects combined with GAP's Apply Filter on Layer(s) and then doing various compositing actions on the various separate layers to yield the final result.

@Rod, it is quite possible to have a full 360 degree revolution of the ring. The only reason that I didn't do it in this case was time considerations. It would have required a little more complexity, adding at least one more layer to each frame of the animation, and then that layer, like some of the others would have to be rearranged during the animation to make it appear to have a continuous flow.

@Amanda47, thank you for noticing about the lighting and reflections. I must give credit to Map Object for that portion. While it took hours to set this up and render the various layers of each frame, Map Object provided all the lighting effects for this animation.

Thanks again to all who have commented and for recognizing the amount of effort required to do something like this in Gimp (and GAP).

:)


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Tue Jun 14, 2011 8:44 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
Ccbarr is our official "Lord of The Rings"! Extremely well done!!

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: GAP - Animated Solid Ring Object
PostPosted: Tue Jun 14, 2011 8:45 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Mar 02, 2011
Posts: 1850
Location: Michigan
PhotoMaster wrote:
Ccbarr is our official "Lord of The Rings"! Extremely well done!!

I would suggest GAP Master :)

But LOTR works too :)

and I agree Extremely well done!

_________________
Image
I'm back I think


Top
Post new topic Reply to topic  [ 19 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Text along a ring

6

No new posts Attachment(s) GEGL Plain Ring Text plugin

1

No new posts Attachment(s) GEGL Ring Bevel Plugin Download

14

No new posts Map to Object

3

No new posts Attachment(s) Quick and Dirty Lightning Object

2



* Login  



Powered by phpBB3 © phpBB Group