Create A Gas Giant Planet Scene In After Effects

Create A Gas Giant Planet Scene In After Effects

Tutorial Details
  • Requirements: Just After Effects... enjoy!
  • Difficulty: Intermediate
Download Source Files

Final Product What You'll Be Creating

In this tutorial you’ll learn how to create a Gas Giant planet, moons, sun and starfield totally in After Effects. This tutorial makes extensive use of Fractal Noise which can be used to create a whole host of visuals, and some expressions to link the light direction on the different elements we create.


Tutorial

Step 1

Start a new project and save it as ‘Gas Giant Scene’.

Create a new HDV 1080 25 Composition and make it 30 seconds long.

Save this as ‘Gas Giant ’.

Step 2

Create a new Solid (Layer / New / Solid) and choose a deep orange colour.

Click ‘Make Comp Size’ then click ‘OK’.

Step 3

In the timeline, click on this layer, then go to Effect / Noise & Grain / Fractal Noise.

The Fractal Noise effect is a great way to create clouds, random patterns and textures.

Set Fractal Type to Dynamic Twist and boost the contrast to around 145 to add some definition to the clouds.

Twirl down the Transform property and uncheck the Uniform Scaling checkbox. Set the Scale Width to around 500 to stretch out the clouds, and the Scale Height to 50 to compress them.

Then at the bottom of the Effects Panel, set the Blending Mode to Soft Light.

Step 4

Now to add a simple expression to animate the cloud movement.

Staying in the Effect Controls panel, Alt-Click the Stopwatch icon next to Evolution to open an expressions field in the timeline widow below.

In here type: time*20.

This will sample the current time and multiply it by 20 and then apply this to the Evolution setting of the clouds.

Do a quick RAM Preview to see how this looks.

Step 5

Duplicate this layer (Edit / Duplicate).

Now go into the Solid Settings (Layer / Solid Settings) and change the colour to a lighter orange tone.

Step 6

Open up the Effects Panel and in the Fractal Noise Transform settings, change the Scale Width to 400, just to add variation from the first layer.

Step 7

With the top layer selected, hit ‘U’ to bring up the expression, and change it to Time*15 – again to add some variety of animation.

Step 8

We’ll create the bands of cloud seen on Gas Giants by masking out sections of the top layer.

With the top layer selected, and using the mask tool, draw a series of horizontal rectangle masks , varying the height and position. Don’t do too many and be aware that the ones in the middle will appear thicker when applied to the sphere later.

Step 9

Create a new adjustment layer (Layer / New / Adjustment Layer) and add Effect / Distort / Turbulent Displace.

In the Turbulent Displace Effect Controls panel, set the Amount to 150 and the Size to 2.

Step 10

Now to create a couple more expressions to drive the cloud turbulence.

In the Turbulent Displace Effect Controls panel, Alt-Click the Stopwatch icon next to Offset (Turbulence). In the layer’s expression field type: [time*3,0]. This will animate only the horizontal offset and leave the vertical untouched.

Now Alt-Click the Stopwatch icon next to Evolution and in the expression field, type: time*100.

Step 11

With the Adjustment Layer selected, choose Effects / Stylize / Glow and apply these settings: Glow Threshold 90%; Glow Radius 130; Glow Intensity 0.5.

Step 12

Create a new White Solid (Layer / New / Solid) and set the opacity of this to 25% to add a hazy atmosphere feel.

Step 13

Next we’ll create the planet’s rings.

Create a new Composition called ‘Ring’. Make it 1000×1000 pixels and change the ‘Pixel Aspect Ratio’ to ‘Square Pixels’.

Step 14

Create a new Black Solid, 3 pixels wide and 300 high.

Change its scale properties to 100,000% wide (click the chain icon to disconnect the horizontal and vertical scale) and 100% high.

Don’t worry – it will make sense in a second!

Step 15

Now add Fractal Noise to the layer, changing the ‘Fractal Type’ to ‘Dynamic’. This should create a series of lines stretched across the layer.

Increase the contrast to 185 then play around with the Fractal Noise Evolution until you get an effect you like.

Move the layer down so it sits on the bottom of the frame.

Step 16

Add an adjustment layer and choose Effect / Distort / Polar Coordinates.

