Advertisement

Basic terrain rendering...

Started by November 11, 2000 10:08 AM
3 comments, last by JimmyP 24 years ago
I need some documentation on basic terrain rendering stuff.I know there are some neat stuff on roam engines on gamasutra etc. but I can''t do that if I don''t know basic stuf(tesselation etc.) and I don''t like the copy/paste approach.Can anyone give me any good links with source code(opengl pref. C but C++ would work) and documentation?Thanx in advance -=Jimmy=-
-=Jimmy=-
http://www.vterrain.org
http://www.google.com

Advertisement
I just checked vterrain.org a couple of miunutes ago.I could only find papers on LOD algorithms and roam there.They are intresting but I need some info on the basic stuff first.Is there anything there for creating a basic terrain out of a height map?And if not where else can I find what I''m looking for.I''ll check vterrain.org again though,I kinda was in a hurry the first time.

-=Jimmy=-
-=Jimmy=-
Here''s something Basic:

Draw a heightmap. Load in the heightmap. Create a grid with the resolution of your heightmap. Every vertex in the grid has a corresponding pixel in the heightmap. Adjust each pixel''s Y position based on it''s corresponding pixel value. Fill in the grid with a long Triangle Strip.

That''s basic, but it should get you started
Yes,I could figure it out so far but if it''s that simple it''s quite useless to me since I can''t use this code for any other approach(i.e roam,lod).I tried using binary triangle trees yesterday but the problem is that I have to write a bunch of code for splitting nodes and calculationg the coordinates etc and I can''t see if it works till the last minute.Then I get a segmentation fault(a rather general error in linux) and I''m supposed to find the problem in everything that I''ve written so far,wich isn''t easy.Also not getting any results makes it kinda difficult to keep working since you quickly get bored.That''s why I need a basic tut on terrains using C and OpenGL.So if anyone knows of one,lemme know.
-=Jimmy=-

This topic is closed to new replies.

Advertisement