Browsing The Scene

Anchor • Attributes

A simple Box that is clickable similar to an HTML ImageMap. The output message will open a new browser tab.

The Anchor url is usually in the form of a valid X3D file, a valid X3D location within a scene or an external resource such as a web page.

 

Rotate the vrignette to view the geometry.

 
 
<x3d>

<scene>

<worldInfo title="Anchor Example">
</worldInfo>

<navigationInfo headlight="true">
</navigationInfo>

<viewpoint position="0.0 1.0 12.0">
</viewpoint>

<anchor url="anchor_box.html" parameter="target=_top">
<transform rotation="1 1 1 0.396">
<shape>
<appearance>
<material diffuseColor="0.0 0.5 1.0">
</material>
</appearance>
<box size="3.0 3.0 3.0" solid="false">
</box>
</shape>
</transform>
</anchor>

<background skyColor="0.0 1.0 0.5" groundColor="0.30 0.30 0.30">
</background>

</scene>

</x3d>