.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #1  
Old August 28th, 2004, 09:23 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #2  
Old August 28th, 2004, 10:25 PM

Thufir Thufir is offline
First Lieutenant
 
Join Date: Jul 2004
Location: California
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Thufir is on a distinguished road
Default 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?
Reply With Quote
  #3  
Old August 28th, 2004, 10:38 PM
Arryn's Avatar

Arryn Arryn is offline
Major General
 
Join Date: Jan 2004
Location: twilight zone
Posts: 2,247
Thanks: 0
Thanked 0 Times in 0 Posts
Arryn is on a distinguished road
Default Re: can you speak C? fractal terrain? vga? tga?

DomMap is available for download from my site. Go have a look-see.
__________________
Visit my Dominions II site
Reply With Quote
  #4  
Old August 28th, 2004, 10:52 PM

Thufir Thufir is offline
First Lieutenant
 
Join Date: Jul 2004
Location: California
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Thufir is on a distinguished road
Default Re: can you speak C? fractal terrain? vga? tga?

Quote:
Arryn said:
DomMap is available for download from my site. Go have a look-see.
Got it - thanks. I'll check it out.
Reply With Quote
  #5  
Old August 29th, 2004, 01:17 AM
Cainehill's Avatar

Cainehill Cainehill is offline
Lieutenant General
 
Join Date: Mar 2004
Location: Albuquerque New Mexico
Posts: 2,997
Thanks: 0
Thanked 0 Times in 0 Posts
Cainehill is on a distinguished road
Default 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.
__________________
Wormwood and wine, and the bitter taste of ashes.
Reply With Quote
  #6  
Old August 29th, 2004, 09:21 AM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default 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.
Reply With Quote
  #7  
Old August 29th, 2004, 10:26 AM
Arryn's Avatar

Arryn Arryn is offline
Major General
 
Join Date: Jan 2004
Location: twilight zone
Posts: 2,247
Thanks: 0
Thanked 0 Times in 0 Posts
Arryn is on a distinguished road
Default Re: can you speak C? fractal terrain? vga? tga?

Quote:
Gandalf Parker said:
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).
I just took a quick peek at the code and if I'm not mistaken, the relevant code snippet that is responsible for this is to be found in the function "dump_color" in the file "targa.c" (very first function in that source file). Assuming I've correctly ID'd the responsible code segment, "fixing" it should be trivial.
__________________
Visit my Dominions II site
Reply With Quote
  #8  
Old August 29th, 2004, 10:30 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?

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
__________________
"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
  #9  
Old August 29th, 2004, 11:09 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: can you speak C? fractal terrain? vga? tga?

Quote:
Leif_- said:
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
Looks MUCH better to me. Thank You. Here is a quick test run on default settings.
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.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #10  
Old August 29th, 2004, 11:13 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?

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.
__________________
"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
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:36 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.