Sun Path Tutorial

Copyright © 2000 David Gould. All Rights Reserved.

Description:

Shockwave Flash tutorial using Illustrate! 5.0

Level: Intermediate
Time to complete: 15 mins(approx)
Topics Covered:
  • Frame rates for Flash
  • Creating custom styles
  • Transparency
  • Simulating shading with sub-object materials
Materials:
File Description  
SunPath_Tutorial.max Tutorial scene  
SunPath_Final.max Final scene (optional)
SunPath.swf Final Flash Animation (optional)

Sun Path Final Animation

click on the image to view the final animation

Getting Started

  1. Load the scene SunPath_Tutorial.max.

  2. Click on the Play button to view the animation.

    The scene consists of the sun moving across the sky from dawn to dusk, while the dolmens rotate slowly.

  3. Got to frame 40 then click on the Render button .

    You can see how the different objects have been assigned materials. The sun and the flare have a semi-transparent material while the dolmens have a sub-object material. You can open the Material Editor to look at the materials in more detail.

Frame Rate

We will now output this animation to Flash but before we do we need to change the frame rate that better reflects how Flash animations are played. In Shockwave Flash every frame of the animation is drawn in real-time, i.e. each frame consists of a series of shapes that have to be calculated and drawn. While 30 frames per second(fps) is the standard for video it isn't well suited for Flash. Not many machines can play a Flash animation at 30 fps so we must reduce the frame rate to ensure smoother playback.

  1. Click on the Time Configuration button .

  2. In the Frame Rate: section click on the Custom button, then set the rate to 15. Click on OK.

The animation now measures 50 frames. It is important to adjust the frame rate when outputting to Flash. Rates of between 10 and 15 are suited to Flash. Which rate you use depends on the complexity of the scene and/or the output file size.

Creating a Rough Draft

Final rough draft rendering

  1. Click on the Illustrate! menu item in the main menu bar.

  2. The Rendering Wizard is then displayed. Click on the Shockwave Flash (SWF) radio button, then click Next.

  3. Leave the default setting of Draft Renderer then click on Next.

  4. Click on the MAX Environment Color radio button, then click Next.

  5. Click on the Cartoon image to change the drawing style. Click on Outlines. Click on Next.

  6. Leave the default output settings then click on Next.

  7. Click on Finish to save your settings. The Illustrate! window is then displayed.

  8. Click on the Render button .

    In the virtual frame buffer the scene is displayed with only the outlines. Take a look at the resulting Flash animation. It shows this single frame with the scene rendered with only its outlines.

  9. Let's now create a rough draft rendering of the first half of the animation. Click on the Render Scene button .

  10. In the Time Output: section set the Range: start to 0 and the end to 25.

  11. Click on Render.

    Take a look at the Flash animation and you'll see the scene rendered with its outlines. The background color changes as the sun moves across the sky. The lens flare appears towards the end.

Creating Custom Styles

We will now create a custom style for the sun and the lens flare.

  1. If the Illustrate! window isn't already open click on the Illustrate! menu item .

  2. Click on the Create New button

  3. In the style's name box type in the text "Surface Only"

  4. Open the Surface Only style by clicking on the + button displayed to the left of its name.

  5. Click on the green tick next to the Edges item to turn all the edges off.

  6. Click on the surface Default.

  7. In the Surface: combo box select the predefined surface Flat.

    The style we have created will render the surface of an object with its flat diffuse color and the edges won't be drawn.

  8. In the Named Selection Sets, located in the 3DS MAX main toolbar, select sun and flare to select them.

  9. In the Illustrate! window ensure that the Surface Only style is selected.

  10. Click on the Assign Style to Selection button .

  11. In the 3DS MAX main toolbar set the Render Type to Selected so that we only render the sun and flare.

  12. Click on the Render button .

    Take a look at the resulting Flash animation and you'll see the sun and the resulting lens flare rendered with the style we just assigned. You'll also notice that the objects' opacity is output as well making the lens flare and sun's corona semi-transparent.

We will now create another style for the dolmens. Illustrate! currently only supports flat shading of objects so to simulate shading the dolmens have been assigned a sub-object material with three different shades of gray. I then assigned each gray level material id to individual faces. To simulate the changes in light I then animated the three gray colors so they would change with the sun rising and settings. Open the Material Editor then take a closer look at the stone material to see how this was done.

  1. If the Illustrate! window isn't already open click on the Illustrate! menu item .

  2. With a style selected click on the Create New button

  3. In the style's name box type in the text "Dolmen".

  4. Open the Dolmen style by click on the + button displayed to the left of its name.

  5. Click on the surface Default. In the Surface: combo box select the predefined surface Flat.

  6. Click on the brush Edges | Fold | Visible | Default.

  7. From the Brush: combox box list select 1.5 Pixel Circle.

  8. Click on the paint Edges | Fold | Visible | Black.

  9. From the Paint: combo box list select Object's Diffuse Darkened.

    We have just set the style so that all fold edges will 1.5 pixels thick and they will be drawn with the darkened diffuse color of the underlying object. We will draw creaes with a slightly thinner brush.

  10. Click on the brush Edges | Crease | Visible | Default.

  11. From the Brush: combox box list select 1 Pixel Circle.

    For this scene we don't need to calculate the Surface of Intersection so we can turn it off.

  12. Click on the green tick next to the Surface Intersection edge item to turn it off.

  13. In the Named Selection Sets, located in the 3DS MAX main toolbar, select dolmens to select them.

  14. In the Illustrate! window ensure that the Dolmen style is selected.

  15. Click on the Assign Style to Selection button .

  16. In the 3DS MAX main toolbar set the Render Type to Selected so that we only render the dolmens.

  17. Click on the Render button .

    Take a look at the resulting Flash animation and you'll see the dolmens surface color changes with the sun's rising. Their fold edges are drawn with a darker version of their underlying diffuse color.

Creating the Final Animation

With all the styles assigned we can now render the final animation.

  1. In the 3DS MAX main toolbar set the Render Type to View so that the entire scene is rendered.

  2. Click on the Render Scene button

  3. Set the Time Output: setting to Active Segment.

  4. Click on the Render button.

    The resulting Flash animation will show the scene with the styles we've applied.