|
|
|
|
| |
Terrain Demo on Radeon®
|
| |

|
| |
Figure 1 - Landscape shot from the terrain demo
|
| |
The RadeonTerrainDemo sample is designed to be a polygon
pump. The goal of the app is to push as many polygons
as possible at the driver. In order to acheive this goal,
all polygons are preclassified by a "material type". The
"material" is actually all relavent rendering state such
as which texture is applied to the poly. This allows the
app to only use each distinct rendering state at most
once per frame.
In order to calculate the potentially viewable set of
polygons each frame, the program uses an octree culling
algorithm. The polygons are all presorted into an octree.
Each frame, the app calculates the planes defining the
view frustum. The app next descends the tree, culling
octrants that fail the planar half-space culling. Once
the algorthm reaches a node, it places pointers to the
lists of polygons into queues based on the render states
they require.
|
| |
- RadeonTerrainDemo Command Line Switches
-
- 640x480,
- 800x600,
- 1024x768,
- 1280x1024,
- 1600x1200 - Change screen resolution (640x480
is a default)
- notnl - Disable TnL renderer
|
| |
| |
- RadeonTerrainDemo Controls
-
|
| |
Downloads
|
| |
Note: The source code and media should be unzipped
into the following recommended directory structure to
ensure you can easily compile and run the executable.
Radeonxxxxxx.zip -> x:\atiddk\Direct3D\Radeonxxxxxx
media.zip -> x:\atiddk\media
RadeonTerrainDemo.zip
media.zip
Back
to Samples Page
|
| |
| |
 |
|
|
|