All The Scene Is A Stage
Node
SpotLight • Attributes
Description
A Sphere "hovering" over a flat box with a SpotLight directly above it. The light has a large enough radius to encompass both shapes and the avatars headlight and directional lighting have been turned off.
VRIGNETTE Notes
X3D equivilent to a flash light. When using SpotLight, there is no visible light source object rendered.
Example
Rotate the vrignette to view the geometry.
Code
<x3d> <scene> <worldInfo title="X3D SpotLight Example"> </worldInfo> <navigationInfo headlight="false"> </navigationInfo> <viewpoint position="0.0 3.0 13.0" centerOfRotation="0.0 0.0 0.0"> </viewpoint> <spotLight color="0.75 1.0 1.0" direction="0.0 -1.0 0.0" intensity="1.0" location="0.0 10.0 0.0" shadows="true" shadowIntensity="0.5" radius="50"> </spotLight> <directionalLight on="false"> </directionalLight> <group> <shape> <appearance> <material ambientIntensity="0.050" diffuseColor="1.0 1.0 1.0"></material> </appearance> <box size="7.0 0.50 7.0" solid="false"></box> </shape> <transform translation="0.0 2.5 0.0"> <shape> <appearance> <material ambientIntensity="0.50" diffuseColor="0.25 0.75 0.75" specularColor="0.20 0.20 0.20" shininess="0.25"></material> </appearance> <sphere radius="1.0" solid="false"></sphere> </shape> </transform> </group> <background skyColor="0.0 0.0 0.0" groundColor="0.0 0.0 0.0"> </background> </scene> </x3d>