Basic HTML version of Foils prepared May 19 99

Foil 47 Controlling Lights

From Java Media Framework API's Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Byeongseob Ki, Scott Klasky, Nancy McCracken


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 );



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999