Push the Interpolation up to 100% and change the Type of Conversion to ‘Rect to Polar’.

And there you are – a nice, fractal based ring system.

Step 17

Before we put the planet together, we’ll make a couple of moons using Fractal Noise in a slightly different way.

Create a new HDV 1080 25 composition called ‘Moon 01′. Make it 30 seconds long.

Add a new Black Solid, call it ‘Moon 01 Texture’ and make it Comp Size. Then go to Effect / Noise and Grain / Fractal Noise.

Increase the Contrast to 200, drop the Brightness to -20, and twirl down the Transform button and take the Scale down to 40.

Step 18

Create a new adjustment layer and choose Effect / Stylize / CC Glass.

Input these settings in the ‘Surface’ properties: Softness 1; Height 50; Displacement 200.

Step 19

Next we’ll add some craters. Create a new Black Solid (Layer / New / Solid), call it ‘Moon 01 Craters’ and add Effect / Simulation / CC Particle World.

Step 20

Click the Options at the top of the Effects window. Then go into Opacity Map and in the Presets drop-down choose ‘Constant’. OK that and the options window.

Step 21

Switch the Grid from Floor to Off.

Make sure you are at the start of the composition, set the Birth Rate to 1000 and click the stopwatch.

Move forward one frame (press Page Down once) and set the Birth Rate back to 0.

Step 22

Set Longevity to 30 seconds. This will create a bunch of particles at the first frame which will last for the whole of the composition.

Now make them more spread out by twirling down the Producer options and set Radius X as 1, and Radius Y as 0.5.

Twirl down Physics and set the velocity to 0 – freezing the particles in one place.

Take the Gravity and Extra down to 0 too.

Step 23

Twirl down the Particle options and set the Particle Type to Shaded Sphere.

Set the Birth and Death Sizes to 0.07, and the Size Variation and Max Opacity to 100%.

Set the Birth Color and Death Color to Black and you’ve created a nice rocky moon texture map.

Step 24

Let’s make another moon – this time a volcanic one.

Create a new composition and call it ‘Moon 02′. Add a new Orange Solid, call it ‘Moon 02 Texture’, then choose Effect / Noise and Grain / Fractal Noise.

Set the Contrast to 300, the Brightness to -30, and the Blending Mode to Soft Light.

Step 25

Create a new Adjustment Layer and add Effects / Stylize / CC Glass. Set this layer’s blending mode to Overlay.

Under the Surface properties, set the Softness to 1, Height to 100 and Displacement to 300.

If you are getting bright yellow patches coming through, knock down the Fractal Noise contrast until they disappear.

And that is your Volcanic Moon texture map. Okay – let’s put all these elements together in the final composition!

Step 26

Create a new HDV 1080 25 composition and label it ‘Scene Composed’, 30 secs long.

We’ll make a starfield background first.

Create a new Black Solid, call it ‘Stars’, and add Effect / Noise and Grain / Fractal noise (again!).

Set the Contrast to 150, Brightness to -90, and in the Transform properties, the Scale to 2.

For more or fewer stars, just adjust the brightness.

Step 27

Create a new Black Solid called ‘Dust’.

Add Fractal noise with Noise Type set to ‘Spline’, Contrast at 200, Brightness at -20, and Scale at 400. You can play about with the Evolution settings to adjust the feel of the clouds, and change the Offset Turbulence to move them about until you are happy.

Step 28

Next add Effect / Color Correction / Curves. Create a steep curve, crushing the blacks.

Then add Effect / Color Correction / Tint. Use the colour picker to ‘Map White To’ a deep blue.

Set this layer to Screen over the stars layer.

Step 29

From the Project Window, drag the ‘Gas Giant ‘ composition onto the timeline. Make this layer 3d by ticking the 3D layer checkbox.

Go to Effect / Perspective / CC Sphere and apply it to the layer. In the Effect Controls / CC Sphere options, set the Render dropdown to ‘Outside’. This will speed up render time a little by only drawing the outside of the sphere.

Step 30

Drag in the ‘Ring’ composition and make this layer 3d also. Set its opacity to 50%.

Step 31

With the ‘Ring’ layer selected, choose Effect / Color Correction / Tint and ‘Map White to’ an orange/brown, knocking ‘Amount to Tint’ down to 30%.

