Every node of VRML 1.0, with each field’s type and default. The types are described on the syntax page. These are the definitions the explorer checks a VRML 1.0 file against, so a field that is not in the table is listed as a problem.
Shapes
| Node | Fields (type, default) | Notes |
|---|---|---|
AsciiText | string MFString "", spacing SFFloat 1, justification SFEnum LEFT (LEFT, CENTER, RIGHT), width MFFloat 0 | text in the current font style |
Cone | parts SFBitMask ALL (SIDES, BOTTOM, ALL), bottomRadius SFFloat 1, height SFFloat 2 | centred on the origin, the axis along y |
Cube | width SFFloat 2, height SFFloat 2, depth SFFloat 2 | centred on the origin |
Cylinder | parts SFBitMask ALL (SIDES, TOP, BOTTOM, ALL), radius SFFloat 1, height SFFloat 2 | centred on the origin, the axis along y |
IndexedFaceSet | coordIndex MFLong 0, materialIndex MFLong −1, normalIndex MFLong −1, textureCoordIndex MFLong −1 | faces from the current Coordinate3, each ended by −1 |
IndexedLineSet | the same four index fields | polylines, each ended by −1 |
PointSet | startIndex SFLong 0, numPoints SFLong −1 | points from the current coordinates; −1 means all the rest |
Sphere | radius SFFloat 1 | centred on the origin |
Property nodes
| Node | Fields (type, default) | Notes |
|---|---|---|
Coordinate3 | point MFVec3f 0 0 0 | the vertices that index sets use |
FontStyle | size SFFloat 10, family SFEnum SERIF (SERIF, SANS, TYPEWRITER), style SFBitMask NONE (NONE, BOLD, ITALIC) | |
Info | string SFString "<Undefined info>" | text for people; nothing is drawn |
Material | ambientColor MFColor 0.2 0.2 0.2, diffuseColor MFColor 0.8 0.8 0.8, specularColor MFColor 0 0 0, emissiveColor MFColor 0 0 0, shininess MFFloat 0.2, transparency MFFloat 0 | several values per field, spread by MaterialBinding |
MaterialBinding | value SFEnum DEFAULT | DEFAULT, OVERALL, PER_PART, PER_PART_INDEXED, PER_FACE, PER_FACE_INDEXED, PER_VERTEX, PER_VERTEX_INDEXED |
Normal | vector MFVec3f empty | surface normals |
NormalBinding | value SFEnum DEFAULT | the same values as MaterialBinding |
ShapeHints | vertexOrdering SFEnum UNKNOWN_ORDERING (CLOCKWISE, COUNTERCLOCKWISE), shapeType SFEnum UNKNOWN_SHAPE_TYPE (SOLID), faceType SFEnum CONVEX (UNKNOWN_FACE_TYPE), creaseAngle SFFloat 0.5 | hints for drawing and shading faces |
Texture2 | filename SFString "", image SFImage 0 0 0, wrapS SFEnum REPEAT (CLAMP), wrapT SFEnum REPEAT (CLAMP) | an image from a file or written in the world |
Texture2Transform | translation SFVec2f 0 0, rotation SFFloat 0, scaleFactor SFVec2f 1 1, center SFVec2f 0 0 | |
TextureCoordinate2 | point MFVec2f empty |
Transformation nodes
| Node | Fields (type, default) |
|---|---|
MatrixTransform | matrix SFMatrix, the identity |
Rotation | rotation SFRotation 0 0 1 0 |
Scale | scaleFactor SFVec3f 1 1 1 |
Transform | translation SFVec3f 0 0 0, rotation SFRotation 0 0 1 0, scaleFactor SFVec3f 1 1 1, scaleOrientation SFRotation 0 0 1 0, center SFVec3f 0 0 0 |
Translation | translation SFVec3f 0 0 0 |
Cameras and lights
| Node | Fields (type, default) |
|---|---|
OrthographicCamera | position SFVec3f 0 0 1, orientation SFRotation 0 0 1 0, focalDistance SFFloat 5, height SFFloat 2 |
PerspectiveCamera | position SFVec3f 0 0 1, orientation SFRotation 0 0 1 0, focalDistance SFFloat 5, heightAngle SFFloat 0.785398 |
DirectionalLight | on SFBool TRUE, intensity SFFloat 1, color SFColor 1 1 1, direction SFVec3f 0 0 −1 |
PointLight | on SFBool TRUE, intensity SFFloat 1, color SFColor 1 1 1, location SFVec3f 0 0 1 |
SpotLight | on SFBool TRUE, intensity SFFloat 1, color SFColor 1 1 1, location SFVec3f 0 0 1, direction SFVec3f 0 0 −1, dropOffRate SFFloat 0, cutOffAngle SFFloat 0.785398 |
Group nodes
| Node | Fields (type, default) | Notes |
|---|---|---|
Group | none | children in the braces; state carries through |
LOD | range MFFloat empty, center SFVec3f 0 0 0 | children from the most to the least detailed, chosen by distance |
Separator | renderCulling SFEnum AUTO (ON, OFF) | saves and restores the state |
Switch | whichChild SFLong −1 | −1 none, −3 all, otherwise the child with that number |
TransformSeparator | none | saves and restores the transform only |
WWWAnchor | name SFString "", description SFString "", map SFEnum NONE (POINT) | a link to the address in name |
WWWInline | name SFString "", bboxSize SFVec3f 0 0 0, bboxCenter SFVec3f 0 0 0 | the world at that address, shown here |
Not described
What this page and the explorer leave out.
- Reference: the fields and defaults are from memory of the specification and not checked against it; the exact effect of each node (such as the lighting model) is not described.
- Viewer: it checks files against these definitions, but draws only the shapes, transformations, Separator, Group, Switch, LOD, Material (diffuse), MaterialBinding and Coordinate3. Texture, normal, font, hint, camera, light and anchor nodes are listed and not applied.