SlideShare a Scribd company logo
Prepared By : NURAINI MOHD GHANI
Using coordinate systems A VRML file builds components for a world  A file's world components are built in the file's  world coordinate system   By default, all shapes are built at the origin of the world coordinate system  Prepared By : NURAINI MOHD GHANI
Prepared By : NURAINI MOHD GHANI XYZ axes and a simple shape XYZ axes and a complex shape
A  transform  creates a coordinate system that is  Positioned  Rotated  Scaled  relative to a parent coordinate system  Shapes built in the new coordinate system are positioned, rotated, and scaled along with it  Prepared By : NURAINI MOHD GHANI
The  Transform  group node creates a group with its own coordinate system  translation  - position  rotation  - orientation  scale  - size  children  - shapes to build  Transform { translation . . . rotation  . . . scale  . . . children  [ . . . ] } Prepared By : NURAINI MOHD GHANI
The  children  field includes a list of one or more nodes  Transform { . . . children [ Shape { . . . } Shape { . . . } Transform { . . . } . . . ] } Prepared By : NURAINI MOHD GHANI
Translation  positions a coordinate system in X, Y, and Z  Transform { #  X  Y  Z translation 2.0 0.0 0.0 children [ . . . ] } Prepared By : NURAINI MOHD GHANI
Prepared By : NURAINI MOHD GHANI World coordinate system New coordinate system, translated 2.0 units in X
Prepared By : NURAINI MOHD GHANI Shape built in new coordinate system
Rotation  orients a coordinate system about a rotation axis by a rotation angle  Angles are measured in  radians   radians = degrees / 180.0 * 3.141  Transform { #  X  Y  Z  Angle rotation 0.0 0.0 1.0  0.52 children [ . . . ] } Prepared By : NURAINI MOHD GHANI
A rotation axis defines a pole to rotate around  Like the Earth's North-South pole  Typical rotations are about the X, Y, or Z axes:  Prepared By : NURAINI MOHD GHANI
Prepared By : NURAINI MOHD GHANI World coordinate system New coordinate system, rotated 30.0 degrees around Z
Prepared By : NURAINI MOHD GHANI Shape built in new coordinate system
Positive rotations are  counter-clockwise   To help remember positive and negative rotation directions:  Open your hand  Stick out your thumb  Aim your thumb in an axis  positive  direction  Curl your fingers around the axis  The curl direction is a  positive  rotation  Prepared By : NURAINI MOHD GHANI
Prepared By : NURAINI MOHD GHANI X-axis rotation Y-axis rotation
Prepared By : NURAINI MOHD GHANI Z-axis rotation
Scale  grows or shrinks a coordinate system by a scaling factor in X, Y, and Z Transform { #  X  Y  Z scale 0.5 0.5 0.5 children [ . . . ] } Prepared By : NURAINI MOHD GHANI
Prepared By : NURAINI MOHD GHANI World coordinate system New coordinate system, scaled by half
Prepared By : NURAINI MOHD GHANI Shape built in new coordinate system
Scale ,  Rotate , and  Translate  a coordinate system, one after the other  Transform { translation 2.0 0.0 0.0 rotation 0.0 0.0 1.0  0.52 scale 0.5 0.5 0.5 children [ . . . ] } Read operations  bottom-up :  The children are scaled, rotated, then translated  Order is fixed, independent of field order  Prepared By : NURAINI MOHD GHANI
Prepared By : NURAINI MOHD GHANI World coordinate system New coordinate system, scaled by half, rotated 30.0 degrees around Z, and translated 2.0 units in X
Transform { translation -2.0 -1.0 0.0 children [ Shape { appearance Appearance { material Material { } } geometry Cylinder { radius 0.3 height 6.0 top FALSE } } ] } . . . Prepared By : NURAINI MOHD GHANI
All shapes are built in a coordinate system  The  Transform  node creates a new coordinate system relative to its parent  Transform  node fields do  translation   rotation   scale   Prepared By : NURAINI MOHD GHANI

More Related Content

PPT
Breeyn McCarney
PDF
Mobile Comm. - 3G Questions 5
PDF
Premium medical ru_oktobris
PPT
8 ca - games
DOC
вересень
PPT
Презентация Толмачева Артема
PPT
Voci di donne 2013 web
PPT
ճառագայթում
Breeyn McCarney
Mobile Comm. - 3G Questions 5
Premium medical ru_oktobris
8 ca - games
вересень
Презентация Толмачева Артема
Voci di donne 2013 web
ճառագայթում

Viewers also liked (20)

PPTX
Lessons learned on
PDF
March 7th hw.docx2
PPTX
Shian carter's pol
PPTX
Paris con la family
PPTX
Handmaker module 7
PDF
April 22
PDF
2012 who are doing jehovah's will today
PDF
Chapter 1 principle and guidlines
PDF
January 14
PPT
Module 8 protecting the business and your intellectual property
PDF
Predlozenije aprel 2011
PPTX
Mentor
PDF
Code.org értékelése
PDF
Premium medical piedāvājums 2013. gada februārī
PPT
սննդային թունավորումներ
PPT
էկոսմայլ աղբ
PPT
A dayinthe lifeconnectedbuilding10-18
PPTX
New microsoft office power point presentation
PPTX
Radik
PPS
Razdel19
Lessons learned on
March 7th hw.docx2
Shian carter's pol
Paris con la family
Handmaker module 7
April 22
2012 who are doing jehovah's will today
Chapter 1 principle and guidlines
January 14
Module 8 protecting the business and your intellectual property
Predlozenije aprel 2011
Mentor
Code.org értékelése
Premium medical piedāvājums 2013. gada februārī
սննդային թունավորումներ
էկոսմայլ աղբ
A dayinthe lifeconnectedbuilding10-18
New microsoft office power point presentation
Radik
Razdel19
Ad

Similar to VISUAL REALITY [Chapter 3 - transforming shapes] (20)

PPTX
Computer graphics presentation
PPTX
3D Transformation
PDF
Chapter 5- 3D transformations of graphics.pdf
PPTX
3D computer Graphic PPT.pptx in computer graphics
PPT
09transformation3d
PPT
transformation 3d
PPTX
3D Transformation in Computer Graphics
PPTX
Part 3- Manipulation and Representation of Curves.pptx
PPTX
Part 2- Transformation.pptx
PPTX
Part 2- Geometric Transformation.pptx
PPT
Lecture 9-online
PPTX
TYPES OF TRANSFORMATIONS IN COMPUTER GRAPHICS.pptx
PPT
2D Geometric_Transformations in graphics.ppt
PPTX
transformations- movement and location for grade 4 or 5 classs
PPTX
Computer Graphics Presentation Engg.pptx
PPT
lecture-9-online.pptVHVHJBJBJBBJBJBBBBBHHBH
PPT
lecture-9-online WORK PART UNIFORMITY IN
PPTX
1. introduction.pptx
PDF
Coordenadas homogeneas mov_robot
PPTX
Part 2- Transformation 2D to 3D in CAD.pptx
Computer graphics presentation
3D Transformation
Chapter 5- 3D transformations of graphics.pdf
3D computer Graphic PPT.pptx in computer graphics
09transformation3d
transformation 3d
3D Transformation in Computer Graphics
Part 3- Manipulation and Representation of Curves.pptx
Part 2- Transformation.pptx
Part 2- Geometric Transformation.pptx
Lecture 9-online
TYPES OF TRANSFORMATIONS IN COMPUTER GRAPHICS.pptx
2D Geometric_Transformations in graphics.ppt
transformations- movement and location for grade 4 or 5 classs
Computer Graphics Presentation Engg.pptx
lecture-9-online.pptVHVHJBJBJBBJBJBBBBBHHBH
lecture-9-online WORK PART UNIFORMITY IN
1. introduction.pptx
Coordenadas homogeneas mov_robot
Part 2- Transformation 2D to 3D in CAD.pptx
Ad

More from Nuraini Mohd Ghani (12)

PPTX
Chapter 4 - Human Capabilities : Conceptual Models
PDF
FUNDAMENTAL OF GRAPHIC DESIGN - assignment I
PDF
VISUAL REALITY AND VRML - Assignment Presentation
PPTX
VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES]
PPTX
Chapter 1 - INTRODUCTION TO VRML
PDF
Human computer interaction - assignment presentation
PDF
Chapter 3 memory and learning
PDF
Chapter 2 human capabilities, input output systems
PDF
E headline2010 - Presentation Seminar
PPTX
Critique 1
PPT
Presentation Slide
ODP
Nuraini mohd ghani 1071120119
Chapter 4 - Human Capabilities : Conceptual Models
FUNDAMENTAL OF GRAPHIC DESIGN - assignment I
VISUAL REALITY AND VRML - Assignment Presentation
VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES]
Chapter 1 - INTRODUCTION TO VRML
Human computer interaction - assignment presentation
Chapter 3 memory and learning
Chapter 2 human capabilities, input output systems
E headline2010 - Presentation Seminar
Critique 1
Presentation Slide
Nuraini mohd ghani 1071120119

Recently uploaded (20)

DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
Trump Administration's workforce development strategy
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
IGGE1 Understanding the Self1234567891011
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
My India Quiz Book_20210205121199924.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
Computer Architecture Input Output Memory.pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Unit 4 Computer Architecture Multicore Processor.pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
Trump Administration's workforce development strategy
LDMMIA Reiki Yoga Finals Review Spring Summer
FORM 1 BIOLOGY MIND MAPS and their schemes
IGGE1 Understanding the Self1234567891011
TNA_Presentation-1-Final(SAVE)) (1).pptx
Chinmaya Tiranga quiz Grand Finale.pdf
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
AI-driven educational solutions for real-life interventions in the Philippine...
My India Quiz Book_20210205121199924.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Computer Architecture Input Output Memory.pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf

