lit-basic

Description

This program tests the basic lighting channel controls using one light positioned at the viewpoint and directed down the Z-axis. Three identical models are rendered, each rotating about a different axis. You can select any of the GXDrawDone* procedural models, change ambient and material register colors, and turn smooth shading on and off.

Coverage

This test uses only the GX_COLOR0 channel.

Functions Parameters Description
GXSetChanCtrl  Channel enable Toggle ON/OFF.
Material color source Always register source.
Ambient color source Always register source.
GXSetChanAmbColor Ambient color Cycles through 6 colors.
GXSetChanMatColor Material color Cycles through 6 colors.

Using the Demo

The test prints a menu of choices.

The X/Y buttons navigate up and down in the menu.

The L and R buttons cycle through states of the current menu item.

The A button dumps the current state settings.

START exits the test.

Snapshot

Channel disabled, material = red, ambient = black, and model type is cylinder.

lit-basic-0.jpg (9916 bytes)

Channel enabled. Material = black, ambient = white, and model type is sphere.

lit-basic-1.jpg (6173 bytes)

Channel enabled. Material = green, ambient = gray, and model type is torus.

lit-basic-2.jpg (9631 bytes)

Channel enabled. Material=white, ambient=blue, and model type is icosahedron.

lit-basic-3.jpg (9904 bytes)

Required Data Files

None.

Revision History

2006/03/01 Initial version.


CONFIDENTIAL