Step 32

Then take the pick whip and parent the Rings layer to the Gas Giant Texture Map layer to lock them together.

Step 33

We now need to link the Scale, X-Rotation and Y-Rotation of the Ring to the properties of the Gas Giant.

Open the Effect Controls panel for the Gas Giant by clicking on its layer. Now click the little padlock icon in the top left of the Effect Controls panel to lock it open.

In the CC Sphere options, twirl down the Rotation properties.

Step 34

Drop down the Ring Layer’s transform properties on the timeline, and Alt-Click the Ring’s Scale stopwatch to open up the Expressions window.

Take the pickwhip from the Ring’s Scale properties and link it with the Gas Giant’s CC Sphere Radius. This makes the rings rather too big, so add ‘/2′ to the end of the expression to divide the size by 2.

Step 35

Alt-Click the Ring layer’s X-Rotation stopwatch, take the pickwhip and link it with the Gas Giant’s CC Sphere X-Rotation. This will link the rotation but you’ll notice the rings are still vertical and rotate in the opposite direction to the planet. We need to adjust the expression with a couple of variables.

At the start of the expression, add a square bracket ( [ ). At the end add '*-1' - this will reverse the rotation of the rings. Close the expression with another square bracket ( ] ) and then add ‘-90′ to rotate the rings to the horizontal.

Step 36

Now link the Ring’s Y-Rotation with the Gas Giant’s CC Sphere Z-Rotation and add ‘*-1′ at the end of this expression.

In the Gas Giant’s CC Sphere Effect Controls, play around with the X and Z rotation values and see how the Ring stays locked to the planet’s rotation.

Avoid rotating too much as we’ll see the back of the planet where the texture map joins, and the same goes for using the Y rotation.

Step 37

Now bring the ‘Moon 01′ composition onto the timeline. Make the layer 3d and add Effect / Perspective / CC Sphere. Again, drop down the Render options and set to ‘Outside’.

Step 38

Now we will link the light properties of the Gas Giant and Moon 01 together so that we can change the lighting settings on the planet, and the moon’s will automatically update. This takes a little while and uses pickwhips, but it’s worth doing for the versatility it adds later.

Click the Gas Giant Effect Controls panel and make sure it is still locked open.

On the ‘Moon 01′ layer, drop down the CC Sphere Effect options. Now pickwhip the following properties to those of the Gas Giant’s: Light Intensity; Light Color; Light Height; Light Direction; and in the Shading options: Ambient; Diffuse; Specular; Roughness; Metal and Reflective.

We won’t be altering all of these variables in this tutorial, but it’s good to have the option built in.

Step 39

Now duplicate the Moon 01 layer. With the duplicate copy selected, hold down Alt and drag the ‘Moon 02′ composition from the project window onto the layer, replacing the Moon 01 map with the Moon 02 map, but keeping all of your expressions intact!

Step 40

Now add an Effect / Stylize / Glow to Moon 02 to create a sulphur-rich atmosphere. Set Glow Based On to Alpha Channel; the Glow Threshold to 0, Glow Radius to 35, Glow Intensity to 0.4, Composite Original to ‘On Top’, and choose and sulphur-yellow for Color A.

Step 41

So now, any properties for lighting that you change in the Gas Giant CC Sphere options will change on the moons too. So go into the Effect Controls for the Gas Giant and in the ‘Shading ‘options, drop the ‘Ambient’ and the ‘Specular’ to 0, to really darken the ‘dark side’ of the planet and moons.

Then increase the ‘Light Intensity’ in the ‘Light’ options to 120.

Step 42

Now we need to create a shadow on the rings that is linked to the light direction, giving the impression of the Planet casting a shadow.

Pre-Compose the Ring layers by going into the Ring composition holding down CTRL and clicking on both layers. With both selected choose Layer / Pre-Compose, call the new composition ‘Ring Layers’, tick ‘Move all attributes into the new composition’ and click OK.

Step 43

Duplicate the new Rings layer. On the top layer choose Effect / Color Correction / Tint and ‘Map White to’ black, turning the ring black.

Step 44

Now draw a rectangular mask so that just the top of the rings is black. Feather the mask by 70 pixels.

Step 45

