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


1 Material blue = new Material( );
2 blue.setDiffuseColor( 0.0, 0.0, 1.0 );
3 Appearance color = new Appearance( );
4 color.setMaterial( blue );
5 Text3D hello = new Text3D( );
6 hello.setFont3D( someFont );
7 hello.setString( "Hello world" );
8 Shape3D sign = new Shape3D( );
9 sign.setGeometry( hello );
10 sign.setAppearance( color );

in Table To:


© 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