Basic HTML version of Foils prepared May 19 99

Foil 41 Java 3D example

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


Material blue = new Material( );
blue.setDiffuseColor( 0.0, 0.0, 1.0 );
Appearance color = new Appearance( );
color.setMaterial( blue );
Text3D hello = new Text3D( );
hello.setFont3D( someFont );
hello.setString( "Hello world" );
Shape3D sign = new Shape3D( );
sign.setGeometry( hello );
sign.setAppearance( color );



© 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