SlideShare ist ein Scribd-Unternehmen logo
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?

Was ist angesagt? (20)

NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들
NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들
NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들
 
Java OCA teoria 4
Java OCA teoria 4Java OCA teoria 4
Java OCA teoria 4
 
Developing AR and VR Experiences with Unity
Developing AR and VR Experiences with UnityDeveloping AR and VR Experiences with Unity
Developing AR and VR Experiences with Unity
 
언리얼4 플레이어 컨트롤러의 이해.
언리얼4 플레이어 컨트롤러의 이해.언리얼4 플레이어 컨트롤러의 이해.
언리얼4 플레이어 컨트롤러의 이해.
 
Unity XR platform has a new architecture – Unite Copenhagen 2019
Unity XR platform has a new architecture – Unite Copenhagen 2019Unity XR platform has a new architecture – Unite Copenhagen 2019
Unity XR platform has a new architecture – Unite Copenhagen 2019
 
레퍼런스만 알면 언리얼 엔진이 제대로 보인다
레퍼런스만 알면 언리얼 엔진이 제대로 보인다레퍼런스만 알면 언리얼 엔진이 제대로 보인다
레퍼런스만 알면 언리얼 엔진이 제대로 보인다
 
Opengl presentation
Opengl presentationOpengl presentation
Opengl presentation
 
OpenGL ES 3.1 Reference Card
OpenGL ES 3.1 Reference CardOpenGL ES 3.1 Reference Card
OpenGL ES 3.1 Reference Card
 
CORBA - Introduction and Details
CORBA - Introduction and DetailsCORBA - Introduction and Details
CORBA - Introduction and Details
 
유니티에서 MMD 사용해보기
유니티에서 MMD 사용해보기유니티에서 MMD 사용해보기
유니티에서 MMD 사용해보기
 
2009-2016 기본기(손맵)의 중요성
2009-2016 기본기(손맵)의 중요성2009-2016 기본기(손맵)의 중요성
2009-2016 기본기(손맵)의 중요성
 
GDC Europe 2014: Unreal Engine 4 for Programmers - Lessons Learned & Things t...
GDC Europe 2014: Unreal Engine 4 for Programmers - Lessons Learned & Things t...GDC Europe 2014: Unreal Engine 4 for Programmers - Lessons Learned & Things t...
GDC Europe 2014: Unreal Engine 4 for Programmers - Lessons Learned & Things t...
 
Android Components
Android ComponentsAndroid Components
Android Components
 
프레임레이트 향상을 위한 공간분할 및 오브젝트 컬링 기법
프레임레이트 향상을 위한 공간분할 및 오브젝트 컬링 기법프레임레이트 향상을 위한 공간분할 및 오브젝트 컬링 기법
프레임레이트 향상을 위한 공간분할 및 오브젝트 컬링 기법
 
COMP 4010 Lecture10: AR Tracking
COMP 4010 Lecture10: AR TrackingCOMP 4010 Lecture10: AR Tracking
COMP 4010 Lecture10: AR Tracking
 
Intro to unreal with framework and vr
Intro to unreal with framework and vrIntro to unreal with framework and vr
Intro to unreal with framework and vr
 
Lecture 5: 3D User Interfaces for Virtual Reality
Lecture 5: 3D User Interfaces for Virtual RealityLecture 5: 3D User Interfaces for Virtual Reality
Lecture 5: 3D User Interfaces for Virtual Reality
 
Making VR games and experiences in Unreal Engine
Making VR games and experiences in Unreal EngineMaking VR games and experiences in Unreal Engine
Making VR games and experiences in Unreal Engine
 
Developing VR Experiences with Unity
Developing VR Experiences with UnityDeveloping VR Experiences with Unity
Developing VR Experiences with Unity
 
Voxelizaition with GPU
Voxelizaition with GPUVoxelizaition with GPU
Voxelizaition with GPU
 

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)

INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 

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