java - Advanced Terrain Generation -
i need generate terrain. easy enough might say, need create biomes if will(can't think of name) , lakes, trees , on height map.
so have no idea how use height map or perlin noise. if me out. need 3d , 2d help. if explain math behind it, me understand good.
that such broad question impossible answer. there lots of different ways go terrain generation , lots of ways implement them well. depending on graphics hardware targeting , needs programmable shaders or old fixed function pipeline. can implemented in directx or opengl. i'm assuming looking for...
this done so-called heightmap. took black , white image darker spots representing low elevations , lighter spots representing high. converted image single color channel (red in case, thought irrelevant choose). started making grid of triangles. walked through image , used pixels difference in 0-255 range change 'y' vertex position.
the biggest problem encountered getting normals correct lighting worked. problem using heightmap not scale large terrains...image size gets out of hand fast.
as perlin noise...that procedural technique bake map using tool l3dt (or paint.net) or in shader, real-time. broad question.
i suggest check gamedev.net forums...there bound plenty of open ended questions terrain there. stackoverflow terrible place vague questions. check tutorial series...it written in xna, ideas apply language...
http://www.riemers.net/eng/tutorials/xna/csharp/series1/terrain_from_file.php
Comments
Post a Comment