WWWAnchor


Purpose:

One of the most valuable nodes available for cyberspace navigation, the WWWAnchor node loads a new scene into your VRML browser when one of the node's children is chosen.

Syntax

FILE FORMAT/DEFAULTS

WWWAnchor {
	name	""	# SFString
	map	NONE	# SFEnum
}
Explanation

Exactly how you "choose" a child of the WWWAnchor is up to your VRML browser. The method, typically, involves clicking on one of the node's children with the mouse. This results in the new scene replacing the current scene. Choosing a WWWAnchor with an empty ("") name does nothing. The WWWAnchor name field is an arbitrary URL.

The WWWAnchor's map field is an enumerated value. You have two choices for this value, either the default, NONE , or POINT. If POINT is chosen the object-space coordinates of the point on the object the user will choose will be added to the URL in the name field. The syntax for this addition is "?x,y,z".

Example Use

The following code fragment is from FWorld1.wrl.

WWWAnchor {name "http://www.sd.tgs.com/~template/vrml/stuff.wrl"...}

See Also

SFVec3f