SlideShare a Scribd company logo
PREPARED BY : NURAINI MOHD GHANI   1
Shapes are the building blocks of a VRML world
Primitive Shapes are standard building blocks:

•Box
•Cone
•Cylinder
•Sphere
•Text



            PREPARED BY : NURAINI MOHD GHANI   2
Syntax: Shape

A Shape node builds a shape

appearance - color and texture
geometry - form, or structure
shape {
     appearance . . .
     geometry . . .
}
          PREPARED BY : NURAINI MOHD GHANI   3
Specifying appearance

Shape appearance is described by appearance nodes
For now, we'll use nodes to create a shaded white
   appearance:

Shape {
     appearance Appearance {
     material Material { }
  }
     geometry . . .
}
          PREPARED BY : NURAINI MOHD GHANI   4
Specifying geometry:

    Shape geometry is built with geometry nodes:
            Box    {...}
            Cone { . . . }
            Cylinder { . . . }
            Sphere { . . . }
            Text { . . . }

•   Geometry node fields control dimensions
•   Dimensions usually in meters, but can be anything
            PREPARED BY : NURAINI MOHD GHANI       5
Syntax: Box

A Box geometry node builds a box
size - width, height, depth

Shape {
      appearance Appearance {
      material Material { }
       }
      geometry Box {
      size 2.0 2.0 2.0
   }
}
              PREPARED BY : NURAINI MOHD GHANI   6
Syntax: Cone
•  A Cone geometry node builds an upright cone
•  height and bottomRadius - cylinder size
•  bottom and side - parts on or off
Shape {
 appearance Appearance {
        material Material { }
        }
        geometry Cone {
         height 2.0
        bottomRadius 1.0
        bottom TRUE
        side TRUE
        }
}
              PREPARED BY : NURAINI MOHD GHANI   7
Syntax: Cylinder
•  A Cylinder geometry node builds an upright cylinder
•  height and radius - cylinder size
•  bottom, top, and side - parts on or off

Shape {
           appearance Appearance {
          material Material { }
          }
          geometry Cylinder {
          height 2.0
          radius 1.0
           bottom TRUE
          top TRUE
          side TRUE
 }
}                PREPARED BY : NURAINI MOHD GHANI        8
Syntax: Sphere
•  A Sphere geometry node builds a sphere
•  radius - sphere radius

Shape {
      appearance Appearance {
      material Material { }
   }
      geometry Sphere {
      radius 1.0
   }
}


            PREPARED BY : NURAINI MOHD GHANI   9
Syntax: Text
•  A Text geometry node builds text
•  string - text to build
•  fontStyle - font control

Shape {
          appearance Appearance {
          material Material { }
          }
          geometry Text {
           string [ "Text","Shape" ]
          fontStyle FontStyle {
          style "BOLD"
          }
          }
}


                 PREPARED BY : NURAINI MOHD GHANI   10
#VRML V2.0 utf8
# A cylinder
Shape {
     appearance Appearance {
     material Material { }
  }
     geometry Cylinder {
     height 2.0
     radius 1.5
  }
  }
         PREPARED BY : NURAINI MOHD GHANI   11
•   Shapes are built centered in the world
•   A VRML file can contain multiple
    shapes
•   Shapes overlap when built at the
    same location




          PREPARED BY : NURAINI MOHD GHANI   12
 Shapes are built using a Shape node
 Shape geometry is built using geometry
  nodes, such as Box, Cone, Cylinder,
  Sphere, and Text
 ·Text fonts are controlled using a
  FontStyle node




        PREPARED BY : NURAINI MOHD GHANI   13

More Related Content

PPT
5.1 css box model
PPTX
Css box-model
PDF
Css box model
PPT
математическая сказка
PPTX
Rajzok készítése android rendszerben
PPTX
Hannah Lingle POL
PDF
Janvaris ru 2012
PPTX
Aciv summit slides
5.1 css box model
Css box-model
Css box model
математическая сказка
Rajzok készítése android rendszerben
Hannah Lingle POL
Janvaris ru 2012
Aciv summit slides

Viewers also liked (20)

PPTX
Shian carter's pol
PPTX
Paris con la family
PPTX
Critique 1
PPTX
звіт
PDF
Slaidi premium medical_ru_septembris
PDF
P med.febr lv
DOC
вересень
PPT
Presentation Slide
PPT
Diavolo 2016
PPTX
Chambar hashv.
PPTX
Mentor
PDF
особое предложение клиники Premium medical в апреле 2013 года
PPTX
Using Collaboration Tools To Engage Internal And External Audiences
PDF
Predlozhenije 06.2011
PPT
видение, миссия, цели и внутренние ограничения
PPT
Presentazione mattia quint e cecco web
PDF
Mobile Comm. - 3G Questions 4
PDF
Mobile Comm. - 3G Questions 1
PPT
8 ca - games
Shian carter's pol
Paris con la family
Critique 1
звіт
Slaidi premium medical_ru_septembris
P med.febr lv
вересень
Presentation Slide
Diavolo 2016
Chambar hashv.
Mentor
особое предложение клиники Premium medical в апреле 2013 года
Using Collaboration Tools To Engage Internal And External Audiences
Predlozhenije 06.2011
видение, миссия, цели и внутренние ограничения
Presentazione mattia quint e cecco web
Mobile Comm. - 3G Questions 4
Mobile Comm. - 3G Questions 1
8 ca - games
Ad

