Basic HTML version of Foils prepared April 7 1998

Foil 35 Java 3D example

From Overview of Java2D and Java3D Frameworks CPS616 Web Technologies -- Spring 98. by Geoffrey C. Fox


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 Sun Nov 29 1998