LandscapeScene Class Reference

A landscape generated by perlin noise. More...

#include <LandscapeScene.h>

Inheritance diagram for LandscapeScene:

Scene List of all members.

Public Member Functions

void Init ()

Private Member Functions

GraphicalObjectGeneratePart (float *height_field, int min_x, int max_x, int min_y, int max_y, int total_x, int total_y, float stride)
GroupObjectReplicatePatches (GraphicalObject *one_patch, float size, int min_x, int max_x, int min_y, int max_y)
void RandomRotate (GraphicalObject *patch, float x_offset, float y_offset, float size)

Private Attributes

float * height_field

Detailed Description

A landscape generated by perlin noise.

Scene with a landscape generated by perlin noise. The landscape consists of a set of patches with size 64x64. These patches are constructed from a heightfield that consists of 513x513 values. Additionally, several instances of the same height field are repeated along the x and y direction to make the are even bigger (those components are rotated randomly in order to make this repetition less appearant to the eye).

Definition at line 17 of file LandscapeScene.h.


Member Function Documentation

void LandscapeScene::Init  )  [virtual]
 

Builds the scene.

Reimplemented from Scene.

Definition at line 8 of file LandscapeScene.cpp.


Member Data Documentation

float* LandscapeScene::height_field [private]
 

The height field of the landscape

Definition at line 27 of file LandscapeScene.h.


Generated on Sun Jul 2 13:20:40 2006 for Demo by  doxygen 1.4.6-NO