Workflow-Scenario Television

television_01.jpg

<UnifeyeDesignInstallationFolder>/examples/scenarios/architecture/Workflow_Television.xml

Interaction

Rotating the the small button-like marker you can switch through the different channels of the TV displayed at the big marker.

Description of the VRML

TV01.wrl
  • OB_Box: the big wooden part of the TV on the left
  • OB_Box_right_wood: the smaller part of the TV on the right
  • OB_Box_right: the panels on the right side
  • OB_Glas: the screen's glass
  • ChannelNrSwitch: a Switch-Node containing 3 geometries each representing one different channel number from 1 to 3.
  • OB_Frame: the grey rubber around the glass
  • OB_Button_small: the three grey control dials
  • MovieSwitch: a Switch node containing 3 geometries each having a movie-texture from movie1.wmv to movie3.wmv
  • TIMER_START_MOVIE01: when this timer gets started the movie-texture MOVIE01 will get the command startTime and start playing, same goes for 02 and 03.
  • TIMER_STOP_MOVIE01: when this timer gets started the movie-texture MOVIE01 will get the command stopTime and stop playing, same goes for 02 and 03.
TV01_button.wrl
  • OB_Button: the control dial
  • OB_Button_Shadow: the shadow of the control dial

Description of the Workflow:

  • Start:
    • Like every other workflow this one starts with "Start Action", "Activate camera" and "Load tracking configuration".
    • The workflow consists of 2 separate VRML-files, which are loaded via "Load geometry". Before you can load a model you have to add it to Resources. After it is known to the system you can simply select it from the dropdown-box.
    • With a "Set VRML field"-action the first movie is set visible by changing the whichChoice-value of the Switch-Node MovieSwitch to 0.
    • Two different action-paths are then automatically triggered:
      • Side-Path:
        • With a "Start timer"-action the timer named "TIMER_START_MOVIE01" is started, then movie1.wmv plays.
        • With a "Set VRML Field"-action the first option of the Switch ChannelNrSwitch gets activated.
        • After 2000 ms (2 seconds) ChannelNrSwitch's whichChoice value gets changed to -1. This means that no child object of the Switch node at all is visible. After these steps the side path ends.
      • Main-Path:
        • The action "React on tracking target rotation" waits until the marker with the specified CosID 2 is rotated up to a certain degree of 30. Depending on the direction of the marker-rotation different actions get triggered:
          • If the marker is rotated counterclockwise:
            • As soon as the timer named "TIMER_STOP_MOVIE01" is started via the action "Start Timer" movie1.wmv is stopped.
            • After half a second (500ms) the action "Set VRML field" switches from 0 to 1, thus making movie1.wmv invisible and movie2.wmv visible.
            • From here the same functions as above are repeated for the other two channels.
          • If the marker is rotated clockwise:
            • Movie1.wmv also get stopped but after 500 ms movie3.wmv is displayed instead of movie2.wmv.
            • From here the same functions as above are repeated for the other two channels.

-- SupportMetaio - 2010-02-24

Topic attachments
I Attachment Action Size Date Who Comment
jpgjpg television_01.jpg manage 73.9 K 2010-02-24 - 15:33 SupportMetaio Unifeye Design Workflow-Scenario-Explanation Television
Topic revision: r4 - 2010-03-03 - 14:35:13 - SupportMetaio
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback