CLARKSON ES 305 - Virtual Tools in Engineering Design

Unformatted text preview:

ES305 Virtual Tools in Engineering Design Cameras, Action...OverviewRecap: Level ScriptsRecap: CameraRenderingRendering a FrameBB Operating CycleBIn/BOut: Building BlocksExample: TimerLoop In/Loop Out Building BlocksLoop In/ Loop Out detailsExample: ChronoActivate/Deactivate Building BlocksOn/Off DetailsGraphical FlagsConstructES305Virtual Tools in Engineering DesignCameras, Action...11-11-2009Prof. [email protected]■ Virtools■Cameras■Action: understanding building blocks■Trace mode■Parameter selectorHomework:■Virtools Exercise 3, due today■Virtools Exercise 4:□Work on the Virtools Tutorial for Monday (nothing to turn in)□The final version is due on Wednesday, 11/18Recap: Level Scripts■Level scripts■used to create behaviors that are not bound to a particular object, but exist in the level (e.g. background, setup)■useful place to put a comment describing the compositionExample: Set Background Image BBRecap: CameraRendering■View Frustrum (view volume)defined by the current camera & its near & far clipping planesRendering a FrameProcess Looprepeatforever} 1 frameProcess BehaviorsProcess BehaviorsRenderRenderBB Operating CycleSome BBs have one behavioral in and one behavioral outactivate the bIn execute the BB: some use parameter inputs (pIn) and some produce parameter outputs (pOut)deactivate the BBactivate the bOutSome BBs have a bIn/bOut and a loopIn/loopOutSome BBs are switches – once activated they stay active until explicitly turned offBIn/BOut: Building BlocksSome building blocks have one In and one Out. The BB starts out as inactive. When you activate the In, the BB performs its operation, activates the Out, and becomes inactive.To repeat a behavior, you must explicitly have a link back to the behavior In in order to reactivate the BB.Examples: Delayer BB (above), Rotate BB, Translate BB.Example: Timerone Behavior In (BIn) / one Behavior Out (BOut)one Loop In / one Loop OutLoop In/Loop Out Building BlocksSome building blocks have an In, a Loop In, an Out, and a Loop Out. The BB starts out as inactive. When you activate the In, the BB performs its operation and then activates the Loop Out. To repeat a script, connect from Loop Out to the looping script’s In, and have a link from the looping script’s Out back to the BB’s Loop In.When the loop is finished, the BB’s Out is activated.Example: Timer BB.Loop In/ Loop Outdetails1. BB is inactive2. In is activated; the BB activates Loop Out following the pink link; BB is still inactive3. We link Loop Out to the script we want to execute during 3s. To have the timer active again, My Looping Script needs to reactivate Loop In. Then, during 3s, the timer will work following the violet link: Inactive -> Loop In -> Active -> Loop Out -> Inactive4. Finally, when Loop In is activated but the time elapsed > 3s, the timer will work according to the orange link and activates Out. The BB is inactive. Back to 1.Example: Chronoalso note: can use trace mode to display a parameter value (such as elapsed time)On / Exit OnOff / Exit OffActivate/Deactivate Building BlocksSome building blocks, once you activate their On, the BB stays active until they are explicitly turned off by activated their OffExamples: Switch On Key BB & Chrono BB (above).On/Off Details1.BB is inactive. 2.The user presses the 1 key. On is activated, the BB performs an action and activates the Out On output (violet link). The BB is now active and will call itself every frame and perform an action until the Of input is activated. 3.The user presses the 2 key. Of is activated, the BB performs an action and activates the Out Of output (pink link). The BB is now inactive. Go back to 1.Graphical FlagsFlag Meaning DescriptionSettings can specify additional info to BBVariable can create additional pIn, pOut, bIn, bOutCustom Dialog for parameter input and settingsSend MessageWait MessagesConstruct■v flag – variable number of inputs/outputs■To add a bIn/bOut or pIn/pOut, right-click in the BB and select ConstructExample: Switch On Key


View Full Document

CLARKSON ES 305 - Virtual Tools in Engineering Design

Download Virtual Tools in Engineering Design
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Virtual Tools in Engineering Design and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Virtual Tools in Engineering Design 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?