Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Animating seamless textures

From: After Effects: Principles of Motion Graphics

Video: Animating seamless textures

If you've ever done home improvement projects before, you might be familiar with having to cope with imperfection. If you've ever tried to hang some wallpaper with a repeating pattern, you know how tedious it can be to try to make all those edges line up without any seams. It's after those kinds of home improvement projects that I really do appreciate the precision of working within a software package. If you ever need to create a repeating pattern inside one of your motion graphics projects, look no further than After Effects or Photoshop.

Animating seamless textures

If you've ever done home improvement projects before, you might be familiar with having to cope with imperfection. If you've ever tried to hang some wallpaper with a repeating pattern, you know how tedious it can be to try to make all those edges line up without any seams. It's after those kinds of home improvement projects that I really do appreciate the precision of working within a software package. If you ever need to create a repeating pattern inside one of your motion graphics projects, look no further than After Effects or Photoshop.

So to get started, let's look at our project so far. Right now, I have a comp called Loopy, because we're going to loop absolutely everything in here, and in that comp I have an ASND file. Now if you're unfamiliar with ASND files, it's an Adobe Soundbooth Document. It's a part of the Creative Suite. It is its own file, much like After Effects has its own format, but the nice thing is the fact that you can edit your audio in Soundbooth and then just import the Soundbooth document into your After Effects document.

So if I ever needed to make any changes to this audio, I could just select the ASND file, go to Edit, and say Edit in Soundbooth. Okay, so anyway, I have the ASND file selected. Let's go ahead and listen to it. (video playing) You get the idea. There is no beginning. There is no end. It is a seamless loop of audio.

And now we're going to create some seamless loops of video using some textures that we've shot using a digital camera as well as some graphics natively generated right here within After Effects. So let's get started by looking at some of those textures. I'm just going to Command+Tab over to Bridge and sure enough, here are the textures that I've been using throughout the course that I have just went around and shot in my house. So the texture we want to use is this one right here, and the reason I'm choosing this texture--if I go ahead and just click to open up my magnifying glass--is you can see it's got some interesting textures to it, but it's relatively blurry in many areas.

So this is the perfect kind of texture to open up in Photoshop to create a seamless loop with. To do that, just go ahead and Ctrl+Click or right- click on the file and say Open With > Photoshop. Now right here in Photoshop, I'll just expand my canvas here so you can see things better. I'm in the Design workspace, and what we'll do is use the Offset filter to loop this texture around visually. So to show you what I mean, let's start by double-clicking the background.

This will create a new layer, and we'll just call this FrillLoop. Okay. With the FrillLoop layer selected, do up under Filter and down in the Other section is Offset, so choose Offset. And here, if we just click and drag, yours may be set to 0 by default. The Offset filter tends to remember its last setting, so here we go. Offset is set to zero on the Horizontal and zero for the Vertical. You want to make sure that Wrap Around is selected and that you have your Preview enabled.

I want this texture to be seamless from left to right. So to do that, we just adjust the horizontal offset. And as I click and drag this, when I let go, we should see a seam here. Now this texture is so perfect for seamlessness it's kind of hard to see, but if you look here in the center of the screen--here, let me zoom in, Command+Plus-- you can see I've got this seam, and that was created when I adjusted the offset on the horizontal axis, and basically, Photoshop just went right around and wrapped to the pixels.

Now I can't resize the canvas here until I click OK, so let me click OK and that way I'll resize the canvas. So now we have to deal with the seam. If you've ever use the Clone Stamp tool, well, good on you, because that's what we're going to use right now. Select the Clone Stamp tool and you want to choose a large soft-edge brush. It's pretty simple to go through here and patch this up, but one of the things I always recommend is to make sure you're at 100% magnification as you make your adjustments.

So just Command+Plus to zoom in to a specific area within the Photoshop document. There we go, and now what we can do is sample a specific area of this texture to paint in another area. So I'll just click down here to the lower-right and hold down Option on my Mac, Alt on Windows and just click once. Now, I've got a sample, and notice when I move my mouse, you can see the center of the brush is actually going to paint the area that I sampled into the new area where I've started my painting.

And since it's a soft-edge brush, it has a nice little fade around the edges. So I'll just click and drag, and sure enough, now I've gotten rid of the seam there. As I hold down the Spacebar, that allows me to move around in the canvas here. Let's go ahead and hold down Alt or Option and resample the new area and do the same kind of thing. Here we go. Okay, I'll just move it down.

And notice I'm not choosing something that's right next to where we were in the comp; I'm trying to choose areas that don't look particularly distinct. So let me actually resample over here. Paint that and draw down. And obviously, if you want less of a repeating pattern, don't draw such large strokes like I've been doing. Just go ahead and Option+Click and paint in smaller strokes. That way you can just paint in smaller areas. There we go.

