Framework 3 (Last updated: February 6, 2017)Framework 2 (Last updated: October 8, 2006)Framework (Last updated: October 8, 2006)Libraries (Last updated: September 16, 2004)Really old framework (Last updated: September 16, 2004)
Infinite Terrain II
Thursday, March 9, 2006 | Permalink
InfiniteTerrainII.zip (939 KB)
Required:R2VB or VTF
Pixel shader 2.0Recommended:R2VB
A bit over three years ago I made the Infinite Terrain
demo, which generated new terrain on the CPU as it needed it and uploaded to a vertex buffer. With R2VB there's now a possibility to generate terrain on the GPU, and that's what this demo does. First a pixel shader generates a noise function representing the height into a texture. This texture is then sampled in a second pass to generate the normals. The normal and height is written to a RGBA16F render target which is later used as a vertex buffer. If half floats are not supported in the vertex declaration RGBA32F is used instead, and if R2VB is not supported VTF is used instead.
This demo should run on Radeon 9500 and up and GeForce 6 series and up.