SlideShare ist ein Scribd-Unternehmen logo
1 von 16
PREPARED BY : NURAINI MOHD GHANI   1
The ISO standard revision of VRML 2.0

You will learn:
1. VRML file structure
2. Concepts and terminology
3. Most shape building syntax
4. Most sensor and animation syntax
5. Most program scripting syntax
         PREPARED BY : NURAINI MOHD GHANI   2
VRML is:
A   simple text language for
  describing 3-D shapes and
  interactive environments
 VRML text files use a .wrl extension




           PREPARED BY : NURAINI MOHD GHANI   3
You can view VRML files using a VRML
  browser:

   *A VRML helper-application
   *A VRML plug-in to an HTML browser
   *You can view VRML files from your
 local hard disk, or from the Internet

        PREPARED BY : NURAINI MOHD GHANI   4
You can construct VRML files using:

•   A text editor
•   A world builder application
•   A 3D modeler and format translator
•   A shape generator (like a Perl script)


          PREPARED BY : NURAINI MOHD GHANI   5
Pro:
• No new software to buy
• Access to all VRML features
• Detailed control of world efficiency


Cons:
• Hard to author complex 3D shapes
• Requires knowledge of VRML syntax
         PREPARED BY : NURAINI MOHD GHANI   6
Pro:
 Easy 3-D drawing and animating user
  interface
 Little need to learn VRML syntax


Cons:
 May not support all VRML features
 May not produce most efficient VRML

        PREPARED BY : NURAINI MOHD GHANI   7
Pro:
 Very powerful drawing and animating features
Can make photo-realistic images too

Cons:
 May not support all VRML features
 May not produce most efficient VRML
 Not designed for VRML
 Often a one-way path from 3D modeler into
  VRML
 Easy to make shapes that are too complex

         PREPARED BY : NURAINI MOHD GHANI   8
Pro:
 Easy way to generate complex shapes
 Fractal mountains, logos, etc.
 Generate VRML from CGI Perl scripts
 Extend science applications to generate
  VRML

Cons:
 Only suitable for narrow set of shapes
 Best used with other software

          PREPARED BY : NURAINI MOHD GHANI   9
VRML file structure

VRML files contain:
 The file header
 Comments - notes to yourself
 Nodes - nuggets of scene information
 Fields - node attributes you can change
 Values - attribute values
         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
#VRML V2.0 utf8
#VRML: File contains VRML text
V2.0 : Text conforms to version 2.0 syntax
utf8 : Text uses UTF8 character set

Understanding UTF8
• utf8 is an international character set standard
• utf8 stands for:
• UCS (Universal Character Set) Transformation Format,
  8-bit
• Encodes 24,000+ characters for many languages
• ASCII is a subset


            PREPARED BY : NURAINI MOHD GHANI     12