Okay, so for the most part, we now have a seamless texture that we have created out of a live photograph. Let's go ahead and save this. We'll save it As Frill, and I'll just do -X, and that just lets me know that that is my seamless file. So we can go ahead and save that right into our images folder and save it as a JPEG, go ahead and click Save, and make sure the Quality options are set to Maximum, because JPEG is a compressed format. So, I'll go ahead and click OK.

And now with our Frill-X saved, we can go ahead and jump right back into After Effects. So let's import our seamless texture by double-clicking in the Project pane, and select Frill-X. Okay, the Frill-X texture is now ready to animate. Let's drag it and drop it right down into our Timeline. You'll notice this layer is actually huge, and I specifically left it large because if we were to animate this in three-dimensional space and the camera needed to get really close to it, I wanted to make sure that it was large enough that we wouldn't lose any quality.

In this specific example, we're not going to do that, but I just wanted you to understand why I didn't resize this in Photoshop. Anyway, let's press S to open up our Scale and scale this texture down to just around the edges of our comp. Okay, perfect. Now, we can animate the offset parameter in After Effects. Yes, it is the same offset effect that you saw in the filters in Photoshop, but here in After Effects, it's under Effect and Distort. Then you can choose Offset.

Okay, with Frill-X selected, if we open our Effects settings, we can see Offset. And the parameter that we want to adjust is this Shift Center To parameter, but before we add any keyframes, let me explain something. Since we set up this texture to be seamless along the x axis, all we're going to animate is the X parameter. So notice as I click and drag to the right, I'm not seeing any seams on this texture. That's because Photoshop did such a perfect job of just wrapping the texture around, and then obviously we painted out the seam.

In order for this to actually create a seamless loop within After Effects, there is a kind of easy trick that you can use to make sure that this Shift parameter is seamlessly loopable every time you use it. And that's to reset the parameter that you're going to be animating, in our case the X parameter. Reset that to zero. Now the entire size of this layer--let's select Frill-X in the Project Pane--is 2821. So it's 2,821 pixels across on the X axis.

Since we reset our X axis on zero for our offset, we can go ahead and keyframe that for the first frame of this comp, but go ahead and press End to move your playhead to the end of the composition. Now, shift the center to the entire size of the X parameter, so 2,821. Okay. Now if you press Enter on your keypad, we have a second keyframe, and if you notice, nothing changed in the scene. If I press Home and End, you notice the first frame and the last frame are exactly the same. This is perfect! It is a perfectly seamless loop, but the only issue is we have the same frame for the beginning and the end.

So to make this truly seamless, what we need to do is take the second keyframe and slide it one frame down the Timeline. So make sure your Info panel is up, and when you click and drag to the right, just pay attention and make sure that you only moved it one frame down your Timeline. Now if we press Home and load up a RAM preview, you'll be able to see that we have a perfectly seamless textured loop, created from an element that we shot in the "real world".

(video playing) I'll go ahead and stop playback, but as you can see, we have a nice seamless loop here. It's great that we can create seamless loops between Photoshop and After Effects, but believe it or not, you can create nice seamless loops right here natively inside of After Effects, and we can do that using some specific effects. Now, I want to jazz this up a little bit.

First thing we can do is create a new layer solid. So go to Layer, and create a new solid. Make sure the solid is the comp size, and you can leave it whatever color you want, because honestly, we're going to create a generator that will generate a specific graphic look. So let's go ahead and click OK. And now the effect we want to use is down under the Generate settings. And if we go to Fractal, we'll see that we have this kind of cool graphic look that's been created.

Fractals are--yes, the same fractals that you have studied in school, but in a graphic representation this is really kind of cool. What I want you to do is open up the Color Settings for the fractal, and anytime you see a parameter that says Cycle Offset, you know that that effect is seamlessly loopable. Also, you can do the same thing with Evolution options as long as you make note that it's one that complete evolution that you've selected. Let's create one complete cycle offset.

Move your playhead back to the beginning by selecting the Timeline and press Home. Add your first keyframe for the cycle offset. Move your playhead to the end, change the Cycle Offset from 0 to 1. If we select our gray solid and press U, will open up the Cycle Offset keyframes that we just created-- and just like we did to the previous loopable texture, and that's move this keyframe one frame down the Timeline. If we go ahead and move our playhead back to the beginning here, we can load up a RAM preview and I think you'll see a pretty funky animation with this fractal.

So let's go check it out. (video playing) I don't know if you think that's as cool as I do, but really, there is no beginning and there is no end. So the last thing we need to do is actually blend these two different effects together. So let's select our Light Gray Solid and just adjust the opacity by clicking T and clicking and dragging.