Alt-Click the rotation of this layer and pick whip it to the Light Height of the Gas Giant CC Sphere effect. Add a ‘-90′ to the end of the expression that is created.

Now we have a shadow cast onto the rings that is related to the light height.

Just as a note – this isn’t perfect as both Light Height and Light direction alter the way the light hits the sphere, as does the rotation of the sphere itself. But it gives pretty good results as long as you don’t go rotation crazy!

Step 46

Phew. Okay – let’s compose this into a scene.

In the ‘Scene Composed’ composition, create a 50mm camera (Layer / New / Camera)

Step 47

Create a new Null (Layer / New / Null Object). Make the null 3d. Parent the camera to the null to give easier control of it, and rename the Null ‘Camera Controller’.

Step 48

Now we need to get some Z-space between all of our elements.

Parent the Dust layer to the Stars, make both 3d, and set the Z position on the Stars layer to 5000. Then scale it up to where it’s just bigger than the composition window, about 350%.

Step 49

To keep the quality of the stars and the clouds which has been reduced due to the increase in scale, tick the ‘Collapse Transformations’ box for both the ‘Dust’ and ‘Stars’ layers.

Step 50

In the Gas Giant CC Sphere controls, increase the radius to 540 (this is as big as the radius can get without the planet getting too big for the composition), set the Rotation X as -8, Rotation Z as -15, Light height as -50 and Light Direction as 77 (or just whatever you like – this is just how I have set it up for the final render).

Place the layer to the left side of the composition about 250, 550, 0.

Step 51

Position Moon 1 closer to the camera by changing its Z Position to -2000. Take its scale done to 20%.

Set position keyframes so that it comes in from the right, and drifts across the scene, going off the left. Give it about 10 secs of movement.

Step 52

Position Moon 02 at -1000 in Z-space and reduce down to 5%. Place it above the rings, somewhere in front of the Gas Giant.

Step 53

Lastly, create a new Black Solid and call it ‘Sun’. Make it 3d. Then add Effect / Generate / Lens Flare, and select a 105mm Prime Lens Type. Reduce the brightness to 10% and position the light in the top right of the frame to match the light direction on the Planet and Moons. Now set the blending mode to screen.

Step 54

Set this layer’s Z position to 4000, scale it up to 250% and click the ‘Collapse Transformations’ box.

Drop the layer down in the stack to above the Dust layer.

Step 55

Set a position keyframe on the Camera Controller layer at 10 secs in. Go back to the start and set another keyframe, this time altering the Y position to move the camera up so that the Gas Giant sits towards the bottom of the frame. Go back to the second keyframe, make it an easy ease in keyframe (Right Click / Keyframe Assistant / Easy Ease In).

You may have to tweak the position or timing of Moon 01 now, just to get it to come into shot at the right time.

Step 56

To brighten things up a little, add an Adjustment Layer with a Glow effect. Set the Glow Threshold to 0%, the Glow Radius to 50, and the Glow Intensity to 0.1.

Then change the Adjustment Layer’s blending mode to Screen and reduce the opacity to 50%.

Step 57

And there you have it. You can alter the position of the Planet and moons as you like, and by adjusting the light height on the planet, you’ll automatically adjust it on the moons too.

Now you can render it out and add some suitable spacey sound effects. I’ve just used some guitar feedback slowed down to create that classic ‘Alien’ drone sound.