More from Nuraini Mohd Ghani (11)

PPTX
Chapter 4 - Human Capabilities : Conceptual Models
PPT
VISUAL REALITY [Chapter 3 - transforming shapes]
PDF
FUNDAMENTAL OF GRAPHIC DESIGN - assignment I
PDF
VISUAL REALITY AND VRML - Assignment Presentation
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
Chapter 1 principle and guidlines
PDF
E headline2010 - Presentation Seminar
ODP
Nuraini mohd ghani 1071120119
Chapter 4 - Human Capabilities : Conceptual Models
VISUAL REALITY [Chapter 3 - transforming shapes]
FUNDAMENTAL OF GRAPHIC DESIGN - assignment I
VISUAL REALITY AND VRML - Assignment Presentation
Chapter 1 - INTRODUCTION TO VRML
Human computer interaction - assignment presentation
Chapter 3 memory and learning
Chapter 2 human capabilities, input output systems
Chapter 1 principle and guidlines
E headline2010 - Presentation Seminar
Nuraini mohd ghani 1071120119
Ad

Recently uploaded (20)

PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Empowerment Technology for Senior High School Guide
PPTX
20th Century Theater, Methods, History.pptx
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
Computer Architecture Input Output Memory.pptx
PDF
Trump Administration's workforce development strategy
PPTX
Introduction to pro and eukaryotes and differences.pptx
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Complications of Minimal Access-Surgery.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Hazard Identification & Risk Assessment .pdf
B.Sc. DS Unit 2 Software Engineering.pptx
Empowerment Technology for Senior High School Guide
20th Century Theater, Methods, History.pptx
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Cambridge-Practice-Tests-for-IELTS-12.docx
Share_Module_2_Power_conflict_and_negotiation.pptx
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Computer Architecture Input Output Memory.pptx
Trump Administration's workforce development strategy
Introduction to pro and eukaryotes and differences.pptx
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
Complications of Minimal Access-Surgery.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
AI-driven educational solutions for real-life interventions in the Philippine...
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Hazard Identification & Risk Assessment .pdf

VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES]

  • 1. PREPARED BY : NURAINI MOHD GHANI 1
  • 2. Shapes are the building blocks of a VRML world Primitive Shapes are standard building blocks: •Box •Cone •Cylinder •Sphere •Text PREPARED BY : NURAINI MOHD GHANI 2
  • 3. Syntax: Shape A Shape node builds a shape appearance - color and texture geometry - form, or structure shape { appearance . . . geometry . . . } PREPARED BY : NURAINI MOHD GHANI 3
  • 4. Specifying appearance Shape appearance is described by appearance nodes For now, we'll use nodes to create a shaded white appearance: Shape { appearance Appearance { material Material { } } geometry . . . } PREPARED BY : NURAINI MOHD GHANI 4
  • 5. Specifying geometry: Shape geometry is built with geometry nodes: Box {...} Cone { . . . } Cylinder { . . . } Sphere { . . . } Text { . . . } • Geometry node fields control dimensions • Dimensions usually in meters, but can be anything PREPARED BY : NURAINI MOHD GHANI 5
  • 6. Syntax: Box A Box geometry node builds a box size - width, height, depth Shape { appearance Appearance { material Material { } } geometry Box { size 2.0 2.0 2.0 } } PREPARED BY : NURAINI MOHD GHANI 6
  • 7. Syntax: Cone • A Cone geometry node builds an upright cone • height and bottomRadius - cylinder size • bottom and side - parts on or off Shape { appearance Appearance { material Material { } } geometry Cone { height 2.0 bottomRadius 1.0 bottom TRUE side TRUE } } PREPARED BY : NURAINI MOHD GHANI 7
  • 8. Syntax: Cylinder • A Cylinder geometry node builds an upright cylinder • height and radius - cylinder size • bottom, top, and side - parts on or off Shape { appearance Appearance { material Material { } } geometry Cylinder { height 2.0 radius 1.0 bottom TRUE top TRUE side TRUE } } PREPARED BY : NURAINI MOHD GHANI 8
  • 9. Syntax: Sphere • A Sphere geometry node builds a sphere • radius - sphere radius Shape { appearance Appearance { material Material { } } geometry Sphere { radius 1.0 } } PREPARED BY : NURAINI MOHD GHANI 9
  • 10. Syntax: Text • A Text geometry node builds text • string - text to build • fontStyle - font control Shape { appearance Appearance { material Material { } } geometry Text { string [ "Text","Shape" ] fontStyle FontStyle { style "BOLD" } } } PREPARED BY : NURAINI MOHD GHANI 10
  • 11. #VRML V2.0 utf8 # A cylinder Shape { appearance Appearance { material Material { } } geometry Cylinder { height 2.0 radius 1.5 } } PREPARED BY : NURAINI MOHD GHANI 11
  • 12. Shapes are built centered in the world • A VRML file can contain multiple shapes • Shapes overlap when built at the same location PREPARED BY : NURAINI MOHD GHANI 12
  • 13.  Shapes are built using a Shape node  Shape geometry is built using geometry nodes, such as Box, Cone, Cylinder, Sphere, and Text  ·Text fonts are controlled using a FontStyle node PREPARED BY : NURAINI MOHD GHANI 13