Here we'll adjust the opacity down, and let's add some color to this Frill layer here. We can just go to Effect > Color Correction, and we'll choose Tint. And let's go ahead and just choose kind of a yellow color, and that's perfectly fine. We'll add a slight glow to the entire graphic. So let's create a new adjustment layer and go up to Effect > Stylize, and choose Glow.

That's pretty crazy. Adjust the Intensity down just a little bit. We can adjust the Radius up, and if you adjust the Threshold, you can kind of tweak out, specifically, what's being affected. Obviously, I could sit here and tweak till the cows come home, but I think you get the general idea of what we're going for. Let's go ahead and just load up a RAM preview so we can check it out one more time and make use of our beautiful seamless textures and animations.

(video playing) As you can see, with After Effects and Photoshop you can create a virtually endless supply of seamless graphics and animations, and best of all, true precision is only a mouse click away.

Show transcript

This video is part of

Image for After Effects: Principles of Motion Graphics
After Effects: Principles of Motion Graphics

60 video lessons · 22952 viewers

Ian Robinson
Author

 
Expand all | Collapse all
  1. 3m 37s
    1. Welcome
      1m 1s
    2. Using the exercise files
      1m 4s
    3. Defining motion graphics
      1m 32s
  2. 11m 11s
    1. Workflow for creating motion graphics
      5m 7s
    2. Organizing projects for motion graphics
      4m 25s
    3. Defining a motion graphics "package"
      1m 39s
  3. 12m 58s
    1. Collecting visual inspiration
      2m 14s
    2. Listening to imagine
      3m 20s
    3. Creating elements for inspiration
      7m 24s
  4. 33m 4s
    1. Essential theories of typography
      6m 34s
    2. Understanding shortcuts for setting type in AE
      7m 27s
    3. Converting type from Photoshop
      5m 51s
    4. Importing type from illustrator
      9m 44s
    5. Creating shapes from text
      3m 28s
  5. 36m 30s
    1. Understanding the role of timing in motion graphics
      8m 1s
    2. Creating and using markers
      7m 58s
    3. Creating animation with markers
      5m 16s
    4. Using audio to create animated graphics
      5m 47s
    5. Editing techniques for graphics and video
      9m 28s
  6. 49m 27s
    1. Understanding different kinds of type in After Effects
      15m 53s
    2. Using animators with type
      7m 59s
    3. Using type presets
      7m 35s
    4. Creating custom type presets
      4m 35s
    5. Animating paragraph type
      13m 25s
  7. 45m 51s
    1. Exploring the use of color in motion graphics
      10m 40s
    2. Creating and using color palettes
      13m 45s
    3. Exploring color correction tools in AE
      6m 46s
    4. Advanced correction with Color Finesse
      8m 30s
    5. Creating custom color presets
      6m 10s
  8. 59m 6s
    1. Exploring textures in motion graphics
      8m 30s
    2. Building an animated background texture
      16m 48s
    3. Creating textures for type
      10m 19s
    4. Animating seamless textures
      15m 1s
    5. Creating custom vignettes
      8m 28s
  9. 38m 25s
    1. Understanding lighting in After Effects
      12m 57s
    2. Intro to lighting techniques
      5m 17s
    3. Using material settings to enhance lighting
      7m 36s
    4. Adding polish to a light setup
      12m 35s
  10. 50m 32s
    1. Animating swoops and swooshes
      12m 37s
    2. Creating repeating light trails with the Vegas effect
      6m 28s
    3. Repeating patterns with shape layers
      8m 11s
    4. Exploring graphic transitions
      10m 37s
    5. Exploring video transitions
      5m 16s
    6. Adding dynamic elements to a video transition
      7m 23s
  11. 22m 23s
    1. Working in 3D
      8m 36s
    2. Rigging cameras for animation
      8m 45s
    3. Working with depth of field
      5m 2s
  12. 50m 54s
    1. Creating storyboards in After Effects
      10m 20s
    2. Creating an animatic
      18m 14s
    3. Polishing the animation and timing
      8m 45s
    4. Applying the final effects
      13m 35s
  13. 47m 53s
    1. Preparing a map for animation
      7m 59s
    2. Animating and styling a map
      8m 24s
    3. Designing a lower-third graphic
      8m 22s
    4. Adding animation to the lower-third graphic
      9m 10s
    5. Creating bumper animations
      13m 58s
  14. 14m 17s
    1. Defining the toolkit
      2m 2s
    2. Preparing templates
      7m 12s
    3. Creating a style guide
      5m 3s
  15. 1m 3s
    1. Next Steps
      1m 3s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed After Effects: Principles of Motion Graphics.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.