Applets

Computer Graphics using Java 2D and Java 3D

Chapter 1

    Demo2D    Example 1.6: A simple Java 2D program
    Demo3D    Example 1.7: A simple Java 3D program

Chapter 2

    Hello2D    Example 2.1: Hello Java 2D
    Spirograph    Example 2.2: A spirograph
    DrawShapes    Example 2.3: Drawing geometric shapes in Java 2D
    AreaGeometry    Example 2.4: Area geoemtry with different operators
    CustomPath    Example 2.5: Custom Path

Chapter 3

    TestColors    Example 3.1: Primary colors
    TestPaints    Example 3.2: Gradient and texture paints
    TestStrokes    Example 3.3: Different strokes
    Transformations    Example 3.4: Affine transforms
    Composition    Example 3.5: Composite transform
    Compositing    Example 3.6: Porter-Duff rules
    TestClip    Example 3.7: Clipping
    FontFun    Example 3.8: Fun with fonts
    GlyphClip    Example 3.9: Clipping using a glyph

Chapter 4

    BSpline    Example 4.1: B-Spline curve
    TestHeart    Example 4.2: A custom primitive
    Mandelbrot    Example 4.4: The Mandelbrot set
    Rain    Example 4.5: A rainy animation
    Clock2D    Example 4.6: A real time clock
    Life    Example 4.7: The game of life

Chapter 5

    Hello3D    Example 5.1: A simple Java 3D program
    Hello3DFullGraph    Example 5.2: Explicitly construct all scene graph nodes
    Hello3DBackground    Example 5.3: A different background
    TestBounds    Example 5.4: Click to change the bounds.
    ChangeBackground    Example 5.5: Changing background

Chapter 6

    TestTetrahedron    Example 6.1: Tetrahedron: A custom geometry
    TestDodecahedron    Example 6.2: Dodecahedron
    ViewData    Example 6.3: 3D data plot
    TestPrimitives    Example 6.4: Primitives
    TestAppearance    Example 6.5: Appearance

Chapter 7

    TestMatrix    Example 7.1: Transformation matrix
    TestTransform    Example 7.2: Transformations in action
    Rotation    Example 7.3: Object rotation
    Mirror    Example 7.4: A mirror reflection
    TestTorus    Example 7.5: Two tori
    Logo    Example 7.6: The Armstrong logo in 3D

Chapter 8

    CompatibilityMode    Example 8.1: A view in compatibility mode
    RotateView    Example 8.2: View rotation
    MultipleViews    Example 8.3: Multiple views
    Picking    Example 8.4: Picking demo

Chapter 9

    TestLights    Example 9.1: Lights
    Lighting    Example 9.2: Material
    TestFog    Example 9.3: Fog
    TextureMapping    Example 9.4: Texture mapping
    CubeTexture    Example 9.5: Texture coordinates

Chapter 10

    Clock    Example 10.1: A clock
    MoveGlobe    Example 10.2: Mouse behaviors
    TestKeyBehavior    Example 10.3: Key behaviors
    MoveView    Example 10.4: View behaviors
    TestPickBehavior    Example 10.5: Picking behaviors
    DataViewer3D    Example 10.6: 3D data viewer

Chapter 11

    TestAlpha    Example 11.1: Alpha waveform
    TestInterpolators    Example 11.2: Interpolators
    Pendulum    Example 11.3: Pendulum
    Morphing    Example 11.4: Morphing
    TestLOD    Example 11.5: LOD
    TestBillboard    Example 11.6: Billboard behavior

Chapter 12

    TestBezierCurve    Example 12.1: A 3D Bezier curve
    TestBezierSurface    Example 12.2: A Bezier surface
    Sound3D    Example 12.3: 3D sound
    Shadow    Example 12.4: A simple shadow
    MovingShadow    Example 12.5: A moving shadow
    Marble    Example 12.7: Solid texture mapping
    Teapot    Example 12.8: The Utah Teapot