Using comments
# A Cylinder
Comments start with a number-sign (#) and extend to
   the end of the line

Using nodes
Cylinder {
}
• Nodes describe shapes, lights, sounds, etc.
• Every node has:
• A node type (Shape, Cylinder, etc.)
• A pair of curly-braces
• Zero or more fields inside the curly-braces
            PREPARED BY : NURAINI MOHD GHANI    13
•   Node type names are case sensitive
•   Each word starts with an upper-case character
•   The rest of the word is lower-case

 Some examples:
1.  Appearance
2.  Cylinder
3.  Material
4.  Shape
5.  ElevationGrid
6.  FontStyle
7.  ImageTexture
8.  IndexedFaceSet

             PREPARED BY : NURAINI MOHD GHANI       14
 Different node types have different fields
 Fields are optional
 A default value is used if a field is not
  given
 Fields can be listed in any order
 The order doesn't affect the node




         PREPARED BY : NURAINI MOHD GHANI   15
•   The file header gives the version and
    encoding
•   Nodes describe scene content
•   Fields and values specify node
    attributes
•   Everything is case sensitive



          PREPARED BY : NURAINI MOHD GHANI   16

Weitere ähnliche Inhalte

Was ist angesagt?

Lecture 6 introduction to open gl and glut
Lecture 6   introduction to open gl and glutLecture 6   introduction to open gl and glut
Lecture 6 introduction to open gl and glut
simpleok
 
Design patterns ppt
Design patterns pptDesign patterns ppt
Design patterns ppt
Aman Jain
 

Was ist angesagt? (20)

Client-side JavaScript
Client-side JavaScriptClient-side JavaScript
Client-side JavaScript
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
ppt on region segmentation by AJAY KUMAR SINGH (NITK)
ppt on region segmentation by AJAY KUMAR SINGH (NITK)ppt on region segmentation by AJAY KUMAR SINGH (NITK)
ppt on region segmentation by AJAY KUMAR SINGH (NITK)
 
Depth Buffer Method
Depth Buffer MethodDepth Buffer Method
Depth Buffer Method
 
Computer Graphics (Hidden surfaces and line removal, Curves and surfaces, Sur...
Computer Graphics (Hidden surfaces and line removal, Curves and surfaces, Sur...Computer Graphics (Hidden surfaces and line removal, Curves and surfaces, Sur...
Computer Graphics (Hidden surfaces and line removal, Curves and surfaces, Sur...
 
Lecture 6 introduction to open gl and glut
Lecture 6   introduction to open gl and glutLecture 6   introduction to open gl and glut
Lecture 6 introduction to open gl and glut
 
Intelligent Image Enhancement and Restoration - From Prior Driven Model to Ad...
Intelligent Image Enhancement and Restoration - From Prior Driven Model to Ad...Intelligent Image Enhancement and Restoration - From Prior Driven Model to Ad...
Intelligent Image Enhancement and Restoration - From Prior Driven Model to Ad...
 
Domain model
Domain modelDomain model
Domain model
 
JAVA AWT
JAVA AWTJAVA AWT
JAVA AWT
 
Design patterns ppt
Design patterns pptDesign patterns ppt
Design patterns ppt
 
Chapter Ten
Chapter TenChapter Ten
Chapter Ten
 
php
phpphp
php
 
Character attributes
Character attributesCharacter attributes
Character attributes
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
Ch 11-component-level-design
Ch 11-component-level-designCh 11-component-level-design
Ch 11-component-level-design
 
Open gl
Open glOpen gl
Open gl
 
Virtual Reality Modeling Language
Virtual Reality Modeling LanguageVirtual Reality Modeling Language
Virtual Reality Modeling Language
 
Raster scan systems with video controller and display processor
Raster scan systems with video controller and display processorRaster scan systems with video controller and display processor
Raster scan systems with video controller and display processor
 
line attributes.pptx
line attributes.pptxline attributes.pptx
line attributes.pptx
 
Chapter 3: ado.net
Chapter 3: ado.netChapter 3: ado.net
Chapter 3: ado.net
 

Andere mochten auch

KU7 | kuvareportaasi | Heidi Bergström
KU7 | kuvareportaasi  | Heidi BergströmKU7 | kuvareportaasi  | Heidi Bergström
KU7 | kuvareportaasi | Heidi Bergström
Pohjois-Tapiolan lukio
 
The new world_society__1953_-_convention_report_
The new world_society__1953_-_convention_report_The new world_society__1953_-_convention_report_
The new world_society__1953_-_convention_report_
ourbothy
 
Azinternettrtnete 120312140342-phpapp01
Azinternettrtnete 120312140342-phpapp01Azinternettrtnete 120312140342-phpapp01
Azinternettrtnete 120312140342-phpapp01
Róbert Moór
 
[[ Terevatap ]]
[[ Terevatap ]][[ Terevatap ]]
[[ Terevatap ]]
67gayane
 
Slaidi premium medical_ru_aprilis
Slaidi premium medical_ru_aprilisSlaidi premium medical_ru_aprilis
Slaidi premium medical_ru_aprilis
PremiumMedical
 
Just Us Two Photo Gallery
Just Us Two Photo GalleryJust Us Two Photo Gallery
Just Us Two Photo Gallery
us2photo
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentation
67gayane
 

Andere mochten auch (20)

2. donah presentation1
2. donah  presentation12. donah  presentation1
2. donah presentation1
 
Vrml
VrmlVrml
Vrml
 
Presentation
PresentationPresentation
Presentation
 
Vrml, or There and Back Again
Vrml, or There and Back AgainVrml, or There and Back Again
Vrml, or There and Back Again
 
Vrml Virtual Reality Modeling Language
Vrml Virtual Reality Modeling LanguageVrml Virtual Reality Modeling Language
Vrml Virtual Reality Modeling Language
 
Unit iv
Unit ivUnit iv
Unit iv
 
3 d internet
3 d internet3 d internet
3 d internet
 
Seminar_3D INTERNET
Seminar_3D INTERNETSeminar_3D INTERNET
Seminar_3D INTERNET
 
Presentation of contents page images
Presentation of contents page imagesPresentation of contents page images
Presentation of contents page images
 
KU7 | kuvareportaasi | Heidi Bergström
KU7 | kuvareportaasi  | Heidi BergströmKU7 | kuvareportaasi  | Heidi Bergström
KU7 | kuvareportaasi | Heidi Bergström
 
The new world_society__1953_-_convention_report_
The new world_society__1953_-_convention_report_The new world_society__1953_-_convention_report_
The new world_society__1953_-_convention_report_
 
Maija piedavajums lv
Maija piedavajums lvMaija piedavajums lv
Maija piedavajums lv
 
Critique 1
Critique 1Critique 1
Critique 1
 
Azinternettrtnete 120312140342-phpapp01
Azinternettrtnete 120312140342-phpapp01Azinternettrtnete 120312140342-phpapp01
Azinternettrtnete 120312140342-phpapp01
 
[[ Terevatap ]]
[[ Terevatap ]][[ Terevatap ]]
[[ Terevatap ]]
 
3 ca - homer
3   ca - homer3   ca - homer
3 ca - homer
 
Wislava 2013 web
Wislava 2013 webWislava 2013 web
Wislava 2013 web
 
Slaidi premium medical_ru_aprilis
Slaidi premium medical_ru_aprilisSlaidi premium medical_ru_aprilis
Slaidi premium medical_ru_aprilis
 
Just Us Two Photo Gallery
Just Us Two Photo GalleryJust Us Two Photo Gallery
Just Us Two Photo Gallery
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentation
 

Ähnlich wie Chapter 1 - INTRODUCTION TO VRML

Ähnlich wie Chapter 1 - INTRODUCTION TO VRML (20)

Frameworks choice
Frameworks choiceFrameworks choice
Frameworks choice
 
Direct3D to WPF
Direct3D to WPFDirect3D to WPF
Direct3D to WPF
 
The Ring programming language version 1.4.1 book - Part 2 of 31
The Ring programming language version 1.4.1 book - Part 2 of 31The Ring programming language version 1.4.1 book - Part 2 of 31
The Ring programming language version 1.4.1 book - Part 2 of 31
 
Domain-Specific Languages for Product Modeling (CWG 2011 Cologne, SAP Configu...
Domain-Specific Languages for Product Modeling (CWG 2011 Cologne, SAP Configu...Domain-Specific Languages for Product Modeling (CWG 2011 Cologne, SAP Configu...
Domain-Specific Languages for Product Modeling (CWG 2011 Cologne, SAP Configu...
 
Glimworm 21-11-2013
Glimworm 21-11-2013Glimworm 21-11-2013
Glimworm 21-11-2013
 
The Ring programming language version 1.4 book - Part 2 of 30
The Ring programming language version 1.4 book - Part 2 of 30The Ring programming language version 1.4 book - Part 2 of 30
The Ring programming language version 1.4 book - Part 2 of 30
 
Montreal.rb 2022-10-05 - Glimmer DSL for SWT - Ruby Desktop Development GUI ...
 Montreal.rb 2022-10-05 - Glimmer DSL for SWT - Ruby Desktop Development GUI ... Montreal.rb 2022-10-05 - Glimmer DSL for SWT - Ruby Desktop Development GUI ...
Montreal.rb 2022-10-05 - Glimmer DSL for SWT - Ruby Desktop Development GUI ...
 
Servo in 2023
Servo in 2023Servo in 2023
Servo in 2023
 
Engineering Frontends
Engineering FrontendsEngineering Frontends
Engineering Frontends
 
RSA SF Conference talk-2009-ht2-401 sallam
RSA SF Conference talk-2009-ht2-401 sallamRSA SF Conference talk-2009-ht2-401 sallam
RSA SF Conference talk-2009-ht2-401 sallam
 
Win rt fundamentals
Win rt fundamentalsWin rt fundamentals
Win rt fundamentals
 
Windows Phone 8 App Development
Windows Phone 8 App DevelopmentWindows Phone 8 App Development
Windows Phone 8 App Development
 
Servo: A Web View From Somewhere Else
Servo: A Web View From Somewhere ElseServo: A Web View From Somewhere Else
Servo: A Web View From Somewhere Else
 
Non-Blocking Strategies for FFI
 Non-Blocking Strategies for FFI Non-Blocking Strategies for FFI
Non-Blocking Strategies for FFI
 
Compilation Of C/C++ program in Android
Compilation Of C/C++ program in AndroidCompilation Of C/C++ program in Android
Compilation Of C/C++ program in Android
 
Glimworm 21 11-13 (1)
Glimworm 21 11-13 (1)Glimworm 21 11-13 (1)
Glimworm 21 11-13 (1)
 
Maximizing code reuse between Windows Phone 8 and Windows 8 (DevTeach Toronto...
Maximizing code reuse between Windows Phone 8 and Windows 8 (DevTeach Toronto...Maximizing code reuse between Windows Phone 8 and Windows 8 (DevTeach Toronto...
Maximizing code reuse between Windows Phone 8 and Windows 8 (DevTeach Toronto...
 
C# everywhere: Xamarin and cross platform development
C# everywhere: Xamarin and cross platform developmentC# everywhere: Xamarin and cross platform development
C# everywhere: Xamarin and cross platform development
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?
 

Mehr von Nuraini Mohd Ghani

VISUAL REALITY [Chapter 3 - transforming shapes]
VISUAL REALITY [Chapter 3 - transforming shapes]VISUAL REALITY [Chapter 3 - transforming shapes]
VISUAL REALITY [Chapter 3 - transforming shapes]
Nuraini Mohd Ghani
 
E headline2010 - Presentation Seminar
E headline2010 - Presentation SeminarE headline2010 - Presentation Seminar
E headline2010 - Presentation Seminar
Nuraini Mohd Ghani
 

Mehr von Nuraini Mohd Ghani (12)

Chapter 4 - Human Capabilities : Conceptual Models
Chapter 4 - Human Capabilities : Conceptual ModelsChapter 4 - Human Capabilities : Conceptual Models
Chapter 4 - Human Capabilities : Conceptual Models
 
VISUAL REALITY [Chapter 3 - transforming shapes]
VISUAL REALITY [Chapter 3 - transforming shapes]VISUAL REALITY [Chapter 3 - transforming shapes]
VISUAL REALITY [Chapter 3 - transforming shapes]
 
FUNDAMENTAL OF GRAPHIC DESIGN - assignment I
FUNDAMENTAL OF GRAPHIC DESIGN - assignment IFUNDAMENTAL OF GRAPHIC DESIGN - assignment I
FUNDAMENTAL OF GRAPHIC DESIGN - assignment I
 
VISUAL REALITY AND VRML - Assignment Presentation
VISUAL REALITY AND VRML - Assignment PresentationVISUAL REALITY AND VRML - Assignment Presentation
VISUAL REALITY AND VRML - Assignment Presentation
 
VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES]
VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES]VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES]
VISUAL REALITY AND VRML [Chapter 2 - BUILDING PRIMITIVE SHAPES]
 
Human computer interaction - assignment presentation
Human computer interaction  - assignment presentationHuman computer interaction  - assignment presentation
Human computer interaction - assignment presentation
 
Chapter 3 memory and learning
Chapter 3   memory and learningChapter 3   memory and learning
Chapter 3 memory and learning
 
Chapter 2 human capabilities, input output systems
Chapter 2   human capabilities, input output systemsChapter 2   human capabilities, input output systems
Chapter 2 human capabilities, input output systems
 
Chapter 1 principle and guidlines
Chapter 1   principle and guidlinesChapter 1   principle and guidlines
Chapter 1 principle and guidlines
 
E headline2010 - Presentation Seminar
E headline2010 - Presentation SeminarE headline2010 - Presentation Seminar
E headline2010 - Presentation Seminar
 
Presentation Slide
Presentation SlidePresentation Slide
Presentation Slide
 
Nuraini mohd ghani 1071120119
Nuraini mohd ghani   1071120119Nuraini mohd ghani   1071120119
Nuraini mohd ghani 1071120119
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Chapter 1 - INTRODUCTION TO VRML

  • 1. PREPARED BY : NURAINI MOHD GHANI 1
  • 2. The ISO standard revision of VRML 2.0 You will learn: 1. VRML file structure 2. Concepts and terminology 3. Most shape building syntax 4. Most sensor and animation syntax 5. Most program scripting syntax PREPARED BY : NURAINI MOHD GHANI 2
  • 3. VRML is: A simple text language for describing 3-D shapes and interactive environments  VRML text files use a .wrl extension PREPARED BY : NURAINI MOHD GHANI 3
  • 4. You can view VRML files using a VRML browser: *A VRML helper-application *A VRML plug-in to an HTML browser *You can view VRML files from your local hard disk, or from the Internet PREPARED BY : NURAINI MOHD GHANI 4
  • 5. You can construct VRML files using: • A text editor • A world builder application • A 3D modeler and format translator • A shape generator (like a Perl script) PREPARED BY : NURAINI MOHD GHANI 5
  • 6. Pro: • No new software to buy • Access to all VRML features • Detailed control of world efficiency Cons: • Hard to author complex 3D shapes • Requires knowledge of VRML syntax PREPARED BY : NURAINI MOHD GHANI 6
  • 7. Pro:  Easy 3-D drawing and animating user interface  Little need to learn VRML syntax Cons:  May not support all VRML features  May not produce most efficient VRML PREPARED BY : NURAINI MOHD GHANI 7
  • 8. Pro:  Very powerful drawing and animating features Can make photo-realistic images too Cons:  May not support all VRML features  May not produce most efficient VRML  Not designed for VRML  Often a one-way path from 3D modeler into VRML  Easy to make shapes that are too complex PREPARED BY : NURAINI MOHD GHANI 8
  • 9. Pro:  Easy way to generate complex shapes  Fractal mountains, logos, etc.  Generate VRML from CGI Perl scripts  Extend science applications to generate VRML Cons:  Only suitable for narrow set of shapes  Best used with other software PREPARED BY : NURAINI MOHD GHANI 9
  • 10. VRML file structure VRML files contain:  The file header  Comments - notes to yourself  Nodes - nuggets of scene information  Fields - node attributes you can change  Values - attribute values 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. #VRML V2.0 utf8 #VRML: File contains VRML text V2.0 : Text conforms to version 2.0 syntax utf8 : Text uses UTF8 character set Understanding UTF8 • utf8 is an international character set standard • utf8 stands for: • UCS (Universal Character Set) Transformation Format, 8-bit • Encodes 24,000+ characters for many languages • ASCII is a subset PREPARED BY : NURAINI MOHD GHANI 12
  • 13. Using comments # A Cylinder Comments start with a number-sign (#) and extend to the end of the line Using nodes Cylinder { } • Nodes describe shapes, lights, sounds, etc. • Every node has: • A node type (Shape, Cylinder, etc.) • A pair of curly-braces • Zero or more fields inside the curly-braces PREPARED BY : NURAINI MOHD GHANI 13
  • 14. Node type names are case sensitive • Each word starts with an upper-case character • The rest of the word is lower-case Some examples: 1. Appearance 2. Cylinder 3. Material 4. Shape 5. ElevationGrid 6. FontStyle 7. ImageTexture 8. IndexedFaceSet PREPARED BY : NURAINI MOHD GHANI 14
  • 15.  Different node types have different fields  Fields are optional  A default value is used if a field is not given  Fields can be listed in any order  The order doesn't affect the node PREPARED BY : NURAINI MOHD GHANI 15
  • 16. The file header gives the version and encoding • Nodes describe scene content • Fields and values specify node attributes • Everything is case sensitive PREPARED BY : NURAINI MOHD GHANI 16