The MASM Forum Archive 2004 to 2012

Project Support Forums => OpenGL Forum => Topic started by: Krozgen on May 26, 2006, 03:06:54 AM

Title: Terrain...?
Post by: Krozgen on May 26, 2006, 03:06:54 AM
Sucks about the forums :(

I actually was thinking about this based on an OpenGL tutorial posted on code project - could one of the members here possibly make a terrain tutorial (loading a greyscale bitmap in which, say, the color represents the y and the row/col of the pixel represents x and z)... maybe just demonstrate how to load the bitmap and go through pixel by pixel as a start. If they could make it for the framework, that'd be even better.

I don't have the link to the article, and don't have the time right now to search for it, but it'd be seriously appreciated. Thank you in advance.

- Kroz
Title: Re: Terrain...?
Post by: Mincho Georgiev on May 26, 2006, 06:36:00 AM
http://www.codeproject.com/opengl/OPENGLTG.asp
Title: Re: Terrain...?
Post by: zooba on May 26, 2006, 11:39:10 AM
The algorithm itself is very nicely expressed in C and there are heaps of tutorials which already do this.

An implementation for the framework may have more use. I think I have one sitting around somewhere, though it'll be old and messy. Realistically, this is a good coding exercise anyway.

Cheers,

Zooba :U
Title: Re: Terrain...?
Post by: hitchhikr on May 29, 2006, 04:01:29 PM
I've planed to do a heighmap example too, yes.
Title: Re: Terrain...?
Post by: Scorpie on August 16, 2006, 03:28:53 PM
I have some old code for this laying around too but it isn't that hard to do it yourself and as zooba said, this is a nice exercise :)

I used this site to help me out:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=34

and
http://nehe.gamedev.net

for more OpenGL tutorials

Edit: the tutorial is in C++ btw