Controlling Lights
Like VRML, Java 3D has a set of leaf nodes to create and manipulate lights:
Light
AmibientLight
DirectionalLight
PointLight
SpotLight
PointLight bulb = new PointLight( );
bulb.setColor( yellow );
bulb.setPosition( 0.0, 5.0, 3.0 );
Previous slide
Next slide
Back to first slide
View graphic version