<<VRML 2.0 - An Introductory view by examples
Field and Event Types
The elemental data types used in VRML are the field type and the
event type. VRML uses the following field and event types :
- SFBool - single boolean value (true or false), e.g. true;
- SFColor, MFColor - single / multiple color triples (r g b), e.g. 0 1 0 or 1. 0. 1. ;
- SFFloat, MFFloat - single / multiple float point numbers, e.g. 3.1415 ;
- SFImage, an uncompressed 2-D image (pixels-width pixels-height components pixel-values), e.g. 1 2 1 0xFF 0x00 for a 1x2 pixels image, with one grayscale (FF white, 00 black);
- SFInt32, MFInt 32 - single / multiple 32-bit integers, e.g. 14;
- SFNode, MFNode - single / multiple nodes, e.g. Transform;
- SFRotation, MFRotation - single / multiple rotations (x y z radians), e.g.
0. 1. 0. 3.14;
- SFString, MFString - single / multiple string, e.g. "I did it";
- SFTime, MFTime - single / multiple time value in seconds (zero is Jan 1, 1970), e.g. 50000;
- SFVec2f, MFVec2f - single / multiple 2-D vectors, e.g. 23 44, or 14.0 35.0;
- SFVec3f, MFVec3f - single / multiple 3-D vectors, e.g. 14 1 56.