Terrain with foliage example

Revision as of 19:36, 17 September 2017 by Corey (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Terrain with foliage example


This is a terrain with a lot of foliage, lens flare, and sun. You can actually "paint" the splatting into a texture instead of relying on the height and some dubious alpha values. Sources are included. Compatible with with jPCT 1.20 or higher.

Screen shot


Program keys

1+2 : Move the sun. (The lens flare doesn't take the mountains into account for performance reasons.)
T: toggle trees (on by default)
D: toggle detail mapping (off by default)
ESC: Exit

FPS will be printed to the console each second.

Download Link


Final words

It's pretty hacky, especially processing of the trees and generating the terrain texturing could be improved. It is recommended that you optimize the source if you intend to use it for a project.