Additional Resources

  • http://www.creativecaptain.com/ Hugo

    Hi, you’re explaining some great techniques is the tutorial but I don’t understand why you don’t make the result look better adding a lens flare or something. The result looks kinda cheesy but the tutorial gives some preatty cool tips. Good work :)

    • Rafa

      Hugo,
      Because that’s exactly what a tutorial should do (in my opinion). Teach you some great techniques, but it is YOUR job to learn them and make them better (work for you…).

      Rafa.

  • http://Stamga.deviantart.com Stamga

    This is an amazing tutorial!

    I was looking for something similar to this and never found it.

    Thanks!

  • Chris Johnson-Standley
    Author

    Thanks for the comments on the tut.
    Regarding Hugo’s point – I didn’t add a lensflare as the standard AE Lens Flare is rather poor. I’d suggest using Video CoPilot’s Optical Flares, but I didn’t want this tut you use any non- standard effects.
    Hopefully it will give you some ideas to develop your own scenes – that’s really the point of these tutorials.

  • Marco Demichele

    Hi, I would to say you something. If there is a planet that move in front of the other why the big planet don’t rotate on himself? i think that it’s an error. Sorry for the english i’m an italian. Hi

    Marco Demichele

  • Kemet

    I haven t seen tutorial yet, but finish work is not very attractive for me. I did something similar in 3ds studio max and it looks a little bit better…a used some particle system for asteorids and exportet this with alpha channel…
    than i did some color corections in adobe AF..optical flars from andrev cramer have some amazing presets and finaly vors looks pretty cool….
    my friend one said me: Hey man: yust du 3d thing in 3d programs…..
    but i think this is very useful for lots of people and its improves my AF skills…thanks man

  • jink

    final result looks hideous, but scrubbing through the tutorial images i think theres some good techniques in here, however there’s no point in using the techniques if you can’t get the final result to look good.

  • Tom L

    Great tutorial. Nice to see something different. Personally I think this looks really good – but could do with some lens flares on it. I like the way the light direction all links up. I’ve never understood expressions to well but I guess they can be pretty useful.
    The Kemet guy is probably correct that you can do something better in a 3d program, but this is all made in after effects and is pretty impressive IMHO.

  • andras

    That is a nice one!

    And i only know it cause it’s not a video tutorial. Otherwise i wouldn’t have watched it because the end result looks flat. Everybody is always complaining on picture based tuts but they are much easier to follow. And probably no one before me would have mentioned that the techniques in it are great!

    @jink:
    “i think theres some good techniques in here, however there’s no point in using the techniques if you can’t get the final result to look good.”

    You can get the final result look good! It lacks depth, atmosphere, camera motion, dynamics, etc. but i wowed at the uses of fractal noise detailed, and set up this way! Even the ring can have more depth by only adding 1-2 more just a bit upper and under the original one, masking out little parts each to make them unique.

    So thanks again, i think these kind of tuts are the best, they open your mind and cant lead to “copy this to my reel” trouble for the lazy and anti talented.

  • joe

    I like when people crap on the tutorial – keep it up – so funny!

  • Billy

    Another beginner tutorial for AEtutsforbeginngers.com!

    Does this site really PAY for these?

    If so I’m going to come up with a tutorial on how to draw a stick figure and then how to animate it with the puppet tool.

    I’ll call it a “technique”

    It will be sweeeeet!

    Keep ‘em coming! The 14 years olds with pirated copies of After Effects gotta have somewhere to go to learn, right? LMAO!

  • Dave LaRhonda

    WTF! If you’re going to suggest they to to Videocopilot to get optical flares, why not suggest they also go to his tutorial on making planets. It’s way better than yours… You’re ruining AE tuts by putting this crap up there when everyone knows there are better tutorials out there.

  • http://www.youtube.com/v4vfx ramesh

    hey thanks very helpful tut…..here is the video i created 4 months earlier…

    http://www.youtube.com/watch?v=pnAqzZWa1JE

    i was just struggling to create saturn rings that time.

    • http://www.greasypigstudios.com arvin

      The individual planets here look good but it’s important to note that planets don’t go “out of focus” in space… the field of view is so large and the depth so great that everything is essentially in focus (seriously, find me any examples of depth of field in space photography).

      • http://www.youtube.com/v4vfx ramesh

        @ arvin

        thanks 4 ur time and information …. but what i think it will look blurry from a human eye if he is moving away from that planet 10 times faster than the speed of light.

        btw that video has many flaws i created that in 2 or 3hours just 4 fun and for the title at the last…

      • http://www.greasypigstudios.com arvin

        Depth of field is not the same as motion blur, which, you’re right, would probably be noticeable at that speed. But out of focus is not applicable at that distance. For example: you will not notice a difference in focus when looking out at a mountain that’s 1 mile away versus one that’s 3 miles away. There will be even less difference when looking at 1 million miles versus 10 million.

        That’s why camera lenses’ focus rings only go to a certain short distance (say, 200 feet), after which it just says “infinity:” http://www.kenrockwell.com/nikon/images1/600-56/focus-MVC-696S.jpg because literally anything past 200 feet will be in focus.

        But yes, don’t let that make you think I’m belittling the actual work you put towards the creations of the planets and stuff (unless they were just stock photos :) ), which was very well done.

  • http://www.roguerobot.co.uk Chris Johnson-Standley
    Author

    Thanks to those who have provided positive comments. I hope what I’ve shown in the tutorial will be of use to you.
    To address the negative comments – this tutorial is about creating this scene completely within AfterEffects and using Fractal Noise in a variety of ways to create different textures – from swirling cloud planets, to volcanic moons and starfields.
    It’s also about using expressions to link light direction on all of the elements (planet, moons, rings) so that you only have to change the one for all the others to update.
    It’s not about replicating a scene from a blockbuster movie. If you want to add flares, grain, glows, whatever, to make this more ‘realistic’, then please do – you should all have the skills to do that. As Andras makes clear, this isn’t about producing a completely polished article to use on a reel. It’s about some of the techniques I’ve developed for solving a problem I came up against.
    So instead of criticising tutorials, as so many seem to do all over this site, why not make some constructive points about what you have done with the techniques shown, and about how you have implemented them? Share your knowledge and experience to help everyone out there. I’d love to see some videos that people have made using this tutorial. And I’d love them to look fantastic! That’s what this community is all about.

    Just a quick point to Dave LaRhonda: Optical Flares is a plug-in for AfterEffects that generates realistic lens flares. It isn’t a tutorial or a technique. It’s easy for someone without much knowledge about the subject to make that mistake. Don’t worry about it – you’ll pick this stuff up if you just keep doing the tutorials.

    Keep up the good work, all other tutorial authors. And let’s quit the sniping, eh?

  • http://www.bonbinstudios.com atep

    Step 15

    Now add Fractal Noise to the layer, changing the ‘Fractal Type’ to ‘Dynamic’. This should create a series of lines stretched across the layer.

    Increase the contrast to 185 then play around with the Fractal Noise Evolution until you get an effect you like.

    Move the layer down so it sits on the bottom of the frame.

    > i used fractal noise dynamic and its not line but buble…help me:…!

  • Chris Johnson-Standley
    Author

    Hello Atep
    Did you follow step 14 completely?

    Step 14
    Create a new Black Solid, 3 pixels wide and 300 high.
    Change its scale properties to 100,000% wide (click the chain icon to disconnect the horizontal and vertical scale) and 100% high.
    Don’t worry – it will make sense in a second!

    It’s the increasing the horizontal scale part that’s important – without it you will just get bubbles. If you stretch it that much you’ll get lines.

    Good luck!

  • Terry

    Nice work!!! Thanks for ur tutorial…..really a great work

  • yasam phani

    Nice tutorial….! Thanks for sharing….!!!

  • Riccardo

    Hey Chris thanks for this great tutorials. I think is very well done, explain clearly the techniques you used and it’s free.

    I think people who criticize this tutorial missed the point. Everybody has to start somewhere to learn an application/technique. Personally I learned a lot from this tutorial. The most important thing is to share the knowledge.

    Cheers

  • Arun

    Nice job

  • Randal R

    Well aside from some of the wry comments. I thank you for putting this up.
    It has helped me understand AE a little better. As for the comments there are better tuts out there, they must be hidden,or do not have any tags on them. Some forget there are beginners and always will be.
    Thanks.

  • Ram

    um, when i was trying to change the expression control for offset turbulence into (time*3,0), the expression was disabled due to an error:

    expression result must be of dimension 2, not 1
    expression disabled

    Error occured at line 0
    Comp: (Gas Giant)
    Layer 1: Adjustment Layer
    Property: Offset Turbulence

    can u please help me solve this issue so i can create this scene?

  • Kevin

    This is a great tutorial but on step 8 how do you make the mask like that? I tried left clicking and pressing new mask but I don’t understand how you make them rectangles I’m a beginner so sorry for asking but can someone tell me?

  • Wes

    In the vtutorial you said:
    “Step 14

    Create a new Black Solid, 3 pixels wide and 300 high.

    Change its scale properties to 100,000% wide (click the chain icon to disconnect the horizontal and vertical scale) and 100% high.

    Don’t worry – it will make sense in a second!”

    This step is very confusing.