Viewpoint and Animation Example: Bus. Sensors DEF BusTimer TimeSensor { cycleInterval 120 loop FALSE} DEF BusSensor ProximitySensor {center 0 1.5.

Slides:



Advertisements
Similar presentations
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 11 VRML Animation and Interaction.
Advertisements

3D sprog X3D: Et 3D sprog til at definere realtime 3D grafik der kan formidles via WWW. – XML integreret – Baseret på VRML – Relativt nyt så der findes.
VRML 97 Formato per la definizione di oggetti 3D. La versione VRML 1 viene da una semplificazione degli scene graphs di OpenInventor. La versione 2.0 (97)
DLP for Virtual Environments (II) Interaction between users and 3D objects Multiple Instances of 3D Objects Rotation/Orientation calculation.
1 SURVEYING LEARNING TO READ A COMPASS. 2 The compass is marked with the four cardinal points – north, east, south, and west. The compass is also marked.
Event Routing §Some VRML nodes generate events in response to environmental changes or user interaction. Event routing gives authors a mechanism, separate.
© Richard Jones, 2009 CO641 Computer Graphics 1 CO641 Computer Graphics and Animation X3d / VRML Richard Jones SW107
Viewpoint { eventIn SFBool set_bind exposedField SFFloat fieldOfView # (0,  ) exposedField SFBool jump TRUE exposedField SFRotation orientation.
Introduction to VRML By Salman Yussof Diego Iglesias.
Adding Functionality To Web-Based VR Basic Concepts Client – server model Client-side static Client-side scripting Server-side scripting.
What Is VRML? VRML is: Stands for Virtual Reality Modeling Language A simple text language for describing 3-D shapes and interactive environments VRML.
Multimedia and the WWW Howell Istance and Chris Hand, Napier University.
An Overview of VRML §Scene Graph Structure VRML files describe 3D objects and worlds using a hierarchical scene graph. Entities in the scene graph are.
© De Montfort University, D Graphics and VRML Howell Istance and Chris Hand* De Montfort University * now at
> >
Cse591 Spring 981 VRML Basics The basic elements of VRML files are nodes. Every type of node has a set of fields associated with it. –Common single-valued.
Event Routing §Some VRML nodes generate events in response to environmental changes or user interaction. Event routing gives authors a mechanism, separate.
Selected Problems from Chapter o.
VRML Virtual Reality Modeling Language. What Are We Going to See? What is VRML? Syntax of the language Features Examples.
Lahti International Week 2006 Introduction to X3D Lesson 2: Animating your models.
2.4: Rotations.
© TMC Computer School HC20203 VRML HIGHER DIPLOMA IN COMPUTING Chapter 3 – Object Definition in VRML.
Jeopardy $100 $200 $300 $400 $100 $200 $300 $400 $500.
The Pythagorean Theorem
VRML Scene Graphs. Learning Objectives Understand the concept of a scene graph Understand how VRML defines transformations (translations, rotations, and.
Unit 5: Geometric Transformations.
Mashups with X3D Earth Mike McCann (MBARI) Alan Hudson (Yumetech)
1 Virtual Reality Modeling Language (VRML97) ©Anthony Steed
Comparative Resources, North and South, Comparative Transportation Systems, of 3.
Computer Graphics Group Script node Jiří Žára. Computer Graphics Group Contents 1.Script node 2.Motion generators 2Script node.
111/16/ :14 UML Instance Transformation x y z x y z x y z x y z SRT Model Coordinates.
Virtual Reality Modeling Language 97. What’s VRML? Virtual Reality Modeling Language 2D/3D graphics Audio:.wav,.mid Video: MPEG-1 Interactivity: time-
111/22/ :40 UML VRML 2.0 Scene Graph Structure Group Transformation Shape Nodes.
VRML Anthony Steed Department of Computer Science University College London ©Anthony Steed
© TMC Computer School HC20203 VRML HIGHER DIPLOMA IN COMPUTING Chapter 2 – Basic VRML.
Start on Europe. Walk to Africa. What direction did you walk? Start on Antarctica. Walk to Australia. What direction did you walk? Start on Asia. Walk.
Mathematical Transformations
Find that place..  Find that content  Longitude, East is to the right, West is to the left of the Prime Meridian or 0 degrees  Latitude, North is going.
UNIVERSITY OF KENTUCKY ALUMNI CENTER STUDY 10 March 2015.
© TMC Computer School HC20203 VRML HIGHER DIPLOMA IN COMPUTING Chapter 5 – Animation in VRML.
8-7 Transformation Objective: Students recognize, describe, and show transformation.
Geometry Rigid Transformations What do the words below mean? (think 1 min, discuss in group 1 min) Translation Reflection Rotation A SLIDE. The object.
Using Properties of Transformations to Show Congruence VOCABULARY.
© TMC Computer School HC20203 VRML HIGHER DIPLOMA IN COMPUTING Chapter 4 – Object Manipulation in VRML.
DLP for Virtual Environments (I)
Physical Features North Africa GOVERNMENT RELIGION RESOURCES
(4.2ish miles south-east)
Department of Computer Science University College London
Sinop is in the north of Turkey.
VIRTUAL REALITY IN ROBOTICS
Thatch House (Plan) Fig.4.
Section 17.3: Rotations.
VRML Shapes.
A’ B’ D’ C’ Draw a Point at the center of dilation (Point P).
Adapted from slides by Marty Stepp and Stuart Reges
University Center 517 University Center North: Inaccessible Element
WW2: Interactive Map A sequence of maps by year from 1939 – 1945
Workflow as suggested by takashi
9-3 Rotations Vocab Rotation: A transformation that turns a shape on an axis Center of rotation: The point at which a rotation is turned Angle of rotation:
Geometry Ch 12 Review Jeopardy
Rotation.
East West Move to Table 2 N/S
Transformations: Translations Rotations Reflections
Student Center A South: Inaccessible Element
Transformations, Translations, Reflections and Rotations
START DIRECTIONS QUIZ.
Lecture 3. Virtual Worlds : Representation,Creation and Simulation
Site and Context. Section from East Section E2 Section E1 Sannidhanam Malikapuram Sannidhanam Malikapuram.
Question 1. Question 1 What is 10 x 40? A 40 B 400 C 4000 D 4.0.
City of Edinburgh Council Transport & Environment Convener
Presentation transcript:

Viewpoint and Animation Example: Bus

Sensors DEF BusTimer TimeSensor { cycleInterval 120 loop FALSE} DEF BusSensor ProximitySensor {center size 8 3 3}

Proximity Sensor ProximitySensor { exposedField SFVec3f center0 0 0 exposedField SFVec3fsize0 0 0 exposedField SFBoolenable TRUE evenOutSFBoolisActive eventOutSFVec3fposition_changed eventOutSFRotationorientation_changed eventOutSFTimeenterTime eventOutSFTimeexitTime }

DEF BusPosition PositionInterpolator {key [ 0,.01,.02,.03,.04,.05,.06,.07,.08,.09,.10,.11,.12,.13,.14,.15,.16,.17,.18,.19,.20,.21,.22,.23,.24,.25,.26,.27,.28,.29,.30,.31,.32,.33,.34,.35,.36,.37,.38,.39,.40,.41,.42,.43,.44,.45,.46,.47,.48,.49,.50,.51,.52,.53,.54,.55,.56,.57,.58,.59,.60,.61,.62,.63,.64,.65,.66,.67,.68,.69,.70,.71,.72,.73,.74,.75,.76,.77,.78,.79,.80,.81,.82,.83,.84,.85,.86,.87,.88,.89,.90,.91,.92,.93,.94,.95,.96,.97,.98,.99, 1.0]

keyValue [ , , , , , , , , , , # , , , , , #.12 go north , , , , ,# , , , , , #go west , , , , ,# , , , , , , , , , , , , , , , #.43 go south , , , , , # , , , , , #.52 go to east , , , , ,# , , , , , , , , , , , , , , , , , , , , #.79,.78 go north , , , , , #.84 go west , , , , , # , , , , , # , , , , , #1.0 ]}

DEF BusRotation OrientationInterpolator {key [ 0,.01,.02,.03,.04,.05,.06,.07,.08,.09,.10,.11,.12,.13,.14,.15,.16,.17,.18,.19,.20,.21,.22,.23,.24,.25,.26,.27,.28,.29,.30,.31,.32,.33,.34,.35,.36,.37,.38,.39,.40,.41,.42,.43,.44,.45,.46,.46,.47,.48,.49,.50,.51,.52,.53,.54,.55,.56,.57,.58,.59,.60,.61,.62,.63,.64,.65,.66,.67,.68,.69,.70,.71,.72,.73,.74,.75,.76,.77,.78,.79,.80,.81,.82,.83,.84,.85,.86,.87,.88,.89,.90,.91,.92,.93,.94,.95,.96,.97,.98,.99, 1.0, 1.01]

keyValue [ , , , , , , , , , , # , , , , , , , , , , # , , , , , , , , , ,# , , , , , , , , , ,# , , , , , , , , , ,# , , , , , , , , , , # , , , , , , , , , ,# , , , , , , , , , , # , , , , , , , , , , # , , , , , , , , , , , # bus turns around ]}

ROUTE BusSensor.enterTime TO BusTimer.startTime ROUTE BusTimer.fraction_changed TO BusPosition.set_fraction ROUTE BusTimer.fraction_changed TO BusRotation.set_fraction ROUTE BusPosition.value_changed TO bus1.set_position ROUTE BusRotation.value_changed TO bus1.set_rotation Proximity Sensor Time Sensor Position Interpolator Rotation Interpolator Bus Position Bus Rotation

ViewPoint Viewpoint { eventIn SFBool set_bind exposedFieldSFFloatfieldOfView exposedFieldSFBooljumpTRUE exposedFieldSFRotationorientation exposedFieldSFVec3fposition fieldSFString“ ” eventOutSFTimebindTime eventOutSFBoolisBound

ROUTE BusPosition.value_changed TO viewpoint.set_position ROUTE BusRotation.value_changed TO viewpoint.set_orientation PROTO viewpoint [ exposedField SFVec3f position exposedField SFRotation orientation ] { Transform {translation children Viewpoint { position IS position orientation IS orientation } } }