Terrain Media Generator

Miscellaneous Forums/Blitz Showcase/Terrain Media Generator

You mean a bit like this..

; -------------------------------------------------------------------------
; Function to Give a percentage of the TExture to be drawn
; -------------------------------------------------------------------------
Function LEV_TexFactor#(h0,h1,h2)

	Divisor# = h1-h0

	percent# = Float(Float(Divisor) - Abs(h1-h2)) /Divisor
	
	If percent < 0 Then 
		percent = 0
	ElseIf percent > 1 Then
		percent = 1
	EndIf
	
	Return percent#

End Function


You may also be interested in the modifcations I made to the hill algorithm which allows you to generate islands with coves etc.. (makes them horseshoe shaped).