VISUAL REALITY [Chapter 3 - transforming shapes]

  • 1. Prepared By : NURAINI MOHD GHANI
  • 2. Using coordinate systems A VRML file builds components for a world A file's world components are built in the file's world coordinate system By default, all shapes are built at the origin of the world coordinate system Prepared By : NURAINI MOHD GHANI
  • 3. Prepared By : NURAINI MOHD GHANI XYZ axes and a simple shape XYZ axes and a complex shape
  • 4. A transform creates a coordinate system that is Positioned Rotated Scaled relative to a parent coordinate system Shapes built in the new coordinate system are positioned, rotated, and scaled along with it Prepared By : NURAINI MOHD GHANI
  • 5. The Transform group node creates a group with its own coordinate system translation - position rotation - orientation scale - size children - shapes to build Transform { translation . . . rotation . . . scale . . . children [ . . . ] } Prepared By : NURAINI MOHD GHANI
  • 6. The children field includes a list of one or more nodes Transform { . . . children [ Shape { . . . } Shape { . . . } Transform { . . . } . . . ] } Prepared By : NURAINI MOHD GHANI
  • 7. Translation positions a coordinate system in X, Y, and Z Transform { # X Y Z translation 2.0 0.0 0.0 children [ . . . ] } Prepared By : NURAINI MOHD GHANI
  • 8. Prepared By : NURAINI MOHD GHANI World coordinate system New coordinate system, translated 2.0 units in X
  • 9. Prepared By : NURAINI MOHD GHANI Shape built in new coordinate system
  • 10. Rotation orients a coordinate system about a rotation axis by a rotation angle Angles are measured in radians radians = degrees / 180.0 * 3.141 Transform { # X Y Z Angle rotation 0.0 0.0 1.0 0.52 children [ . . . ] } Prepared By : NURAINI MOHD GHANI
  • 11. A rotation axis defines a pole to rotate around Like the Earth's North-South pole Typical rotations are about the X, Y, or Z axes: Prepared By : NURAINI MOHD GHANI
  • 12. Prepared By : NURAINI MOHD GHANI World coordinate system New coordinate system, rotated 30.0 degrees around Z
  • 13. Prepared By : NURAINI MOHD GHANI Shape built in new coordinate system
  • 14. Positive rotations are counter-clockwise To help remember positive and negative rotation directions: Open your hand Stick out your thumb Aim your thumb in an axis positive direction Curl your fingers around the axis The curl direction is a positive rotation Prepared By : NURAINI MOHD GHANI
  • 15. Prepared By : NURAINI MOHD GHANI X-axis rotation Y-axis rotation
  • 16. Prepared By : NURAINI MOHD GHANI Z-axis rotation
  • 17. Scale grows or shrinks a coordinate system by a scaling factor in X, Y, and Z Transform { # X Y Z scale 0.5 0.5 0.5 children [ . . . ] } Prepared By : NURAINI MOHD GHANI
  • 18. Prepared By : NURAINI MOHD GHANI World coordinate system New coordinate system, scaled by half
  • 19. Prepared By : NURAINI MOHD GHANI Shape built in new coordinate system
  • 20. Scale , Rotate , and Translate a coordinate system, one after the other Transform { translation 2.0 0.0 0.0 rotation 0.0 0.0 1.0 0.52 scale 0.5 0.5 0.5 children [ . . . ] } Read operations bottom-up : The children are scaled, rotated, then translated Order is fixed, independent of field order Prepared By : NURAINI MOHD GHANI
  • 21. Prepared By : NURAINI MOHD GHANI World coordinate system New coordinate system, scaled by half, rotated 30.0 degrees around Z, and translated 2.0 units in X
  • 22. Transform { translation -2.0 -1.0 0.0 children [ Shape { appearance Appearance { material Material { } } geometry Cylinder { radius 0.3 height 6.0 top FALSE } } ] } . . . Prepared By : NURAINI MOHD GHANI
  • 23. All shapes are built in a coordinate system The Transform node creates a new coordinate system relative to its parent Transform node fields do translation rotation scale Prepared By : NURAINI MOHD GHANI