Share this topic on AskShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: Matrix Effect Part II - The Animation (No GAP Required)  (Read 14655 times)

0 Members and 1 Guest are viewing this topic.

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Matrix Effect Part II - The Animation (No GAP Required)
« on: December 11, 2006, 09:03:14 PM »
Matrix Effect Part II - Animating Your Background

In this installment, I'll show you how to animate your Matrix background in just a few simple steps.  This will be the results of the tutorial:



If you missed the first part of this tutorial on how to make the Matrix background, please check out this page first:
http://www.gimpdome.com/forum/index.php?topic=3101.0

In order to have a smooth animation, there must be no 'seam' where the animation transitions from the last frame back to first frame.
Fortunately, the first part of this tutorial creates a pattern that is seamless!  So, we're well on our way to animating the background
already!

The most difficult part in process is determining the number of frames needed.  But, guess what?  It's really not that hard!  Here's how I do it.

Step 1:

In my image above, I created a graphic that is 110 pixels in height.  I randomly decided that I wanted each frame to move 10 pixels more
than the last frame.  At this pace, it would take a total of 11 frames to complete one animation cycle.  The formula for calculating the
number of frames is as follows:

Height of image (in pixels) / Number of pixels moved per frame = Number of frames needed

- OR -

110 Pixels high / 10 Pixels moved per frame = 11 Frames needed

What happens if you don't come out with an even number of frames?  You'll either have to select a different number for the amount of
pixels moved by each frame (try 11, 12, 15, etc.), OR try adjusting the number of pixels moved in a couple of your frames until you get an even number of frames (for example: have most of them move 10 pixels, but make one or two of them move 11 or 12 pixels) OR you'll need to recreate your background.  The choice is up to you.

I've concluded that I need 11 frames for mine.

Step 2:

Duplicate the background layer.

Step 3:

Offset the duplicate layer...Ctrl+Shift+O (or Layer Menu > Transform > Offset).  When the Offset dialog window opens, enter the number
of pixels the frame needs to move in the Y value box as shown below.  I decided, as described in Step 1, that each frame would move 10
pixels.  So, I enter 10 as my Y value.  Keep the Edge Behaviour set to Wrap Around.



Step 4:

Duplicate the layer you just transformed and Repeat Step 3.

Step 5:

Continue Repeating Step 4 until you have the required number of frames.  In my case, I need 11 frames.

Step 6:

Once you have the correct number of frames, check out your animation.

Filters Menu > Animation > Playback

Does it seamlessly animate?  If not, redo the tutorial and see if you can figure out where you made a mistake.  If the animation works well, save your animation with the .gif extension and use the following settings as they appear.





Again, your image should resemble something like this:



Well, how did you do?  I hope you enjoyed this tutorial and learned a new trick or two.  As always, questions and comments are welcome.

Happy GIMPing!

Art
« Last Edit: May 16, 2010, 09:48:40 AM by Hi-T3k~HillBilly »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Toads Dont Exist

  • Guest
Re: Matrix Effect Part II - The Animation (No GAP Required)
« Reply #1 on: December 12, 2006, 03:34:12 PM »
Can't believe i didn't see this yesterday! :D
Then again, considering all the science research i was doing
i'm not entirely suprised :P
</contradictions>

How do you figure these things out Fence?

i could stare at this thing for hours
*eyes glaze over....drool begins to pool on my socks...
mom commences yelling about work ethics*

Great tut!

BTW this is Avvie size 'cause i didn't feel like uploading
a 231584305840835439 terabyte sig!
« Last Edit: December 12, 2006, 03:35:35 PM by Toads Dont Exist »

Offline paladin169

  • Member
  • **
  • Posts: 1,601
  • Karma: 0
  • Cookies!
Re: Matrix Effect Part II - The Animation (No GAP Required)
« Reply #2 on: December 12, 2006, 03:38:18 PM »
Sweet, wondered how to do this
Formerly sponge!


Runite

  • Guest
Re: Matrix Effect Part II - The Animation (No GAP Required)
« Reply #3 on: December 12, 2006, 05:29:27 PM »
Very nice job fence! Same as sponge, I was wondering how to do this as well. I'll try it ASAP and post my results (Hopefully) :D

badassfeline

  • Guest
Re: Matrix Effect Part II - The Animation (No GAP Required)
« Reply #4 on: December 12, 2006, 05:58:53 PM »
This is great! Also no GAP! Not only good for sigs and avvies, but People pay a fortune to get that screensaver on thier Mobile Phones, and now people can do it for themselves! Brilliant! Very well written tute too! 10/10! :D


angie

  • Guest
Re: Matrix Effect Part II - The Animation (No GAP Required)
« Reply #5 on: June 14, 2007, 04:08:35 PM »
Do you think it might be possible to do a more complex version of this, where the lines fade in and out in a few random places, like the code is gradually popping up and disappearing all over the image? I think that would look pretty cool. I think that's how they did it in the movies, but then again, it's been a couple of years. . . :P

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: Matrix Effect Part II - The Animation (No GAP Required)
« Reply #6 on: June 14, 2007, 06:38:22 PM »
I think it could be done.  Do you have or can you find an example?  Even if it's not done with the matrix code, if you can find an animation that simulates the effect you're after, it would be helpful.

A
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

angie

  • Guest
Re: Matrix Effect Part II - The Animation (No GAP Required)
« Reply #7 on: June 14, 2007, 08:17:16 PM »
I doubt I could find one, but I'll try to make a simple version of it with the GIMP sometime soon to show you an example of what I'm talking about. I wouldn't be quite sure how to do it with the Matrix code, but I might be able to do it with lines that don't move up and down the page or something. I'll work on that tomorrow probably. . . It's so hard to describe. . . :P

Offline HippieKender

  • Global Moderator
  • Posts: 1,106
  • Karma: 0
  • I seem to lick circular things...
    • hippiekender.deviantart.com
    • hippiekender: PhotoBucket
    • @HippieKender:twitter
    • HippieKender.com
Re: Matrix Effect Part II - The Animation (No GAP Required)
« Reply #8 on: June 14, 2007, 08:28:32 PM »
Something like this?


There are more examples... I just did a Google image search for "Matrix code."

GimpDome dA Group || @GimpDome on Twitter
The most precious thing one can make is a friend.

angie

  • Guest
Re: Matrix Effect Part II - The Animation (No GAP Required)
« Reply #9 on: June 14, 2007, 10:31:59 PM »
Yeah, sort of, except the animation would show it going vertically (like in this tutorial) as well as fading in and out (I simply can't describe it :P ). Hmm. I don't know. It probably wouldn't look as cool as I first thought, anyway. It would probably look kind of weird, actually. :P


Tags: