Posted by DaRKFoRCe on 2000-01-28
Hi, >hi >i am starting to make a fractal terrain generator, u know the kind which >scrolls over landscapes incorporating mountainous >terrain,plains,rivers,trees etc. i will be using openGl and coding in C . my >problem is that its not easy to find sites specifically related to what i >am interested in. if anyone has worked on something like this could u give >me some guidance? anything will do---- links,sample code, theory, anything! >also, does anyone know if there is an online version of 'fractal geometry of >nature' out there? > >thanks in advance... >Vishal There is many ways to accomplish this, here goes... Here is the URL of some graphics algorithms : http://math.berkeley.edu/~jlevenbe/grafalgo.html Maybe you can find some of it there. Also, you may want to visit The Numerical Recipes homepage : http://www.nr.com/ You will surely need a good random number generator. The C's srand() and rand() may just not good enough (read the Random Number section on this homepage to find out why). I've also got a .html that describes the Diamond-Square algorithm. I just don't remember where I got it. Can mail it to your private e-mail if you want. Last, you can try to find the homepage of FREECIV, a free civilization game on a search engine (don't remember the URL). This game uses random terrain generation. You can download the sources (in C), or you can ask the programmer via e-mail. PS: I've also have written some test programs using Diamond-Square, Fault Cosine and Snow algorithms. Just tell me if you want the sources (in C, compiled with DJGPP), but it's rather messed up. DaRKFoRCe darkforce@xxxxxxxxxxx.xxx Sponsored by Wrox Press - www.wrox.com. Programmer to Programmer (TM) To signoff send a mail to listserver@xxxx.xx.xx with "signoff tcg" in the body of your message.
Previous post | Next post | Timeline | Home