Post Reply 

Filter the levels of a picture depending on its color

Jan 27, 2014, 22:13
Post: #1
Filter the levels of a picture depending on its color
Good evening,

I'm in the process of making a command map for the free video game Wolfenstein Enemy Territory.

The games allows to generate a TGA file called Tracemap, which is used by the game to detect which places are outside or inside, for precipitations and artillery. It is commonly used as a base to make command maps, such as:
[Image: crmHCFc.png]

Other examples:
http://www.ttf-fusion.com/index.php?opti...&Itemid=94

To obtain a comparable result, I have decomposed the making in 4 steps (4 layers):
- The terrain (background);
- The buildings (in shade of grey);
- The roads (a tool drawing white lines bordered with black and doing the junctions automatically would be neat, if it ever exists...?);
- The "foldings" (that's the Reverso translation, I think it can be guessed from the pic).

So, I exported the terrain in a separated map, compiled it, generated a Tracemap, and I have it in GIMP now. I would like GIMP to detect and do some lines between the different levels like Paint Shop Pro seems to do:
http://forums.warchest.com/showthread.ph...post392586

This way, I can draw the height lines accurately, and then color (I already made the palette with required colors); Does this exist in GIMP? Tried few filters but never came close to something like in the Warchest forums.

If it isn't possible I will do it manually ^^'

Thank you in advance,

Mateos
Find all posts by this user
Quote this message in a reply
Jan 28, 2014, 21:47 (This post was last modified: Jan 28, 2014 21:49 by Mateos.)
Post: #2
RE: Filter the levels of a picture depending on its color
Good evening,

Thank you for the road hint!

For the levels, the Threshold tool is neat; I noticed on the example I gave there were 9 levels (10th is water), so for instance I divide the range 0-255 in nine parts, use that with the tool, and then I have 9 different levels (in 9 different layers for now); Next step is probably smoothing, merging and adding a path for the seperation. Neat!

Will try to finish it and polish it up; I'll probably post it here, if I don't forgot to come back ^^'

Thank you again!
Find all posts by this user
Quote this message in a reply
Feb 5, 2014, 21:25 (This post was last modified: Feb 5, 2014 21:26 by Mateos.)
Post: #3
RE: Filter the levels of a picture depending on its color
Good evening,

I have finished the terrain and the buildings, I'm now on the road part! Smile

I don't seem to be able to join more than 2 points to one path node, is it a restriction? :/

Also extracting the foldings from the above full command map isn't easy, I badly failed to obtain something usable as a layer, any hint on how to ease this step?

Thank you in advance,

Mateos
Find all posts by this user
Quote this message in a reply
Feb 8, 2014, 12:46
Post: #4
RE: Filter the levels of a picture depending on its color
Thank you, I worked the intersections with making curves between 2 splines for simple intersections and triangles of splines for 3-ways paths Smile

Current look:
[Image: mnlDHOs.png]

By foldings, I mean if you look at the top Command Map I posted, from West to East and North to South, you can see the paper has been folded, there's black lines or a contrasted line which shows the axis of the foldings; I tried to "extract" that ^^'

Sorry for the late answer, I have been busy, and I don't always have a connection access where I study >.>
Find all posts by this user
Quote this message in a reply
Feb 8, 2014, 17:59
Post: #5
RE: Filter the levels of a picture depending on its color
Good evening,

How do you obtain a grey 50%?
Find all posts by this user
Quote this message in a reply
Feb 8, 2014, 18:53
Post: #6
RE: Filter the levels of a picture depending on its color
OK, I have added guides, painted it with a 256x256 snapped grid, now how do I turn this layer into a bump map layer, to put above the other layers?
Find all posts by this user
Quote this message in a reply
Feb 8, 2014, 21:13
Post: #7
RE: Filter the levels of a picture depending on its color
It seems that this filter only affects the selected layer, not all the visible ones; So have I to make a separated XCF with all the stuff merged and apply the filter upon it? Or am I missing something?
Find all posts by this user
Quote this message in a reply
Feb 8, 2014, 21:40
Post: #8
RE: Filter the levels of a picture depending on its color
Oh, I see: since in GIMP when you work it affects the current layer (excepted stuff like convert to grayscale), having the option "New from visible" avoid some specific coding for filters, good to know Smile

I will experience a bit with it, thank you very much for you help and tips over the past week! Appreciated Smile
Find all posts by this user
Quote this message in a reply
Feb 14, 2014, 21:10
Post: #9
RE: Filter the levels of a picture depending on its color
A last hint about adding a folded paper effect:
What can be done is to search for folded paper texture in Google for instance, and use it as a layer with a reduced opacity Smile

A possible result can be seen through this tutorial for instance:
http://www.dreevoo.com/content.php?id=807

I'm going for this, the level of detail is quite high Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  help with making a complex silhouette from picture springz 1 152 Dec 3, 2018 09:15
Last Post: paynekj
  global color change Whburling 1 224 Nov 18, 2018 21:49
Last Post: paynekj
  change everything NOT black to another color styler001 2 185 Nov 9, 2018 12:55
Last Post: styler001
  Changing A Color Ricebug 1 685 Oct 10, 2018 16:50
Last Post: paynekj
  Foreground selection tool does't change background color ericr 1 237 Aug 26, 2018 21:16
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS