View Single Post
  #23  
Old August 31st, 2004, 11:12 AM

Leif_- Leif_- is offline
Sergeant
 
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
Leif_- is on a distinguished road
Default Re: can you speak C? fractal terrain? vga? tga?

Quote:
Gandalf Parker said:
Very interesting. I take it for granted that the "amount of brightening" and the "amount of shading" variables refer to the range of light and the range of dark that the plains pixel colors will be shifted?[/b]

Pretty much, yes.

Quote:
I understand the elevation reference. Whats the "shadow map" reference? Possibly something like the effect we got from using the "bumps" filter? A bit of texturizing so that the color-by-elevation was more landscapey and less smooth? (I havent played with it yet to see)

The amount of shadowing in position (x,y) depends on the elevation at position (x,y). However, as the terrain in position (x,y) also depend on the elevation, this makes for rather subtle differences; since all the terrain of one type would normally be at similar elevations and thus be brightened or shaded to the same level. (For instance, since almost all low-level elevation positions will be water, you won't see much shading unless you turn on the shading of water.)

To allow for more dramatic shading/brightening, I added an additional "shadows map" which is also used to shade the colours. By changing the factors for the elevation and the shadow shading and brightening, you can change from a very subtle to a more dramatic (but less natural) shading.

Quote:

This is turning out SO nice compared to what I found in all my hunts for a random generator, that it might want to be used outside of the Dom2 community. Would it be hard to add a switch to turn off the dominion items such as capitals and borders?

I don't know - I haven't looked at that part of the code. My assumption is that it's pretty straight-forward, though.
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
Reply With Quote