HELP! * GREY=local Full HTML for LOCAL foilset Overview of VRML 1.0 Language with Examples
Given by Geoffrey C. Fox, Alvin Leung at CPS616 Basic Information Track for Computational Science on Winter-Spring Semester 96. Foils prepared 10 April 1996
Abstract * Foil Index for this file
See also color IMAGE
- VRML 1.0 resource is http://vrml.wired.com/vrml.tech/vrml10-3.html
- This presentation illustrates many but NOT all the VRML 1.0 nodes using some simple examples taken from
- http://sandman.npac.syr.edu:8880/vrmldemo.html
- where there is a car and 8 variants on a pyramid defined
- We juxtapose formal definitions of nodes with snippets of VRML from these exemplars
Table of Contents for full HTML of Overview of VRML 1.0 Language with Examples
1
CPS 616 January-April 1996 Computational Science Track on Base Technology for the Information Age:
VRML Language Basics
2
Abstract of Basic VRML for CPS616
3
History of VRML from wired VRML Site
4
Overview of VRML Language Details - I
5
Overview of VRML Language Details - II
6
General Structure of VRML
7
Coordinate System for VRML
8
The Types of Fields (attributes,properties) in VRML
9
The 12 SF and 4 MF Type Classes
10
SFColor SFLong SFFloat Basic Types
11
SFMatrix and SFRotation
12
SFEnum and SFString
13
SFVec2f and SFVec3f
14
SFImage Specification of Hexadecimal Representation
15
SFImage Specification Examples
16
MFColor and MFLong
17
MFVec2f and MFVec3f
18
The Nodes in VRML -- Overall Classes and Function
19
Coordinate System and How Fields are entered into Nodes in VRML
20
VRML Shape Nodes
21
VRML Property Nodes
22
VRML Group and "Other" Nodes
23
General Structure of a VRML Node
24
NPAC Online VRML Examples
25
The Eight Versions of a VRML Pyramid - I
26
The Eight Versions of a VRML Pyramid - II
27
The Start of Basic White Pyramid -- Separator and Material
28
VRML Material Node
29
VRML Separator Node I
30
VRML Separator Node II -- Formal Specification
31
Structure of the Pyramid with Coordinate3 and IndexedFaceSet - I
32
Structure of the Pyramid with Coordinate3 and IndexedFaceSet - II
33
VRML IndexedFaceSet Node I
34
VRML IndexedFaceSet Node II
35
VRML IndexedFaceSet Node III -- Formal Specification
36
Use of WWWAnchor Transform and WWWInline in Pyramid Demonstration
37
Notes on Use of WWWAnchor Transform and WWWInline in Pyramid Demonstration
38
VRML WWWAnchor Node I
39
VRML WWWAnchor Node II
40
VRML WWWAnchor Node III -- Formal Specification
41
VRML WWWInline Node - I
42
VRML WWWInline Node - II Formal Specification
43
VRML Transform Node I
44
The Transform Node is Equivalent to Several Other VRML Nodes Applied Together
45
VRML Rotation Node
46
Use of PerspectiveCamera in Pyramid Demonstration
47
VRML PerspectiveCamera Node - I
48
VRML PerspectiveCamera Node - Formal Specification
49
Use of Separator Transform DirectionalLight in Car Demonstration
50
VRML DirectionalLight Node
51
Use of ShapeHints in Pyramid - I
52
Use of ShapeHints in Pyramid - II
53
VRML ShapeHints Node I
54
VRML ShapeHints Node II
55
VRML ShapeHints Node III -- Formal Specification
56
VRML ShapeHints Node IV -- Formal Specification (contd)
57
Use of PER_VERTEX MaterialBinding in Pyramid Coloring - I
58
Use of PER_VERTEX MaterialBinding in Pyramid Coloring - II
59
VRML MaterialBinding Node - I
60
VRML MaterialBinding Node - II
61
VRML MaterialBinding Node - III
62
Use of PER_VERTEX_INDEXED MaterialBinding in Pyramid Coloring - I
63
Use of PER_VERTEX_INDEXED MaterialBinding in Pyramid Coloring - II
64
Use of PER_VERTEX_INDEXED MaterialBinding in Pyramid Coloring - III
65
Use of PER_FACE MaterialBinding in Pyramid Coloring - I
66
Use of PER_FACE MaterialBinding in Pyramid Coloring - II
67
Use of PER_FACE_INDEXED MaterialBinding in Pyramid Coloring - I
68
Use of Simple Texture Map in Pyramid Coloring
69
VRML Texture2 Node - I
70
VRML Texture2 Node - II Formal Specification
71
Use of TextureCoordinate2 in Pyramid Coloring - I
72
Use of TextureCoordinate2 in Pyramid Coloring - II
73
VRML TextureCoordinate2 Node
74
VRML Texture2Transform Node I
75
VRML Texture2Transform Node II Formal Specification
76
Definition of Wheel in Car Demonstration - I
77
Definition of Wheel in Car Demonstration - II
78
VRML Sphere Node - I
79
VRML Sphere Node -- Formal Specification
80
Definition of HeadLight in Car Demonstration - I
81
Definition of HeadLight in Car Demonstration - II
82
Definition of HeadLight in Car Demonstration - III
83
Definition of HeadLight in Car Demonstration - IV
84
VRML Cone Node - I
85
VRML Cone Node - II
86
VRML Cone Node - III
87
VRML PointLight Node - I
88
VRML PointLight Node - Formal Specification
89
VRML Cylinder Node - I
90
VRML Cylinder Node - II
91
VRML Cylinder Node Formal Specifications- III
92
AsciiText in Car Demonstration - I
93
AsciiText in Car Demonstration - II
94
AsciiText Node Type -- General Structure - I
95
AsciiText Node Type -- General Structure - II
96
AsciiText Node Type -- Formal Specification
97
VRML Level Of Detail LOD Node I
98
VRML Level Of Detail LOD Node II Formal Specification
This table of Contents
Abstract
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 1 CPS 616 January-April 1996 Computational Science Track on Base Technology for the Information Age:
VRML Language
Basics
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Instructor: Geoffrey Fox
- Aided by Alvin Leung for online resource
- Version 8 April 96
- Syracuse University
- 111 College Place
- Syracuse
- New York 13244-4100
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 2 Abstract of Basic VRML for CPS616
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- VRML 1.0 resource is http://vrml.wired.com/vrml.tech/vrml10-3.html
- This presentation illustrates many but NOT all the VRML 1.0 nodes using some simple examples taken from
- http://sandman.npac.syr.edu:8880/vrmldemo.html
- where there is a car and 8 variants on a pyramid defined
- We juxtapose formal definitions of nodes with snippets of VRML from these exemplars
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 3 History of VRML from wired VRML Site
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- VRML was conceived in the spring of 1994 at the first annual World Wide Web Conference in Geneva, Switzerland.
- Tim Berners-Lee and Dave Raggett organized a Birds-of-a-Feather (BOF) session to discuss Virtual Reality interfaces to the World Wide Web.
- Several BOF attendees described projects already underway to build three dimensional graphical visualization tools which interoperate with the Web.
- Attendees agreed on the need for these tools to have a common language for specifying 3D scene description and WWW hyperlinks -- an analog of HTML for virtual reality.
- The term Virtual Reality Markup Language (VRML) was coined, and the group resolved to begin specification work after the conference.
- The word 'Markup' was later changed to 'Modeling' to reflect the graphical nature of VRML.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 4 Overview of VRML Language Details - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- VRML defines scene graphs which are defined hierarchically as a set of nodes
- Nodes fall into one of 36 types arranged into broad classes -- shape, geometry/material, transformation, camera, lighting, group and WWWInline
- The state of a graph (color, position, rotation etc.) are "advanced" (e.g. transformation matrices are multiplied) when each node is encountered
- separators are used to limit the effect of a given node to a block defined by {}
- Thus the order in which nodes appear in file is very significant
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 5 Overview of VRML Language Details - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Node instances can be given names to allow them to be replicated or otherwise referenced
- Nodes have attributes (properties or parameters if you prefer) which are called fields
- Fields have names for specific node types which have mnemonic value
- However there are a set of global field types ( single or multiple(vector), floating or integer etc.) and each field is assigned a particular type and this implies format that must be used
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 6 General Structure of VRML
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Comments begin with # and all characters after this in line are ignored -- just like PERL
- VRML 1.0 files are currently ascii and stored as name.wrl
- i.e. .html specifies HTML and .wrl VRML files (.wrl abbreviates world)
- The MIME type for VRML is defined as x-world/x-vrml
- where x-world is MIME major type to indicate a 3D descriptor
- and minor type x-vrml indicates VRML 1.0
- A VRML file contains one and only one scene graph defined by ONE VRML node at top level
- This top level is likely to be a group node with lots of child nodes
- We will stick at VRML 1.0 and not discuss 1.1 as this is an intermediate stopping point to be overtaken by VRML 2.0 and so unlikely that set of VRML 1.1 browsers will exist before 2.0 takes over!
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 7 Coordinate System for VRML
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- VRML uses a cartesian, right-handed, 3-dimensional coordinate system.
- By default, objects are projected onto a 2-dimensional device by projecting them in the direction of the positive Z axis, with the positive X axis to the right and the positive Y axis up.
- A camera or modeling transformation may be used to alter this default projection.
- The standard unit for lengths and distances specified is meters.
- The standard unit for angles is radians.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 8 The Types of Fields (attributes,properties) in VRML
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Types of fields can be:
- Single Valued -- type name begins with SF
- Note single valued fields can have more than one number specifying value
- e.g. SFImage is a stream of white space separated bytes
- Multiple Valued -- type name begins with MF
- This is a vector of relevant SF types
- MF types are written
- [ v1, v2, v3 ... ]
- or v1 or [v1] if just one entry
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 9 The 12 SF and 4 MF Type Classes
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- SFBitMask, SFBool, SFColor, SFEnum, SFFloat, SFImage, SFlong, SFMatrix, SFRotation, SFString, SFVec2f, SFVec3f
- Note 2 and 3 dimensional vectors are defined as SF so that can join several such vectors together to define MF entity
- SFEnum corresponds to values from an enumerated list
- MFColor, MFLong, MFVec2f, MFVec3f
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 10 SFColor SFLong SFFloat Basic Types
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- SFColor e.g. 0. .5 .5 -- R G B written with blank separators
- A single-value field containing a color.
- SFColors are written to file as an RGB triple of floating point numbers in standard scientific notation, in the range 0.0 to 1.0.
- SFLong -- A field containing a single long (32-bit) integer.
- SFLongs are written to file as an integer in decimal, hexadecimal (beginning with '0x') or octal (beginning with '0') format.
- SFFloat -- A field that contains one single-precision floating point number.
- SFFloats are written to file in standard scientific notation.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 11 SFMatrix and SFRotation
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- SFMatrix -- A field containing a classic graphics 4 by 4 transformation matrix specifying 3 by 3 orthogonal transformation and a translation in 3 space.
- SFMatrices are written to file in row-major order as 16 floating point numbers separated by whitespace.
- For example, a matrix expressing a translation of 7.3 units along the X axis is written as:
- 1 0 0 0 0 1 0 0 0 0 1 0 7.3 0 0 1
- SFRotation -- A field containing an arbitrary rotation.
- SFRotations are written to file as four floating point values separated by whitespace.
- The 4 values represent an axis of rotation followed by the amount of right-handed rotation about that axis, in radians.
- For example, a 180 degree rotation about the Y axis is:
- 0 1 0 3.14159265
- x y z angle
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 12 SFEnum and SFString
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- SFEnum -- A single-value field that contains an enumerated type value.
- Nodes that use this field class define mnemonic names for the values.
- SFEnums are written to file as a mnemonic enumerated type name.
- The name differs among uses of this field in various node classes.
- SFString -- A field containing an ASCII string (sequence of characters).
- SFStrings are written to file as a sequence of ASCII characters in double quotes (optional if the string doesn't contain any whitespace).
- Any characters (including newlines) may appear within the quotes.
- As usual, to include a double quote character within the string, precede it with a backslash.
- For example valid strings are:
- Testing
- "One, Two, Three"
- "He said, \"Wise Words are uttered in CPS616!\""
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 13 SFVec2f and SFVec3f
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- SFVec2f -- Field containing a two-dimensional vector e.g. 3.72 7.6
- SFVec2fs are written to file as a pair of floating point values separated by whitespace.
- Note whitespace used as separator in SF field types and commas in MF field types
- SFVec3f -- Field containing a three-dimensional vector.
- SFVec3fs are written to file as three floating point values separated by whitespace.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 14 SFImage Specification of Hexadecimal Representation
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- SFImages are written to file as three integers nxpixel nypixel numcomponents=1..4
- representing the width, height and number of components in the image, followed by nxpixel*nypixel hexadecimal values representing the pixels in the image, separated by whitespace.
- A one-component image will have one-byte hexadecimal values representing the intensity of the image.
- For example, 0xFF is full intensity, 0x00 is no intensity.
- A two-component image puts the intensity in the first (high) byte and the transparency in the second (low) byte.
- Pixels in a three-component image have the red component in the first (high) byte, followed by the green and blue components (so 0xFF0000 is red).
- Four-component images put the transparency byte after red/green/blue (so 0x0000FF80 is semi-transparent blue).
- A value of 1.0 is completely transparent, 0.0 is completely opaque.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 15 SFImage Specification Examples
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * Critical Information in IMAGE
Full HTML Index
- Note: each pixel is actually read as a single unsigned number,
- so a 3-component pixel with value "0x0000FF" can also be written as "0xFF" or "255" (decimal).
- Pixels are specified from left to right, bottom to top. The first hexadecimal value is the lower left pixel of the image, and the last value is the upper right pixel.
- For example, 1 2 1 0xFF 0x00
- is a 1 pixel wide by 2 pixel high greyscale image, with the bottom pixel white and the top pixel black.
- 2 4 3 0xFF0000 0xFF00 0 0 0 0 0xFFFFFF 0xFFFF00
- is a 2 pixel wide by 4 pixel high RGB image
- shown in diagram
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 16 MFColor and MFLong
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- MFColor -- A multiple-value field that contains any number of RGB colors.
- MFColors are written to file as one or more RGB triples of floating point numbers in standard scientific notation.
- When more than one value is present, all of the values must be enclosed in square brackets and separated by commas.
- For example: [ 1.0 0.0 0.0, 0 1 0, 0 0 1 ] represents the three colors red, green, and blue.
- MFLong -- A multiple-value field that contains any number of long (32-bit) integers.
- MFLongs are written to file as one or more integer values, in decimal, hexadecimal or octal format.
- When more than one value is present, all the values are enclosed in square brackets and separated by commas;
- For example: [ 17, -0xE20, -518820 ]
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 17 MFVec2f and MFVec3f
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- MFVec2f e.g. [ x1 y1, x2 y2, x3 y3, .... xn yn] -- A multiple-value field that contains any number of two-dimensional vectors.
- MFVec2fs are written to file as one or more pairs of floating point values separated by whitespace.
- When more than one value is present, all of the values are enclosed in square brackets and separated by commas;
- For example: [ 0 0, 1.2 3.4, 98.6 -4e1 ]
- MFVec3f -- A multiple-value field that contains any number of three-dimensional vectors.
- MFVec3fs are written to file as one or more triples of floating point values separated by whitespace.
- When more than one value is present, all of the values are enclosed in square brackets and separated by commas;
- For example: [ 0 0 0, 1.2 3.4 5.6, 98.6 -4e1 212 ]
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 18 The Nodes in VRML -- Overall Classes and Function
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- VRML defines several different classes of nodes. Most of the nodes can be classified into one of three categories; shape, property or group.
- Shape nodes define the geometry in the scene.
- Conceptually, they are the only nodes that draw anything.
- Property nodes affect the way shapes are drawn.
- And Grouping nodes gather other nodes together,
- allowing collections of nodes to be treated as a single object.
- Some group nodes also Control nodes whether or not their children are drawn.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 19 Coordinate System and How Fields are entered into Nodes in VRML
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Nodes may contain zero or more fields.
- Each node type defines the type, name, and default value for each of its fields.
- The default value for the field is used if a value for the field is not specified in the VRML file.
- The order in which the fields of a node are read is not important;
- for example, "Cube {width2height4depth6}"
- and "Cube {height4depth6width2}" are equivalent.
- Note that each VRML node uses local coordinates centered at (0,0,0)
- The data implied by the node is placed in 3D world at position and orientation implied by current accumulated transformation
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 20 VRML Shape Nodes
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Now we examine the 36 nodes grouped by type.
- The first group are the shape nodes.
- These specify geometry:
- AsciiText,
- Cone, Cube, Cylinder, IndexedFaceSet, IndexedLineSet, PointSet, Sphere,
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 21 VRML Property Nodes
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- The second group are the properties.
- These can be further grouped into properties of the geometry and its appearance, matrix or transformproperties, and cameras and lights:
- Geometry and Material Nodes
- Coordinate3, FontStyle, Info, LOD,Material, MaterialBinding, Normal, NormalBinding, Texture2, Texture2Transform, TextureCoordinate2, ShapeHints
- The Transformation Nodes
- MatrixTransform, Rotation, Scale, Transform, Translation
- The Camera Nodes
- OrthographicCamera, PerspectiveCamera
- The Lighting Nodes
- DirectionalLight, PointLight, SpotLight
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 22 VRML Group and "Other" Nodes
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- These are the group nodes:
- Group, Separator, Switch, TransformSeparator, WWWAnchor
- Finally, the WWWInline node does not fit neatly into any category.
- WWWInline
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 23 General Structure of a VRML Node
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- DEF nodename nodetype {
- field1 value1
- field2 value2
- child1 {fieldsgrandchildren}
- child2 {morefieldsmoregrandchildren}
- }
- or nodetype {fieldschildren}
- The DEF format allows one to specify a name which is optional but can be used to replicate nodes
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 24 NPAC Online VRML Examples
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- In the following we discuss a set of VRML examples situated on
- http://sandman.npac.syr.edu:8880/vrmldemo.html
- Major complex example is a car with
- VRML at http://sandman.npac.syr.edu:8880/car.wrl
- and a set of 8 "small" examples arranged on one page at
- http://sandman.npac.syr.edu:8880/Pyramid/pyramid.wrl
- Each of these VRML files has an associated HTML page describing issues:
- http://sandman.npac.syr.edu:8880/car.html
- http://sandman.npac.syr.edu:8880/Pyramid/pyramid.html
- The Pyramid VRML(wrl) and HTML files is linked to eight further VRML and associated HTML explanation files
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 25 The Eight Versions of a VRML Pyramid - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- http://sandman.npac.syr.edu:8880/Pyramid/white.html is a basic white Pyramid with simple color and surface properties
- Coordinate3 and IndexedFaceSet are used to define Pyramid
- http://sandman.npac.syr.edu:8880/Pyramid/mistake.html
- This incorrectly uses shapehints to specify order of points in rendering
- http://sandman.npac.syr.edu:8880/Pyramid/per_vertex
- .html
- This specifies color using value PER_VERTEX in MaterialBinding
- http://sandman.npac.syr.edu:8880/Pyramid/per_vertex_indexed
- .html
- This assigns colors to vertices in IndexedFaceSet field using materialindex
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 26 The Eight Versions of a VRML Pyramid - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- http://sandman.npac.syr.edu:8880/Pyramid/
- per_face.html
- Specifies colors directly to faces of polygon
- http://sandman.npac.syr.edu:8880/Pyramid/
- per_face_indexed.html
- Specifies colors indirectly by indices on faces of polygon
- http://sandman.npac.syr.edu:8880/Pyramid/
- texture_naive.html
- lays a 2D texture map on the whole pyramid
- http://sandman.npac.syr.edu:8880/Pyramid/
- texture.html
- lays the texture map more precisely on the pyramid
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 27 The Start of Basic White Pyramid -- Separator and Material
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Separator { # Start Pyramid Scene Graph
- Material {
- diffuseColor 1.0 1.0 1.0 # White
- ambientColor 0.1 0.1 0.1 # Not much of a glow
- } # We will discuss rest later .....
- This gives the object some color and surface properties.
- The object is white and it is not reflecting any light.
- The object is mildly lighted (defined by ambientColor), even when there is no light defined in the world.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 28 VRML Material Node
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node defines the current surface material properties for all subsequent shapes.
- Material sets several components of the current material during traversal.
- Different shapes interpret materials with multiple values differently.
- To bind materials to shapes, use a MaterialBinding node .
- FILE FORMAT/DEFAULTS
- Material {
- ambientColor 0.2 0.2 0.2 # MFColor
- diffuseColor 0.8 0.8 0.8 # MFColor
- specularColor 0 0 0 # MFColor
- emissiveColor 0 0 0 # MFColor
- shininess 0.2 # MFFloat
- transparency 0 # MFFloat
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 29 VRML Separator Node I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This group node performs a push (save) of the traversal state before traversing its children and a pop (restore) after traversing them.
- This isolates the separator's children from the rest of the scene graph.
- A separator can include lights, cameras, coordinates, normals, bindings, and all other properties.
- Separators can also perform render culling.
- Render culling skips over traversal of the separator's children if they are not going to be rendered, based on the comparison of the separator's bounding box with the current view volume.
- Culling is controlled by the renderCulling field.
- These are set to AUTO by default, allowing the implementation to decide whether or not to cull.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 30 VRML Separator Node II -- Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- CULLING ENUMS
- ON Always try to cull to the view volume
- OFF Never try to cull to the view volume
- AUTO Implementation-defined culling behavior
- FILE FORMAT/DEFAULTS
- Separator {
- renderCulling AUTO # SFEnum
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 31 Structure of the Pyramid with Coordinate3 and IndexedFaceSet - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * Critical Information in IMAGE
Full HTML Index
- Coordinate3 {
- point [
- 0 5 0, # Called Point 0
- -2.5 0 -2.5, # Called Point 1
- 2.5 0 -2.5, # Called Point 2
- 2.5 0 2.5, # Called Point 3
- -2.5 0 2.5 # Called Point 4
- ]
- }
- The point field defines the vertices of the object.
- There are five points defined. The points are labeled form 0 to 4.
- Coordinate3 just defines points to be used later in IndexedFaceSet
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 32 Structure of the Pyramid with Coordinate3 and IndexedFaceSet - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * Critical Information in IMAGE
Full HTML Index
- IndexedFaceSet {
- coordIndex [ # -1 ends polygon
- 0, 4, 3, -1,
- 0, 3, 2, -1,
- 0, 2, 1, -1,
- 0, 1, 4, -1,
- 1, 3, 4, -1,
- 1, 2, 3, -1
- ]
- }
- }
- Builds Pyramid as 6 triangles formed from original points defined in Coordinate3
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 33 VRML IndexedFaceSet Node I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node represents a 3D shape formed by constructing faces (polygons) from vertices located at the current coordinates.
- IndexedFaceSet uses the indices in its coordIndex field to specify the polygonal faces.
- An index of -1 indicates that the current face has ended and the next one begins.
- The vertices of the faces are transformed by the current transformation matrix.
- Treatment of the current material and normal binding is as follows:
- The PER_PART and PER_FACE bindings specify a material or normal for each face.
- PER_VERTEX specifies a material or normal for each vertex.
- The corresponding _INDEXED bindings are the same, but use the materialIndex or normalIndex indices.
- The DEFAULT material binding is equal to OVERALL.
- The DEFAULT normal binding is equal to PER_VERTEX_INDEXED;
- if insufficient normals exist in the state, vertex normals will be generated automatically.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 34 VRML IndexedFaceSet Node II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Explicit texture coordinates (as defined by TextureCoordinate2) may be bound to vertices of an indexed shape by using the indices in the textureCoordIndex field.
- As with all vertex-based shapes, if there is a current texture but no texture coordinates are specified, a default texture coordinate mapping is calculated using the bounding box of the shape.
- The longest dimension of the bounding box defines the S coordinates, and the next longest defines the T coordinates.
- The value of the S coordinate ranges from 0 to 1, from one end of the bounding box to the other.
- The T coordinate ranges between 0 and the ratio of the second greatest dimension of the bounding box to the greatest dimension.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 35 VRML IndexedFaceSet Node III -- Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Be sure that the indices contained in the coordIndex, materialIndex, normalIndex, and textureCoordIndex fields are valid with respect to the current state, or errors will occur.
- FILE FORMAT/DEFAULTS
- IndexedFaceSet {
- coordIndex 0 # MFLong
- materialIndex -1 # MFLong
- normalIndex -1 # MFLong
- textureCoordIndex -1 # MFLong
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 36 Use of WWWAnchor Transform and WWWInline in Pyramid Demonstration
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- WWWAnchor { # Has Attributes (name) and Children
- name "http://sandman.npac.syr.edu:8880/Pyramid/white_link.html"
- Transform { # First Child
- } # Followed with second child
- WWWInline { # Load Pyramid into Current VRML page
- name "http://sandman.npac.syr.edu:8880/Pyramid/white.wrl"
- bboxSize 5 5 5 # Using this as box to put VRML in
- }
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 37 Notes on Use of WWWAnchor Transform and WWWInline in Pyramid Demonstration
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- WWWAnchor works as a Separator and associates a link to the object.
- If the viewer activates this link, the web page specified in name attribute will be displayed on the viewer's browser.
- The link can also point to any HTML page.
- WWWInline provides a way to incorporate VRML objects from the web.
- The name field provides the URL of the included object.
- The bboxSize defines the bounding box of the object.
- The center of the bounding box can be specified by bboxCenter field.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 38 VRML WWWAnchor Node I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- The WWWAnchor group node loads a new scene into a VRML browser when one of its children is chosen.
- Exactly how a user "chooses" a child of the WWWAnchor is up to the VRML browser; typically, clicking on one of its children with the mouse will result in the new scene replacing the current scene.
- A WWWAnchor with an empty ("") name does nothing when its children are chosen.
- The name is an arbitrary URL.
- WWWAnchor behaves like a Separator, pushing the traversal state before traversing its children and popping it afterwards.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 39 VRML WWWAnchor Node II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- The description field in the WWWAnchor allows for a friendly prompt to be displayed as an alternative to the URL in the name field.
- Ideally, browsers will allow the user to choose the description, the URL or both to be displayed for a candidate WWWAnchor.
- The WWWAnchor's map field is an enumerated value that can be either NONE(the default) or POINT.
- If it is POINT then the object-space coordinates of the point on the object the user chose will be added to the URL in the name field, with the syntax "?x,y,z".
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 40 VRML WWWAnchor Node III -- Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- MAP ENUM
- NONE Do not add information to the URL
- POINT Add object-space coordinates to URL
- FILE FORMAT/DEFAULTS
- WWWAnchor {
- name "" # SFString
- description "" # SFString
- map NONE # SFEnum
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 41 VRML WWWInline Node - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- The WWWInline node reads its children from anywhere in the World Wide Web.
- Exactly when its children are read is not defined; reading the children may be delayed until the WWWInline is actually displayed.
- A WWWInline with an empty name does nothing.
- The name is an arbitrary URL.
- The effect of referring to a non-VRML URL in a WWWInline node is undefined.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 42 VRML WWWInline Node - II Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- If the WWWInline's bboxSize field specifies a non-empty bounding box
- (a bounding box is non-empty if at least one of its dimensions is greater than zero),
- then the WWWInline's object-space bounding box is specified by its bboxSize and bboxCenter fields.
- This allows an implementation to view-volume cull or LOD switch the WWWInline without reading its contents.
- FILE FORMAT/DEFAULTS
- WWWInline {
- name "" # SFString
- bboxSize 0 0 0 # SFVec3f
- bboxCenter 0 0 0 # SFVec3f
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 43 VRML Transform Node I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node defines a geometric 3D transformation consisting of (in order) a (possibly) non-uniform scale about an arbitrary point, a rotation about an arbitrary point and axis, and a translation.
- FILE FORMAT/DEFAULTS
- Transform {
- translation 0 0 0 # SFVec3f
- rotation 0 0 1 0 # SFRotation
- scaleFactor 1 1 1 # SFVec3f
- scaleOrientation 0 0 1 0 # SFRotation
- center 0 0 0 # SFVec3f
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 44 The Transform Node is Equivalent to Several Other VRML Nodes Applied Together
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Transform {
- translation T1
- rotation R1
- scaleFactor S
- scaleOrientation R2
- center T2
- }
- is equivalent to the sequence of elementary VRML transformations
- Translation {translationT1}
- Translation {translationT2}
- Rotation {rotationR1}
- Rotation {rotationR2}
- Scale {scaleFactorS}
- Rotation {rotation-R2}
- Translation {translation-T2}
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 45 VRML Rotation Node
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This is typical of a particular VRML transform Node with translation and scale also defined
- This node defines a 3D rotation about an arbitrary axis through the origin.
- The rotation is accumulated into the current transformation, which is applied to subsequent shapes.
- FILE FORMAT/DEFAULTS
- Rotation {
- rotation 0 0 1 0 # SFRotation
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 46 Use of PerspectiveCamera in Pyramid Demonstration
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- The viewer looks at the world from the top as default but this is changed with position (default 0 0 1) and orientation (default is negative z -- 0 0 1 0 )
- PerspectiveCamera {
- position 0 20 0
- orientation -0.57735 -0.57735 -0.57735 2.0944
- focalDistance 1
- heightAngle 1.5708
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 47 VRML PerspectiveCamera Node - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- A perspective camera defines a perspective projection from a viewpoint.
- The viewing volume for a perspective camera is a truncated right pyramid.
- By default, the camera is located at (0,0,1) and looks along the negative z-axis;
- The position and orientation fields can be used to change these values.
- The heightAngle field defines the total vertical angle of the viewing volume.
- An OrthographicCamera is similar but does not use perspective (decreasing size with distance from viewpoint)
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 48 VRML PerspectiveCamera Node - Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- FILE FORMAT/DEFAULTS
- PerspectiveCamera {
- position 0 0 1 # SFVec3f
- orientation 0 0 1 0 # SFRotation
- focalDistance 5 # SFFloat
- heightAngle 0.785398 # SFFloat
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 49 Use of Separator Transform DirectionalLight in Car Demonstration
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- First the whole world is specified as one object as this is the rule! (Not enforced)
- DEF World Separator { # Name of Scene Graph
- This enable the world be used as a component of a larger world. Separator is used as a object wrapper and we will use it to define parts of car later.
- Transform { # A 30 degree rotation about x axis
- rotation 1 0 0 0.52359878
- }
- DirectionalLight { # Light the Car !
- on TRUE # Switch it on!
- intensity 1
- color 1 1 1 # White
- direction 1 0 0 # Rays are parallel to rotated x axis
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 50 VRML DirectionalLight Node
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node defines a directional light source that illuminates along rays parallel to a given 3-dimensional vector.
- A light node defines an illumination source that may affect subsequent shapes in the scene graph, depending on the current lighting style.
- Light sources are affected by the current transformation.
- A light node under a separator does not affect any objects outside that separator.
- FILE FORMAT/DEFAULTS
- DirectionalLight {
- on TRUE # SFBool
- intensity 1 # SFFloat
- color 1 1 1 # SFColor
- direction 0 0 -1 # SFVec3f
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 51 Use of ShapeHints in Pyramid - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- ShapeHints {
- vertexOrdering CLOCKWISE
- shapeType SOLID
- faceType CONVEX
- creaseAngle 0.5
- }
- ShapeHints node tells the VRML browser about the object, so that optimization can be done during rendering.
- The creaseAngle field tells the browser to do a smooth transition form one polygon to another.
- This will have a more pronounced effect on a curved surface.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 52 Use of ShapeHints in Pyramid - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Coming back to Triangles defined in IndexedFacSet, we find that ShapeHints has given incorrect advice and so results are unpredictable
- IndexedFaceSet {
- coordIndex [
- 0, 4, 3, -1, # CounterClockWise
- 0, 3, 2, -1, # ClockWise
- 0, 2, 1, -1, # CounterClockWise
- 0, 1, 4, -1, # ClockWise
- 1, 3, 4, -1, # CounterClockWise
- 1, 2, 3, -1 # CounterClockWise
- ]
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 53 VRML ShapeHints Node I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- The ShapeHints node indicates that IndexedFaceSets are solid, contain ordered vertices, or contain convex faces.
- These hints allow VRML implementations to optimize certain rendering features.
- Optimizations that may be performed include enabling back-face culling and disabling two-sided lighting.
- For example, if an object is solid and has ordered vertices, an implementation may turn on backface culling and turn off two-sided lighting.
- If the object is not solid but has ordered vertices, it may turn off backface culling and turn on two-sided lighting.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 54 VRML ShapeHints Node II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- The ShapeHints node also affects how default normals are generated.
- When an IndexedFaceSet has to generate default normals, it uses the creaseAngle field to determine which edges should be smoothly shaded and which ones should have a sharp crease.
- The crease angle is the angle between surface normals on adjacent polygons.
- For example, a crease angle of .5 radians (the default value) means that an edge between two adjacent polygonal faces will be smooth shaded if the normals to the two faces form an angle that is less than .5 radians (about 30 degrees).
- Otherwise, it will be faceted.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 55 VRML ShapeHints Node III -- Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- VERTEX ORDERING ENUMS
- UNKNOWN_ORDERING Ordering of vertices is unknown
- CLOCKWISE Face vertices are ordered clockwise (from the outside)
- COUNTERCLOCKWISE Face vertices are ordered counterclockwise (from the outside)
- SHAPE TYPE ENUMS
- UNKNOWN_SHAPE_TYPE Nothing is known about the shape
- SOLID The shape encloses a volume
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 56 VRML ShapeHints Node IV -- Formal Specification (contd)
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- FACE TYPE ENUMS
- UNKNOWN_FACE_TYPE Nothing is known about faces
- CONVEX All faces are convex
- FILE FORMAT/DEFAULTS
- ShapeHints {
- vertexOrdering UNKNOWN_ORDERING # SFEnum
- shapeType UNKNOWN_SHAPE_TYPE # SFEnum
- faceType CONVEX # SFEnum
- creaseAngle 0.5 # SFFloat
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 57 Use of PER_VERTEX MaterialBinding in Pyramid Coloring - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Separator {
- Material {
- diffuseColor [
- 1.0 1.0 0.0,
- 0.0 1.0 1.0,
- ....... Actually 18 lines defining 18 colors ......
- 0.0 1.0 0.0,
- 0.0 0.0 1.0
- ]
- ambientColor 0.1 0.1 0.1
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 58 Use of PER_VERTEX MaterialBinding in Pyramid Coloring - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Above we define 18 colors and MaterialBinding value PER_VERTEX associates one with each vertex with no addition needed in IndexFaceSet Node.
- MaterialBinding {
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 59 VRML MaterialBinding Node - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node specifies how the current materials are bound to shapes that follow in the scene graph.
- Each shape node may interpret bindings differently.
- The current material always has a base value, which is defined by the first value of all material fields.
- Since material fields may have multiple values, the binding determines how these values are distributed over a shape.
- The bindings for faces and vertices are meaningful only for shapes that are made from faces and vertices.
- Similarly, the indexed bindings are only used by the shapes that allow indexing.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 60 VRML MaterialBinding Node - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- When multiple material values are bound, the values are cycled through, based on the period of the material component with the most values.
- For example, the following table shows the values used when cycling through (or indexing into) a material with 2 ambient colors, 3 diffuse colors, and 1 of all other components in the current material.
- (The period of this material cycle is 3):
- Material Ambient color Diffuse color Other
- 0 0 0 0
- 1 1 1 0
- 2 1 2 0
- 3 (same as 0) 0 0 0
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 61 VRML MaterialBinding Node - III
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- BINDINGS
- DEFAULT Use default binding
- OVERALL Whole object has same material
- PER_PART One material for each part of object
- PER_PART_INDEXED One material for each part, indexed
- PER_FACE One material for each face of object
- PER_FACE_INDEXED One material for each face, indexed
- PER_VERTEX One material for each vertex of object
- PER_VERTEX_INDEXED One material for each vertex, indexed
- FILE FORMAT/DEFAULTS
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 62 Use of PER_VERTEX_INDEXED MaterialBinding in Pyramid Coloring - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Material {
- diffuseColor [
- 1.0 1.0 0.0,
- 0.0 1.0 1.0,
- 1.0 0.0 1.0,
- 1.0 0.0 0.0,
- 0.0 1.0 0.0,
- ]
- ambientColor 0.1 0.1 0.1
- }
- Six colors are defined, but only five are used. The colors defined in diffusecolor are labelled from 0 to 5.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 63 Use of PER_VERTEX_INDEXED MaterialBinding in Pyramid Coloring - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- MaterialBinding { # Specify that Vertex Colors will be specified Indirectly
- }
- One Must now add to IndexedFaceSet a new attribute materialIndex linking vertices to colors (only 0 to 4 used)
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 64 Use of PER_VERTEX_INDEXED MaterialBinding in Pyramid Coloring - III
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- IndexedFaceSet {
- materialIndex [
- 0, 4, 3, -1, # Colors associated with Vertices
- 0, 3, 2, -1, # Same Number of Indices
- 0, 2, 1, -1, # as Points in Polygon
- 0, 1, 4, -1,
- 1, 3, 4, -1,
- 1, 2, 3, -1
- ]
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 65 Use of PER_FACE MaterialBinding in Pyramid Coloring - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Material { # Define 6 Colors
- diffuseColor [ # One for each triangle
- 1.0 1.0 1.0,
- 0.0 0.5 1.0,
- 1.0 1.0 0.0,
- 1.0 0.0 0.0,
- 0.0 1.0 0.0,
- 0.0 0.0 1.0
- ]
- ambientColor 0.1 0.1 0.1
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 66 Use of PER_FACE MaterialBinding in Pyramid Coloring - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Six colors are defined because there are six triangles making up Pyramid.
- MaterialBinding {
- }
- The browser will pick a color from the list in natural order of triangles and so no change needed in IndexedFaceSet.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 67 Use of PER_FACE_INDEXED MaterialBinding in Pyramid Coloring - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This uses same Material Node as PER_FACE with 6 colors defined
- MaterialBinding {
- }
- Tell the browser to pick a color form the list according to the given indices using MaterialIndex attribute in IndexFaceSet Node.
- IndexedFaceSet { # Use Usual CoordIndex Attribute
- materialIndex [
- 5, 4, 3, 2, 1, 0, -1,
- ]
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 68 Use of Simple Texture Map in Pyramid Coloring
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Material {
- diffuseColor 1.0 1.0 1.0
- specularColor 0.8 0.8 0.8
- }
- Texture2 {
- filename "http://sandman.npac.syr.edu:8880/number.gif"
- }
- This will wrap Image defined in Texture2 Node onto Pyramid
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 69 VRML Texture2 Node - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This property node defines a texture map and parameters for that map.
- This map is used to apply texture to subsequent shapes as they are rendered.
- The texture can be read from the URL specified by the filename field.
- To turn off texturing, set the filename field to an empty string ("").
- Textures can also be specified inline by setting the image field to contain the texture data.
- Specifying both a URL and data inline will result in undefined behavior.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 70 VRML Texture2 Node - II Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- WRAP ENUM
- REPEAT Repeats texture outside 0-1 texture coordinate range
- CLAMP Clamps texture coordinates to lie within 0-1 range
- FILE FORMAT/DEFAULTS
- Texture2 {
- filename "" # SFString
- image 0 0 0 # SFImage
- wrapS REPEAT # SFEnum
- wrapT REPEAT # SFEnum
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 71 Use of TextureCoordinate2 in Pyramid Coloring - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This Optimizes Placement of Texture Map on Pyramid and initially uses Texture2 Node as in naive placement example
- TextureCoordinate2 {
- point [
- 0 0,
- 1.0 0,
- 1.0 1.0,
- 0 1.0,
- 0.5 0.5
- ]
- }
- Some reference points: four corners and a middle point, are defined above on the texture map which is always viewed as a rectangle.
- By definition, the texture coordinate goes from 0.0 to 1.0 on the x axis and the y axis of the texture image.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 72 Use of TextureCoordinate2 in Pyramid Coloring - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Then the browser is told in MaterialBinding to expect a index value for each vertex.
- MaterialBinding { # Note Indices are "different"
- value PER_VERTEX_INDEXED # From Previous example
- } # Using PER_VERTEX_INDEXED
- IndexedFaceSet { # Add to usual coordIndex
- textureCoordIndex [
- 4, 2, 3, -1,
- 4, 3, 0, -1,
- 4, 0, 1, -1,
- 4, 1, 2, -1,
- 0, 2, 3, -1,
- 0, 1, 2, -1
- ]
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 73 VRML TextureCoordinate2 Node
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node defines a set of 2D coordinates to be used to map textures to the vertices of subsequent PointSet, IndexedLineSet, or IndexedFaceSet objects.
- It replaces the current texture coordinates in the rendering state for the shapes to use.
- Texture coordinates range from 0 to 1 across the texture.
- The horizontal coordinate, called S, is specified first, followed by the vertical coordinate, T.
- FILE FORMAT/DEFAULTS
- TextureCoordinate2 {
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 74 VRML Texture2Transform Node I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node defines a 2D transformation applied to texture coordinates.
- This affects the way textures are applied to the surfaces of subsequent shapes.
- The transformation consists of (in order) a non-uniform scale about an arbitrary center point, a rotation about that same point, and a translation.
- This allows a user to change the size and position of the textures on shapes.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 75 VRML Texture2Transform Node II Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- FILE FORMAT/DEFAULTS
- Texture2Transform {
- translation 0 0 # SFVec2f
- rotation 0 # SFFloat
- scaleFactor 1 1 # SFVec2f
- center 0 0 # SFVec2f
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 76 Definition of Wheel in Car Demonstration - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- The left front wheel is defined here.
- The transform node is enclosed within a separator, so it only affect the children objects of the wheel.
- The Material node is used to define the color of the wheel.
- DEF LeftFrontWheel Separator {
- Transform {
- }
- Material {
- } # Continue LeftFrontWheel on next foil ...
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 77 Definition of Wheel in Car Demonstration - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- DEF Wheel Sphere {
- radius 1
- }
- } # End LeftFrontWheel
- Use Transform and Material as in RightFrontWheel with changed color and translation.
- However we can "copy" actual Wheel with USE command
- DEF RightFrontWheel Separator {
- USE Wheel
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 78 VRML Sphere Node - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This very simple node represents a sphere.
- By default, the sphere is centered at the origin and has a radius (the only attribute) of 1.
- The sphere is transformed by the current cumulative transformation and is drawn with the current material and texture.
- A sphere does not have faces or parts.
- Therefore, the sphere ignores material and normal bindings, using the first material for the entire sphere and using its own normals.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 79 VRML Sphere Node -- Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- When a texture is applied to a sphere, the texture covers the entire surface, wrapping counterclockwise from the back of the sphere.
- The texture has a seam at the back on the yz-plane.
- FILE FORMAT/DEFAULTS
- Sphere {
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 80 Definition of HeadLight in Car Demonstration - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- The head light consists of three objects, a bottomless cone, a sphere and a pointlight source.
- The PointLight is located inside of the sphere and it gives out a slightly yellow light.
- The light is filtered by the sphere's surface properties with an emissive yellow color.
- The result is a yellow light with a hint of high intensity.
- DEF HeadLight Separator { # We will re-USE!
- Separator { # The Bottomless Cone
- Transform {
- translation -0.2 0 0
- rotation 0 0 1 -1.5707963
- } # to be continued
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 81 Definition of HeadLight in Car Demonstration - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Material {
- }
- Cone { # Defines sides of Light
- parts SIDES
- bottomRadius 0.09
- height 0.5
- }
- } # End Bottomless Cone
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 82 Definition of HeadLight in Car Demonstration - III
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Separator { # Start Sphere and PointLight
- Transform {
- }
- Material {
- }
- PointLight {
- intensity 1
- color 1.0 1.0 0.9
- } # To be continued ......
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 83 Definition of HeadLight in Car Demonstration - IV
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- # Continue Sphere and PointLight Separator ....
- }
- } # End HeadLight
- Now we can use the HeadLight again with USE -- good cars have two of them -- this time we save a lot!
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 84 VRML Cone Node - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node represents a simple cone whose central axis is aligned with the y-axis.
- By default, the cone is centered at (0,0,0) and has a size of -1 to +1 in all three directions.
- The cone has a radius of 1 at the bottom and a height of 2, with its apex at 1 and its bottom at -1.
- The cone has two parts: the sides and the bottom.
- The cone is transformed by the current cumulative transformation and is drawn with the current texture and material which will reference the parts.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 85 VRML Cone Node - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- If the current material binding is PER_PART or PER_PART_INDEXED, the first current material is used for the sides of the cone, and the second is used for the bottom.
- Otherwise, the first material is used for the entire cone.
- When a texture is applied to a cone, it is applied differently to the sides and bottom.
- On the sides, the texture wraps counterclockwise (from above) starting at the back of the cone.
- The texture has a vertical seam at the back, intersecting the yz-plane.
- For the bottom, a circle is cut out of the texture square and applied to the cone's base circle.
- The texture appears right side up when the top of the cone is rotated towards the -Z axis.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 86 VRML Cone Node - III
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- PARTS
- SIDES The conical part
- BOTTOM The bottom circular face
- ALL All parts
- FILE FORMAT/DEFAULTS
- Cone {
- parts ALL # SFEnum
- bottomRadius 1 # SFFloat
- height 2 # SFFloat
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 87 VRML PointLight Node - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node defines a point light source at a fixed 3D location.
- A point source illuminates equally in all directions; that is, it is omni-directional.
- A light node defines an illumination source that may affect subsequent shapes in the scene graph, depending on the current lighting style.
- Light sources are as you should expect affected by the current transformation.
- A light node under a separator does not affect any objects outside that separator.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 88 VRML PointLight Node - Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- FILE FORMAT/DEFAULTS
- PointLight {
- on TRUE # SFBool
- intensity 1 # SFFloat
- color 1 1 1 # SFColor
- location 0 0 1 # SFVec3f
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 89 VRML Cylinder Node - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node represents a simple capped cylinder centered around the y-axis.
- By default, the cylinder is centered at (0,0,0) and has a default size of -1 to +1 in all three dimensions.
- The cylinder has three parts: the sides, the top (y = +1) and the bottom (y = -1).
- You can use the radius and height fields to create a cylinder with a different size.
- The cylinder is transformed by the current cumulative transformation and is drawn with the current material and texture.
- If the current material binding is PER_PART or PER_PART_INDEXED, the first current material is used for the sides of the cylinder, the second is used for the top, and the third is used for the bottom.
- Otherwise, the first material is used for the entire cylinder.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 90 VRML Cylinder Node - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- When a texture is applied to a cylinder, it is applied differently to the sides, top, and bottom.
- On the sides, the texture wraps counterclockwise (from above) starting at the back of the cylinder.
- The texture has a vertical seam at the back, intersecting the yz-plane.
- For the top and bottom, a circle is cut out of the texture square and applied to the top or bottom circle.
- The top texture appears right side up when the top of the cylinder is tilted toward the +Z axis, and the bottom texture appears right side up when the top of the cylinder is tilted toward the -Z axis.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 91 VRML Cylinder Node Formal Specifications- III
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- PARTS
- SIDES The cylindrical part
- TOP The top circular face
- BOTTOM The bottom circular face
- ALL All parts
- FILE FORMAT/DEFAULTS
- Cylinder {
- parts ALL # SFBitMask
- radius 1 # SFFloat
- height 2 # SFFloat
- }
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 92 AsciiText in Car Demonstration - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Here we display the name of manufacturer and when you click on name, you go to their home page.
- WWWAnchor {
- name "http://www.ford.com/"
- Transform { # Put the name where you want
- translation 4.5 -1 2
- rotation 1 0 0 -1.0471976
- scaleFactor 0.125 0.125 0.125
- center 0 0 0
- } # To be Continued
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 93 AsciiText in Car Demonstration - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- AsciiText { # This string is displayed
- string "Ford Cars are \"Great\""
- spacing 1
- justification CENTER
- width 0
- }
- } # End WWWAnchor
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 94 AsciiText Node Type -- General Structure - I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- This node represents strings of text characters from the ASCII coded character set.
- The first string is rendered with its baseline at (0,0,0).
- All subsequent strings advance y by - (size * spacing).
- See node type FontStyle for a description of the size field.
- The justification field determines the placement of the strings in the x dimension as LEFT, CENTER or RIGHT where for instance latter places the right edge of each string at x=0.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 95 AsciiText Node Type -- General Structure - II
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- Text is rendered from left to right, top to bottom in the font set by FontStyle.
- The width field defines a suggested width constraint for each string.
- The default is to use the natural width of each string. Setting any value to 0 indicates the natural width should be used for that string.
- The text is transformed by the current cumulative transformation and is drawn with the current material and texture.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 96 AsciiText Node Type -- Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- FILE FORMAT/DEFAULTS
- AsciiText {
- string "" # MFString -- Note can have several strings
- spacing 1 # SFFloat -- Line spacing ratio
- justification LEFT # SFEnum chosen from
- width 0 # MFFloat
- }
- Specification of JUSTIFICATION enumerated list
- LEFT Align left edge of text to origin
- CENTER Align center of text to origin
- RIGHT Align right edge of text to origin
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 97 VRML Level Of Detail LOD Node I
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- See Discussion of our Terrain Renderer in VRML for use of LOD Node
- This group node is used to allow applications to switch between various representations of objects automatically.
- The children of this node typically represent the same object or objects at varying levels of detail, from highest detail to lowest.
- The specified center point of the LOD is transformed by the current transformation into world space, and the distance from the transformed center to the world-space eye point is calculated.
- If the distance is less than the first value in the ranges array, then the first child of the LOD group is drawn.
- If between the first and second values in the ranges array, the second child is drawn, etc.
HELP! * GREY=local HTML version of LOCAL Foils prepared 10 April 1996 Foil 98 VRML Level Of Detail LOD Node II Formal Specification
From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. * See also color IMAGE
Full HTML Index
- If there are N values in the ranges array, the LOD group should have N+1 children.
- Specifying too few children will result in the last child being used repeatedly for the lowest levels of detail;
- if too many children are specified, the extra children will be ignored.
- Each value in the range array should be less than the previous value, otherwise results are undefined.
- FILE FORMAT/DEFAULTS
- LOD {
- range [ ] # MFFloat
- center 0 0 0 # SFVec3f
- }
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to webmaster@npac.
syr.edu.
Page produced by wwwfoil on Wed Oct 16 1996
----------
Xiaoming Li (315)443-3890 (o)
NPACT (315)443-1973 (f)