Heilan X3D Browser

RandCubes

Type

ParentNode, to be used with a child AudioClip node.

Description

32 cubes, positioned randomly, whose size is controlled by the amplitude envelope of the accompanying AudioClip.

Attributes

maxBack SFFloat (input) The same as Sound's maxBack attribute.

maxFront SFFloat (input) The same as Sound's maxFront attribute.

minBack SFFloat (input) The same as Sound's minBack attribute.

minFront SFFloat (input) The same as Sound's minFront attribute.

Example Use

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE X3D>
<X3D profile="Full">
	<Scene>
		<NavigationInfo type="ANY"/>

		<Transform translation="0.0 0.0 -20.0">
			<RandCubes minFront="45.0" maxFront="125.0" minBack="45.0" maxBack="125.0">
				<Appearance>
					<Material diffuseColor="0.1 0.1 0.1 "/>
				</Appearance>
				<AudioClip url="/mnt/disk2/music/concertPiece/CubeGran1Tracka.wav"/>
			</RandCubes>
		</Transform>
	</Scene>
</X3D>