![]() |
can you speak C? fractal terrain? vga? tga?
There is a utility called DomMap which generates random maps for Dominions (raw C code, source code available). It was written for Dominions 1 where the map images were 16 colors. A few of us have updated bits and pieces so that it works with Dom2 but there is more that I would like to see touched up.
The fractal routine sems to generate alot of variable heighth points but then it squeezes them into 16 colors. Id like to have that part "undone" and see if we cant get a vga smoothing look (I can provide visual examples of all of this if it helps). There are other things we could use but thats a main point for me. |
Re: can you speak C? fractal terrain? vga? tga?
Probably not - but I wouldn't mind looking. I take it there is some C source to start with? And would there be a reference on fractals that the original programmer used when writing his code?
|
Re: can you speak C? fractal terrain? vga? tga?
DomMap is available for download from my site. Go have a look-see.
|
Re: can you speak C? fractal terrain? vga? tga?
Quote:
|
Re: can you speak C? fractal terrain? vga? tga?
I'll see about taking a look, if I have the time and energy - map conVersion / extraction utilities were among the programs I developed in my previous life, albeit (because of X quirks and needing a bunch of overlays) the maps were all in 256 color mode. |
Re: can you speak C? fractal terrain? vga? tga?
As the one who tweaked (not much more than that) dommap so as to move it from dom1 to dom2 format, I can say that the fractal algorithms are basically undocumented.
|
Re: can you speak C? fractal terrain? vga? tga?
Quote:
|
Re: can you speak C? fractal terrain? vga? tga?
Well, it's pretty ugly coding, and it doesn't play well with the prettifying script, but I've hacked something together. Have a look here:
http://home.Online.no/~rmoldskr/Dominions/DomMap.zip |
Re: can you speak C? fractal terrain? vga? tga?
Quote:
http://www.dom2minions.com/~dominion/full_fract.jpg Now I need to see if it messed up the #terrain code EDITED: Ok the terrain is fine. WHile you were in there did you happen to notice anything that would make it run alittle "nicer"? The automatic generation scripts have to be carefully scheduled on my system to avoid trying to run when other cpu/memory hogs are running. |
Re: can you speak C? fractal terrain? vga? tga?
I'm afraid not - I didn't really look at the inner loops in much detail. I added a third fractal map, though; which will slow things down a little.
|
All times are GMT -4. The time now is 12:13 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.