TEMPLE
--------


How To Run
----------
The demonstration is a single self-contained file which can be run from any directory by simply double clicking on the executable.


Requirements
------------
* Any DX7 compatible graphics card;
* DirectX runtime libraries v7.0 or greater.


Command Line Parameters
-----------------------
FULLSCREEN
Forces the demonstration to be run in full screen mode.

BENCHMARK
The graphics card will render the demonstration as fast as possible. It will make two passes with the results being printed after the second pass.

AUTOQUIT
If used with BENCHMARK, it will terminate the demonstration as soon as the benchmark has been computed.

FSAA
The demonstration will be run in full screen anti-aliasing mode (not permitted during benchmark mode). 

To show the demonstration running in full-color mode, change the desktop to 32bpp. Then run the demonstration. Likewise, to show the demonstration running in 16bpp mode, change the desktop to 16bpp before running the demonstration.

Note: When running the demonstration in benchmark mode, a file called "XxYxBPPprocessor@N MHz [Video card].csv" will be created, where the 'blanks' will be filled in by the appropriate infomation from the video card/processor stats.  The file is a comma-separated-value, so it can be either read in a text editor or imported into EXCEL for quick graphing.  The details logged are the contents of the benchmark window.


Demo Keys
---------
ALT+ENTER
Changes the mode from windowed to full screen or vice-versa.


What does it show?
------------------
This demonstration was designed to resemble a true game scenario and to show what can be done with several levels of multi-texturing. The demonstration takes advantage of the available graphics hardware (for instance, two textures per pass are used on an Nvidia Geforce2, whilst KYRO uses up to six textures per pass). Various special effects are shown including particle systems, shadows, spring systems and animated textures, all of which may appear in a typical game.

Initially the KYRO II logo is presented. Once the demonstration has completed loading from disc, the screen fades up from black to show the ancient pyramids.

The sky has five layers of texture to give an impression of depth (via cloud parallax) - no additional polygons are required for these layers.

The pyramids and the floor are textured using three layers, including an animated light map representing the shadows cast by the moving clouds.

The other two maps are a detail map (showing stone grain when the geometry is close to the camera) and a diffuse color map.

The scene then shows the approach to the entrance of the temple via a short corridor. Portaling is used to prevent unnecessary overdraw by not rendering the inside of the temple until it is visible, at which point the temple exterior is not rendered.

The column room contains multiple pillars, showing off:
1	Slight overdraw
2	DXT1 textures (everywhere, except flames and environment mask in bowls)
3	Environment mapping (bowls)
4	Real-time lighting (look at roof)
5	Particles (alpha blending)
6	Multi-texture

The bowls next to each pillar use environment map, specular mask, bump map and diffuse textures. The specular mask is used to show a stippled surface to the metal. The camera flies through the room and down another corridor (at which point, portaling kicks in again, hiding the geometry in the pillar room and revealing the geometry in the pool room). 

The pool room shows off:
1	Multi-texture (5 layers in pool, 6 on floor)
2	Environment mapping and masking (pool floor)
3	Bump mapping (pool steps, columns, flooring)
4	Real-time lighting (flickering light on walls)
5	DXT1 textures (all, except pool transparency, flames and environment mask)

The six layers of texture on the pool floor are:
1	Diffuse texture
2	Environment map
3	Environment mask
4	Light map
5	Detail map
6	Bump map

The environment mask is shown off best when the camera spins around the pool, showing the environment masking. The reflections on the floor are limited to the circular marble inlay and centre of the flag stones due to wear and tear. Note that the masking is carried out with multiple textures instead of high definition polygons (the pool floor is made up of one large map (1024x1024) up to the edge of the pillars).

The five layers on the pool are:
1	Caustics
2	Refraction map
3	Procedural alpha map (blends refraction to reflection)
4	Reflection map
5	Pool scum

The camera then flies into another portaling corridor, finishing in the chip room. The cat statues cast real-time shadows from the moving will-o-the-wisp lights, which are represented by small particle systems. The statues have lightning leaping between them, with the KYRO chip spinning above the group of statues.

This scene uses a high number of polygons - over 2750 faces in the chip alone. The KYRO chip surface is bump mapped, environment mapped and masked - lettering is glossy compared to chip surface, and the chip pins are metallic.

The camera zooms into the chip to show the KYRO logo, finally fading to black. The demonstration then loops back to the initial pyramid scene.

KYRO Features
-------------
The following KYRO features are utilized in this demonstration:

* Multi-texturing
Many objects have multiple textures that can be rendered in one pass on the KYRO.

* FSAA
When run in FSAA mode, this demonstration achieves good frame rates with enhanced visuals. 

* Internal True Color
The demonstration exhibits high visual quality even with 16-bit color depth. 

* Always-on Stencil Buffer
The shadows use the stencil buffer and unlike most other graphics cards, they are visible in 16-bit and 32-bit modes.


Credits
-------
The Temple demonstration was created by the Graphics Products Division of STMicroelectronics. 

The main executable was compressed using UPX, Copyright (c)1996-2001 Markus Oberhumer & Laszlo Molnar (http://wildsau.idv.uni-linz.ac.at/mfx/upx.html or http://upx.sourceforge.net).

Thanks to the Developer Relations Team at PowerVR.

Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics.

The ST logo is a registered trademark of STMicroelectronics
KYRO is a trademark of STMicroelectronics
PowerVR and the PowerVR logo are trademarks of Imagination Technologies Limited
(c) 2001 STMicroelectronics - All Rights Reserved

