Friday, 16 September 2011

Sunset Animation

Sunset AnimationIn this tutorial you will learn how to create sunset animation using 3dsmax: sun slowly going down below horizon. Although this is just a simple animation, you will learn a lot from this tutorial. In first section of this tutorial, you are going to create ocean wave using animated material. You can apply this technique to any water surface, like river, pond, or lake.

1. At first, you need sea object. You can use a simple plane. Open or reset 3dsmax. Go to Create tab. Click Plane button. Click and drag to create a plane in Top viewport. While plane still selected, go to Modify tab. Use 500x500 for plane size

2.Go to Camera tab. Click Free button. Then, click in Front viewport to create Free Camera. Change Perspective viewport into Camera (first activate viewport by right click in this viewport, and press "C" in keyboard). Move and rotate camera, so you have camera view like image below. .

3. Next, you will create material for sea object. Open Material Editor (press "M" in keyboard). By default one of material slot is active. Change this material name to "sea". Apply this material to plane by dragging from material slot to plane in viewport. Change Diffuse color to blue (R=50, G=50, B=104). Also increase Specular value to 50 to make sea surface more shiny.

4. Scroll down until you see Maps rollout. Open Maps rollout. Increase Bump value to 100. Click button right next to Bump. In Material/Map Browser window, double-click Noise. In Noise Parameters rollout, activate Fractal with Size=5. You can try a test render (F9) to see the result. Note: Bump is used to simulate material "roughness".

5. Right now, you had static ocean waves. To create wave animation, you need to animate material. Click Auto Key button. Move slider to frame 100, and enter Phase=3. When finished, turn off Auto Key. Using Phase, you can animate noise to simulate wave movement.

6. You can try to render the animation if you want. Press F10 to open Render window. In Time Output activate Active Time Segment. And in Render Output you can choose filename, folder and animation format (AVI, MOV). And click Render.

After you created ocean and wave animation in Page 1 tutorial, now you are going to add background image. Also you will add a sun using simple primitive object

7. Open Environment and Effects window (from top menu Rendering>Environment or press "8" in keyboard). Click None button under Environment Map. In Material/Map Browser window double click Bitmap. Then choose any image you want as background. For example, I use file SKYSUN2.JPG. This file can be found in 3dsmax installation folder. Usually located in Program Files/Autodesk/3dsmax/Maps/Skies. When finished, try to render camera viewport

8.Unfortunately, the background image I used is not rendered in the way I want (look at above image). To fix this, click button in Environment and Effects window, hold and drag to one of unused material slot in Material Editor. Choose Instance in opened dialog box. Now, you can modify background image placement. In Cropping/Placement activate Apply and Place. Then change H value. For example I use 0.65.

9. Try to render, background image placement is much better now.

10. Next, I will add a sun using simple object. In Front viewport, create a cylinder with Radius=15 and Height=0. Then, move this cylinder in slightly above plane and in the farmost position of plane (viewed from Top)..

11. Next, you need to apply material to sun object. Select one of unused material slot. Name this material "sun". Apply this material to cylinder. Change Diffuse Color to yellow (R=247, G=209, B=0). Also activate Self Illumination and change color box at the right to orange (R=232, G=158, B=0). Self Illumination usually is used to create object which emits its own light, like a lamp or sun. Applying Self Illumination will result in more bright surface.

12. Image below shows test render up this point.

You have created ocean with wave animation (Page 1 tutorial), then added a background image and a sun (Page 2 tutorial). Finally, in this last tutorial section you will add light and post-procesing with Video Post. You will use Video Post to add glowing effect.

13. Create omni light in viewport, move it in front of sun object (cylinder) While omni light is selected, go to Modify tab. Change this light color to orange. Then link this omni light to sun object (While omni light still selected, click Select And Link button, press H to open Select by Name window, highlight cylinder and click Link button). Note: actually you can use other than omni light. For example: spotlight. You also need to add more light to lit the whole scene. It's up to to add more light.

14.Next, we will animate the sun. Select sun object (cylinder). Activate Auto Key. Move slider to frame 100. Move sun object down, until only a half of sun visible in Camera viewport. When finished turn off Auto Key.

15. Next step is adding a glow effect to the sun. But, first select sun object, right click and choose Properties. In G-Buffer, enter Object ID=1. Click OK.

16. Now, open Video Post (Rendering>Video Post). Click Add Scene Event button. Click OK to accept default setting (View from Camera).

Click Add Image Filter Event button. From drop down list choose Lens Effect Glow. Click Setup button. Notice that glow effect will be applied to object with ID=1. In Filter, use Edge to make glow effect appear only in object surroundings. Then click OK.

Finally, click Add Image Output Event button. In opened window, click Files button, then you can choose filename, folder and animation format (AVI or MOV). When finished, click OK. In Video Post window, you will have a series of Video Post event like image below.

Finaly, click Execute button to render the animation. In opened window you can choose video resolution.Click Render. Note: Glow effect only visible when rendered from Video Post.


No comments:

Post a Comment

Getting started in max (tutorials)

...