1 / 16

ES305 Virtual Tools in Engineering Design Cameras, Action...

ES305 Virtual Tools in Engineering Design Cameras, Action. 11-11-2009 Prof. Searleman jets@clarkson.edu. Overview. Virtools Cameras Action: understanding building blocks Trace mode Parameter selector Homework: Virtools Exercise 3, due today Virtools Exercise 4:

Download Presentation

ES305 Virtual Tools in Engineering Design Cameras, Action...

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ES305Virtual Tools in Engineering DesignCameras, Action... 11-11-2009 Prof. Searleman jets@clarkson.edu

  2. Overview Virtools Cameras Action: understanding building blocks Trace mode Parameter selector Homework: 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/18

  3. Recap: 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 composition Example: Set Background Image BB

  4. Recap: Camera

  5. Rendering View Frustrum (view volume) defined by the current camera & its near & far clipping planes

  6. Rendering a Frame Process Loop repeat forever Process Behaviors Render } 1 frame

  7. BB 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 off

  8. BIn/BOut: Building Blocks Some 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.

  9. Example: Timer one Behavior In (BIn) / one Behavior Out (BOut) one Loop In / one Loop Out

  10. Loop In/Loop Out Building Blocks Some 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.

  11. Loop In/ Loop Outdetails • BB is inactive • In is activated; the BB activates Loop Out following the pink link; BB is still inactive • 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 -> Inactive • 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.

  12. Example: Chrono also note: can use trace mode to display a parameter value (such as elapsed time) On / Exit On Off / Exit Off

  13. Activate/Deactivate Building Blocks Some building blocks, once you activate their On, the BB stays active until they are explicitly turned off by activated their Off Examples: Switch On Key BB & Chrono BB (above).

  14. On/Off Details BB is inactive. 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 Off input is activated. The user presses the 2 key. Off is activated, the BB performs an action and activates the Out Off output (pink link). The BB is now inactive. Go back to 1.

  15. Graphical Flags

  16. Construct v flag – variable number of inputs/outputs To add a bIn/bOut or pIn/pOut, right-click in the BB and select Construct Example: Switch On Key BB

More Related