View Full Version : Suitable technique for grayscale map
11-11-2013, 09:10 AM
Well, I couldn't think on another title. The point is I've this grayscale image, and I'd like to use some texture techinque involving erosion and vegetation patterns. I've looked on some PDF tutorials, but I couldn't "adapt" the methods in this map. I'd like some suggestion.
Vegetation zones. Colors are quite intuitive.
11-25-2013, 02:08 AM
What tool are you using? gimp? PS? Inkscape?
When using Gimp, try the following:
Select a Gradient (you might want to create your own one, once you've got a feel for it)
Go to "colours" - "map" - "Gradient map"
The result will look similar to this one:
(Depending on the Gradient you selected)
12-14-2013, 05:51 PM
Thanks for the answer. Well, I was using Photoshop. I just wanted to give some shade-based relief and use the vegetation image for colouring it (I guess I could do this putting it in another layer with some transparency).
12-15-2013, 03:05 PM
You can do a gradient map in Photoshop, too. It's a layer effect. But what I think you actually want is to use the height data as a bump map for shaded relief, yes? Similar to this (only better, of course):
You may need a better heightmap, since this one will give you terracing. The idea with a heightmap is you want to have a smooth gradient from peaks to valleys, not a contour-line look. The heightmap's values correspond to elevation at a given point, so if you have an image where there is a sharp transition from one brightness to the next, that represents a sheer cliff—one pixel at, for instance, 300 feet while the adjacent pixel is 100 feet in elevation, with no slope between them.
That said, the way to achieve a look similar to the one I posted is to use the Lighting Effects filter.
Import your heightmap in as a layer on top of everything. Ctrl-A to Select All, then Ctrl-C to copy. Now turn that layer off and store it in the bottom of your layer stack in case you want to come back to it later.
Switch to the Channels palette, create a new channel, and Ctrl-V to paste the heightmap into your channels list. Turn it off and turn the RGB channels back on. You don't need to see it, you just need in the information to be available to the filter.
Switch back to the layers palette. Now, assuming you've been working in layers, go ahead and copy everything you've already done by selecting all the layers and dragging them to the New Layer icon at the bottom of the palette. This will duplicate all of your current layers. Merge them (Ctrl-E) to get a flattened copy of your map. If all you have is a flattened image already, you can skip this step, of course.
Now, with the flattened image selected, go to Filters > Render > Lighting Effects.
The Lighting Effects filter is rather complex, so I'll walk you through its controls while I give you some recommended settings for your desired look:
First, I don't know how many or which of the presets in my Photoshop are custom, so I'm going to start with the Default Style. If you happen to have one that says "Neutral Directional," though, that's a great place to start.
Light Type determines what kind of lighting is being simulated. For a shaded relief map, we want to simulate the Sun, which is a directional light (the Sun is technically a point light, but it's so much bigger than the Earth that the rays come in effectively parallel). The line that appears in the little preview window indicates the light angle. The square at one end is the source and the circle is the target. Shaded relief maps are conventionally lit from the upper left, so place the circle in the center and the square in the upper left corner (I did it backward in my example, which probably makes the map appear inside out since it's lit from the south). If you move the square toward the circle, the apparent light source will be higher. Depending on the aspect ratio of the image, the arrangement I indicted gives a vertical angle of between 30-45 degrees. You'll notice that the preview image brightens up as the dots move closer to one another because the surface is reflecting more of the light to the imaginary camera. You can compensate for the overall brightness with other settings, though, so don't worry about that for now.
Obviously you want to leave the check box "On" or there won't be any light on the map.
Intensity controls the brightness of your Sun. This is the first control that can counteract whatever happened to the brightness when you were moving the light's direction. Move this slider back and forth until the brightness of the map roughly matches the original image, then move it to the left to make the map about 25% darker. This will prevent the lit sides of your mountains from blowing out to pure white. But don't go below zero, or the highlights and shadows will become reversed, which looks really strange.
Focus should be grayed out because a directional light doesn't use it. If you were using a spotlight, it would control the rate of falloff from the center of the light to its edge.
Gloss is a matter of taste. Moving the slider toward shiny will emphasize the highlights, possibly causing them to blow out. Moving it toward matte will reduce the contrast, possibly making the map look dull. I tend to err on the side of matte since I can always improve the contrast with more traditional Photoshop tools like Curves and Levels.
Material is another matter of taste. The difference between plastic and metal (in the shading sense, at any rate) is that metals reflect their own color. So as you move the slider toward metallic, the highlights become more tinted by the underlying color. As you move toward plastic, the highlights get whiter. Essentially it's a saturation control for the highlights. Personally, I like about 50% metallic for shaded relief.
Exposure controls the overall brightness of your image. This is the control you'll want to use to do any final corrections to the brightness. However, you can replicate a lot of its function using Levels on the finished product, so don't get too finicky with it, since you don't have reasonable feedback from that tiny preview.
Ambience will allow you to control the black levels. If your shadows are too dark, raise the ambience. If the entire image is washed out, lower ambience.
Finally, there's the Texture Channel, and this is the most important control in the interface (and as such should really be at the top). From the drop-down box, select your heightmap channel. If you didn't rename it when you made it, it's probably called Alpha 1. This loads in the bump map information and lets the filter do its thing. You'll immediately see the relief appear in the preview image, though it's still too small to see anything really useful there.
Leave White is High checked, since your heightmap has the mountain peaks as the brightest spots.
Height determines, as expected, the apparent height of your mountains. Turning it all the way up will create very rugged-looking terrain, and may make the map appear large in scale (small in extents). For a regional-scaled map, that's great. For a continental map, move it more toward flat, which will smooth it somewhat and make it look smaller in scale (large in extents). More mountainous does bring out smaller details, though. Again, it's a matter of taste.
Since I've worked through this tutorial, I might as well upload the results of my little tutorial, since they're considerably better than that earlier pic:
12-17-2013, 12:23 AM
That was really clarifying, thanks. I tried to blur the grayscale with Photoshop in order to deal with terracing, but besides that white plateau would keep plain, that's not really what I wanted to do. I thought on making some scale-adjusted, more realistic relief (the scale of the image I uploaded is around 1 [px] : 12.5 [km], so the whole image dimensions are around 5940x4600 [km]) with some geomorphological characteristics like erosion patterns, but I'd need to dispense of a lot of detail in order not to spend a lot of time on it doing all manually. With most of fast techniques I've seen so far I'd have problems deciding where I want to make wrinkled relief (e.g in the plateau), leaving plain those flats in the center.
12-17-2013, 11:11 AM
I'm not sure how well it would work, but you could try making a shapeburst gradient in each level. Photoshop's way of doing it is a little kludgy, though. Start by breaking each level into a separate layer. You'll want the lower layers to be filled in the middle because this technique is based on the edges of the layer's paint, and if there's a hole you'll get strange results.
For each layer, apply a stroke layer effect. Change it to inside and gradient, and in the gradient type, choose Shapeburst. This creates a gradient from the outer edge to the center. Click on the color swatch for the gradient, and set the right-hand point to the highest elevation color for the layer and the left hand point to the value you want for the edge of this layer (likely the original color of that layer). Then adjust the size until the gradient looks they way you want.
This will probably create some artifacts near the edges of each layer that you'll have to paint out by hand. The Healing Brush tool might be able to remove them automagically.
Once you have your gradients, you can do some additional painting to create more detail. The technique I prefer is to make a new layer, fill it with 50% gray, and set its blend mode to overlay. The layer will turn invisible, but if you use the burn and dodge tools on it, you can non-destructively raise and lower areas in your heightmap. The overlay blend mode makes any pixel that is at 50% gray transparent. Pixels that are brighter than that are screened over the underlying layers, and pixels that are darker are multiplied with the underlying layers.
You could also render clouds on an overlay layer, mask it with a completely black mask, and then paint in the random noise details by painting white or gray on the mask. Both of those techniques have the advantage that they won't change the original gradients themselves, allowing you to go back and make changes to any of the three layers without having to redo the work on the other two.
Finally, if you want some realistic-looking erosion patterns, you could take the heightmap through a free utility called Wilbur. It's on the technical side, but there are tutorials in its use here and at the author's homepage, and there's a very good chance that if you mention it by name the author, Waldronate, will show up to answer any questions.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.