This chapter describes a Java 3D example called Checker3D:
it creates a scene consisting of a dark green and blue tiled
surface with labels along the X and Z axes, a blue background,
and a floating sphere lit from two different directions. The
user (viewer) can move through the scene by moving the mouse.
The first screenshot on this page show the initial view; the
second image was taken after the user had moved.
This chapter will discuss the following Java 3D techniques:
Canvas3D creation and its integration with Swing;
scene graph creation;
ambient and directional lighting;
backgrounds using constant colour;
the QuadArray, Sphere, and Text2D geometries;
shape colouring and lighting;
shape positioning;
viewpoint positioning;
viewpoint movement using OrbitBehavior;
how to generate a scene graph diagram.
Much of the code in this example will be reused in later chapters.