terrain vocabulary
Factor handbook ยป Vocabulary index


Summary
Walk around on procedurally generated terrain

Metadata
Tags:demos, opengl, graphics
Authors:Joe Groff, Doug Coleman


Words

Tuple classes
ClassSuperclassSlots
player tuplelocation yaw pitch velocity velocity-modifier reverse-time
terrain-world game-worldplayer sky-image sky-texture sky-program terrain terrain-segment terrain-texture terrain-program terrain-mesh history


Ordinary words
WordStack effect
(collide)( segment location -- location' )
<player>( -- player )
BOUNCE( -- value )
COMPONENT-SCALE( -- value )
FAR-PLANE( -- value )
FOV( -- value )
FRICTION( -- value )
GRAVITY( -- value )
JUMP( -- value )
MOUSE-SCALE( -- value )
MOVEMENT-SPEED( -- value )
NEAR-PLANE( -- value )
PLAYER-HEIGHT( -- value )
PLAYER-START-LOCATION( -- value )
SKY-PERIOD( -- value )
SKY-SPEED( -- value )
VELOCITY-MODIFIER-FAST( -- value )
VELOCITY-MODIFIER-NORMAL( -- value )
apply-friction( velocity -- velocity' )
apply-gravity( velocity -- velocity' )
clamp-coords( coords dim -- coords' )
clamp-pitch( pitch -- pitch' )
collide( world: terrain-world player: player -- )
eye-rotate( yaw: float pitch: float v: float-4 -- v': float-4 )
forward-vector( player -- v )
frustum( dim -- -x x -y y near far )
handle-input( world -- )
jump( player -- )
look-horizontally( player x -- )
look-vertically( player x -- )
pixel-indices( coords dim -- indices )
rightward-vector( player -- v )
rotate-leftward( player x -- )
rotate-rightward( player x -- )
rotate-with-mouse( player mouse -- )
save-history( world player -- )
scaled-velocity( player -- velocity )
set-modelview-matrix( gadget -- )
set-texture-parameters( texture -- )
sky-gradient( world -- t )
sky-theta( world -- theta )
terrain-game( -- )
terrain-game-attributes( -- value )
terrain-height-at( segment point -- height )
terrain-vertex-size( -- value )
tick-player( world player -- )
tick-player-forward( world player -- )
tick-player-reverse( world player -- )
walk-backward( player -- )
walk-forward( player -- )
walk-leftward( player -- )
walk-rightward( player -- )


Class predicate words
WordStack effect
player?( object -- ? )
terrain-world?( object -- ? )


Files


Metadata files


Children from resource:extra
VocabularySummary
terrain.generation
terrain.shaders