![]() |
Perl or Scheme (or Lisp) programmers?
OK I had good luck at putting out a call for C and Basic programmers before. This site...
http://imagic.weizmann.ac.il/~dov/gimp/ Has some fairly clear examples of scripts for GIMP which is a programmable Paint program used by the devs and others of us. We have some desires in the area of batch-generating maps for the game. In particular I have an interest in a script to make GIMP do this... load .tga and open layers for 3 colors rclick image, select-> by color, choose color, Shft-Ctrl-L go to layers, clik "keep transp", clik "new layer" next color after getting 3 transparent floating layers, select blur Ctrl-M to merge all layers then save the 3 colors are .. 255/255/255, 195/87/44, 44/135/195 |
Re: Perl or Scheme (or Lisp) programmers?
I have a fair amount of experience with scheme, though I've used it mainly for small scale experiments and projects, not scripting. However, I'll try to look into this over the next few days (if someone doesn't beat me to it).
[ February 06, 2004, 22:03: Message edited by: gibson ] |
Re: Perl or Scheme (or Lisp) programmers?
Here you go Gandalf, I think this should do what you'd like.
Dominions II Selective Map Blur I grabbed a portion of a tiny map you'd generated and gave it a whirl, and I thought the result was a little easier on the eyes: Original: http://www.rose-hulman.edu/~kellyjw/pics/unmodified.png Blurred: http://www.rose-hulman.edu/~kellyjw/pics/blurred.png Let me know how it works and if you need anything else. |
Re: Perl or Scheme (or Lisp) programmers?
...
I'm no Gandalf, but the modified map certainly looks much better for my eyes! Thanks! |
Re: Perl or Scheme (or Lisp) programmers?
GREAT! http://www.sdmud.org/~gandalf/smile/clap.gif (any suggestions on running it from a script for batch processing? I can probably search and find something)
Care to give some thought on how to do border edging (like the edging tool) to large areas of color on one of GIMPs maps made with the land scrpts? |
Re: Perl or Scheme (or Lisp) programmers?
If the script you'd like to call it from is in Script-Fu, then you should be able to just call it normally (i.e. (script-fu-blur-random-map <filename string> '(255 255 255) '(195 87 44) '(44 135 195))). I'm not sure what else you would write a GIMP script in, but I'd bet you can call it one way or another.
I'm not quite sure what you mean by the edging question. I'm a GIMP novice myself, so if its a technical question about GIMP I doubt I'll be of much help http://forum.shrapnelgames.com/images/icons/icon7.gif . |
Re: Perl or Scheme (or Lisp) programmers?
Awww rats. I cant get it to register (Im trying to use GIMP in a non-GUI mode). Some of the other GIMPers here will like it though.
|
Re: Perl or Scheme (or Lisp) programmers?
I looked into it a bit more and think this might work in batch mode:
Selective Blur Batch Script I wasn't able to get it to work right from the command line on Win32, but I think GIMP batch processing on Win32 is somewhat lacking. Let me know if you have anymore luck with it. I think it should at least register, hopefully. |
Re: Perl or Scheme (or Lisp) programmers?
It will take me abit to play with it. Maybe along the way I can figure out how to get GIMP to create a large batch of those nice map renderings it has built into it. They are much prettier but more work to get to a playable stage.
|
Re: Perl or Scheme (or Lisp) programmers?
GIMP 2.0 has been released. It supports scheme, C, python and perl for scripted actions. This is a programmable powerful (free) paint program. Check it out at www.gimp.org
|
All times are GMT -4. The time now is 09:25 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.