|
|
|
 |

February 24th, 2004, 07:28 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by Leif_-:
quote: Originally posted by Gandalf Parker:
But the EASIEST thing Ive found is a blur.
|
You might want to look at adding a bump-map to that as well. (To do that manually in Gimp copy the original map to a new layer, and create an additional empty layer. Fill the empty layer with plasma (Filter -> Render -> Clouds -> Plasma), then select the copy of the map, blur it and choose Filter -> Map -> Bump Map and use the plasma layer as the bump map.)
Next, select by colour to select the borders and capital-dots on the original map and cut these parts away from the copy. Delete the plasma map.) WOw I didnt follow that at all. There are some GIMP threads here that you might want to look at. Click on "search" in the upper right of this forum. I think GIMP in the titles of the threads will get you a short list.
I have a few steps that will do it in GIMP quite nicely. And one of the people here even made a scheme script-fu of it for me. But I still havent gotten it to work in a batch mode which is what Im really wanting.
If anyone is REALLY into GIMP Id rather see someone tackle the map generators that are in gimp already.
__________________
-- 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!)
|

February 24th, 2004, 09:04 PM
|
 |
First Lieutenant
|
|
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
[quote]Originally posted by Gandalf Parker:
Its a race. So far I think 3 people have offered to take a stab at a Windows compile.
PhilD: do you want to host the Win Version also. Im thinking its basically your puppy for control purposes. Or at least you get first shot at it if you want it.
I'd rather not have executables on my "site", though I'll gladly link to them. If I understand Leif's comment, it's a very minor change I need to make so it becomes Windows-compatible (provided one knows how to compile).
Actually, there are a few tweaks I'd like to try, and minor features I'd like to add, if I can find the time (who am I kidding? I'm on vacation this week, so I have to choose between PLAYING this game and PROGRAMMING this stupid generator...)
Quote:
On the other notes, YES those would be great.
Doing the 2 tga might make the blur project work.
And Id love to see what we get if each level/richness variation is given a slightly different color. The blur project might not be needed at all. With some tweaking we might get it to smoothly transition appropiately. Maybe even knock the GIMP project out of the running if we can get it close to this....
|
Most likely, GIMPing the whole thing would be much simpler if somebody knows how to do it, but... I'll add my changes.
(and the picture you linked is nice, but hard on the eyes - it looks like my brand-new 19" LCD monitor is all blurry... )
|

February 24th, 2004, 09:04 PM
|
 |
First Lieutenant
|
|
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by Leif_-:
quote: Originally posted by PhilD:
More specifically: I'd say the program is pretty much standard C. Not really my problem if people cannot get it to compile on their system
|
It was pretty much this that was a problem, otherwise it went fine: http://www.meangene.com/notes/putc.html You mean I only have to change the fopen() calls and it will work on Windows?
|

February 24th, 2004, 09:05 PM
|
Second Lieutenant
|
|
Join Date: Sep 2000
Location: Ohio, USA
Posts: 454
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Well, as Leif_- stated, it didn't seem too hard to get compiled. There were a few quirks, but nothing drastic. It seems like it's working fine, but then I've no .tga viewer on this machine, so I'm taking on faith that it functions properly. Anyway, if anyone wants to grab it, it is for the moment at:
http://gozips.uakron.edu/~emil/dommap.zip
A sample output is at:
http://gozips.uakron.edu/~emil/dommap.zip
The program is of course provided as-is, no guarentees, use at your own risk, blah, blah, blah. If it's not working, let me know, and I'll try to fix it (within my capabilities). And I'd appreciate if, should it prove to be correct and of use, for someone to find it a more permanent home than where it currently resides...
|

February 24th, 2004, 09:08 PM
|
Second Lieutenant
|
|
Join Date: Sep 2000
Location: Ohio, USA
Posts: 454
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
You mean I only have to change the fopen() calls and it will work on Windows?
|
Well, I had to change random/srandom to rand/srand, and maybe tweak a few other things (and I don't know, and can't currently test, if my port functions correctly, but it seems to do so), but yeah, there wasn't much to change.
[Edit: And per Leif_-'s suggestion, I changed the fopen().]
[ February 24, 2004, 19:10: Message edited by: E. Albright ]
|

February 24th, 2004, 09:25 PM
|
 |
First Lieutenant
|
|
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by Leif_-:
quote: Originally posted by Gandalf Parker:
But the EASIEST thing Ive found is a blur.
|
You might want to look at adding a bump-map to that as well. (To do that manually in Gimp copy the original map to a new layer, and create an additional empty layer. Fill the empty layer with plasma (Filter -> Render -> Clouds -> Plasma), then select the copy of the map, blur it and choose Filter -> Map -> Bump Map and use the plasma layer as the bump map.)
Next, select by colour to select the borders and capital-dots on the original map and cut these parts away from the copy. Delete the plasma map.) OK, so now we have someone who really knows what he's talking about... cool
I tried to do what you said: if you check the "compensate darkening" on the bump-mapping filter, it looks nice... only, now the sea's all bumpy. I thought I'd select capital dots, plus borders, plus the sea, and invert the selection before blurring and bump-mapping, but then, the problem seems to be that colors from the unselected part still blur (which means the area around capital dots will be lighter); and, if I cut this part away, it will either blur to background, or blur to transparent if I make the background transparent.
I don't know if all this is clear...
OK, now here's what I get, starting with a dommap output with default settings except a 500x500 size...
Original dommap output
(JPG Version)
Same map after blurring and bump-mapping
(JPG Version)
What do you all think?
(The .map file, in case you like it)
|

February 24th, 2004, 09:28 PM
|
 |
First Lieutenant
|
|
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by E. Albright:
quote: You mean I only have to change the fopen() calls and it will work on Windows?
|
Well, I had to change random/srandom to rand/srand, and maybe tweak a few other things (and I don't know, and can't currently test, if my port functions correctly, but it seems to do so), but yeah, there wasn't much to change.
[Edit: And per Leif_-'s suggestion, I changed the fopen().] OK; when someone can confirm that it runs fine, and produces viewable output, could you email me the source at: duchon (dot) philippe (at) free (dot) fr
(I'd like to reconcile the Versions, as much as possible, in case I decide to tweak features...)
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|