BSUNCUBE(6)

NAME
bsuncube - view 3-D Sun logo

SYNOPSIS
/usr/demo/bsuncube

DESCRIPTION

bsuncube allows the user to view a cube from various positions with hidden faces removed. The faces of the cube consist of the Sun logo. The viewing position is selected using the mouse. Using the SunCore Graphics Package, a 3-D projection is drawn on the Sun Monochrome Bitmap Display.

The program operates in two modes: DisplayObject mode and SelectView mode. The program starts in DisplayObject mode:

    DisplayObject: The cube is displayed in 3-D perspective with hidden faces removed. Type q while in this mode to exit the program. Press RIGHT mouse button to switch to SelectView mode.

    SelectView: Schematic projections of the outline of the cube are shown and the mouse is used to select a viewing position. Use LEFT mouse button to set x and MIDDLE mouse button to set y in the Front View. Use MIDDLE mouse button to set z in the Top View. Press RIGHT mouse button to switch to DisplayObject mode.

The view shown in DisplayObject mode is drawn using the conventions that the viewer is always looking from the viewing position toward the center of the cube and that the positive y axis on the screen is the projection of the positive y axis in 3-D cube coordinates.