Triggering animations in Stingray

By
-
Login to Follow
-
Industry
  • Games
  • Design Visualization
Subject
  • Animation
  • 1.3
Products
  • Maya
  • Stingray
Skill Level
  • Intermediate
Duration
160 min

Download Project Files

Click here to download the project files used in the videos below.

Introduction

In this video, Paul introduces introduces the simple and complex animations you can perform in Stingray and the techniques to trigger these animations like using animation state machines and raycast triggers.


Part 1: Doors, The Easy Way

This video explores the simple animation system in Stingray and adds a non-interactive trigger to open doors in a level.

Here you'll see how to:

  • Create a door model in Maya and import it to Stingray.
  • Create physics actors for the doors and set them as keyframe animations, see Create a physics actor for more info.
  • Add a physics trigger in the Unit Flow to trigger the doors opening when you move closer and doors closing when you move farther.
  • Trigger events within animation clips, for more info see Add beats and flow events to animation clips.


Part 2: Power of Animation Controllers

In this video Paul aims to play a record player using animation controllers so that when the record player plays, the head moves to the record while the record spins and when the player stops, the head goes back to its original position.

You'll learn how to:

  • Create animation states and events to start and stop the record playing.
  • Raycast the player so that when you press the player, it triggers animation events to start/stop the record playing.
  • Dynamically control the emissive intensity value of the light material to have the light glow when the recorder plays.
  • Turn on light when the recorder plays and fade out when it stops.


Part 3: Putting Simple Animations to Good Use

This video covers how to raycast and look at a fan, and on mouse clicks to trigger animation to play the fan at different speeds. Here, Paul shows the unit and the level flow logic to activate a switch to rotate the fans on/off.

You'll see how to:

  • Raycast a camera and compare it to a fan switch
  • Check whether to highlight the switch if looking at the switch
  • Check if we are looking at the switch unit on mouse clicks.
  • Use a Compare Numerics node to adjust fan speed
  • Add level flow logic to initialize the fan speed to start
  • On subsequent clicks, adjust fan speed to medium, fast and stop.
  • Set an external event to level flow to notify of fan speed changes
  • Receive the notification on the fan's unit flow and initialize the current fan speed variable.
  • Trigger animation to play the fan and set its speed


Part 4: Doors, The Harder Way That Looks Better

Here, Paul improves upon the Part 1 tutorial to show a smoother way to open and close a door using animation state machine (animation controller).







Posted By
Tags
  • Maya
  • Stingray
  • Animation
  • 1.3
0 Comments
To post a comment please login or register
*Save $66 per month on Autodesk's Suggested Retail Price (SRP) when purchasing 1 year term 3ds Max or Maya subscription.