Well i have finally decided to pass on all my knowledge of terrains. This tutorial will show you a bunch of tips and tricks for making really good looking terrain. Its not a beginners tutorial for gc2 or sb2, its mainly my workflow i use for my terrains. It will require gc2, sb2, crazybump and photoshop.
First off we need to make our terrain in gc2. the first thing we need to do in gc2 is set the width and height of the map in the generation>general tab. This will make the proportions of the 3d preview in gc2 match what it will look like in sb2 and save you a headache later when your fine tuning it. Also enable keep seed, this will keep the noise from randomizing every time you generate.
For the sake of the tutorial lets use a modded preset. Click the presetbrowser button at the top of gc2 and select geocontrol>erosion>soft fluvial old + thin flows sediment.
Before you generate this preset go into the general tab and set the width to 4096 and the height to 512. Set the noise to 16 and enable keep seed. Then go into the isolines tab and erase the 2 isolines it has set up. For the sake of the tutorial we will let the random noise seed take care of everything. After that hit generate and you should end up with somthing like this... (will take a few mins to generate depending on your comp speed.)
After you have this terrain you need to export 3 files. The heightmap, the colormap and the normalmap. Before exporting the colormap map sure you disable the shading in the view>relief menu so there is no baked shading. Also make sure you use 16bit .raw for the heightmap.
After you have the 3 files open up the colormap and normalmap in photoshop. We will first generate the cavitymap. This is done in crazybump however the crazybump normals are slightly different. You need to invert the green channel of the normalmap before importing into crazybump. Select the green channel and hit ctrl-i. The shading on the green channel will now appear to be lit from the bottom instead of the top. Select all the channels of the normal and hit ctrl-a to select the whole canvas and then ctrl-c to copy it. Open crazybump and select paste normalmap from clipboard. Select the displacement tab in crazybump and move the sliderbar on the enhance detail setting to 100%. You will now have a greyish texture with white highlights on the ridges and dark lines in the cracks.
Hit the little disk icon in crazybump and select copy displacement to clipboard. Go back into photoshop and paste this cavitymap onto your colormap texture. Select The overlay blend move and set to about 40-50% opacity.
You should now have some subtle shading in your colormap. The cavitymap makes the features of the terrain pop out more even when the lods wash them out. Be careful not to make the cavitymaps too dark. Play around with opacity settings.
If you are using a dynamic tod then you would stop here, however if you have a static tod then you can take it another step further by baking the shading into the terrain. This adds a whole other level of detail and can make your terrains look awesome.
To add the direction shading we will use the normalmap from before. For those that dont know how a normalmap works each channel of the rgb is for a direction of light and is shaded accordingly. The engine then overlays this shading onto the texture. The red channel is for shading when the light is to the left or right of the object. The green channel is for top and bottom shading. The blue channel is for when the light is directly above the object shining straight down onto it. The engine inverts the channel depending on the direction the light is being cast from. For example, the red channel appears to be lit from the right side in photoshop. If you invert the red channel it will appear to be lit from the left side. This is how the engine can handle 2 different light directions for 1 color channel.
We will use either the red or green channel of the normal for our baked shading. (blue is ignored) Select either the red or green channel (depending on that direction you want it to be lit from, invert for the opposite direction on that axis) and hit ctrl-a to select the whole canvas. (only on the channel you have selected though) Then select your colormap and hit ctrl-v to paste the shaded channel overtop of your colormap. Select the overlay blendmode (same as the cavitymap) and set to about 70% opacity. For this tutorial i used the red channel and its being lit from the right side. (uninverted)
We are almost done. In order to make the shading really pop out there is one more step. Select the channel in photoshop with the shade map you just copied over and run the image>adjustments>equalize. This will really make all of the subtle small details pop out ALOT more and give the shaded map way more detail and depth.
After that you can save the colormap as a 24 bit bmp. Dont save over the original unshaded version incase you need to redo it or tweak things later. When thats all said and done we need to import it into the editor. Open up a new map and select 4096x1 size (or whatever resolution you generated your terrain at) and give it a name. Open up the terrain editor window and select modify>set max height and input what you had set in gc2 and then import your heightmap. For this tutorial i set it at 512.
Next you need to set all your terrain tile resolutions to 1024. (to match the total size of the terrain texture)
After you set all the tiles to 1024 (they can be lowered down later for optimizations) you need to import the colormap. Select the import terrain texture option from the terrain menu at the top of sandbox.
In this next window that pops up you will see an overview of your terrain and all the grid locations. Highlight the top left box and click and drag your mouse across all the other boxes to highlight all the others. When all the boxes are highlighted hit the import button and select your final colormap. Wait a few seconds and a box will pop up telling you to save and generate your terrain texture. You only need to generate the terrain to the resolution of the texture your using. Since my colormap and terrain are 4096 i generate my terrain texture at 4096 resolution. Anything higher and i wont gain any extra detail but it will take MUCH longer to generate.
After you generate your terrain texture you should have somthing that looks like this.
Its lookin pretty good so far but we still need to set up the lighting. Since the light on the shading is being cast on the right side of the terrain we need to adjust the direction of the sun in sb2 in the terrain>lighting menu. The red arrows show the direction of the sun as the tod progresses. Also set the terrain occlusion to max.
After thats set lets apply a default tod. Open the tod menu and select import tod. Select the time_of_day_mp.tod from the crysiswars/editor folder and set the time to 07:00. Everything should match up and look something like this.
Congrats, you just made a great looking terrain. You can go back and regenerate your terrain texture again with the high quality option for even more detail however the HQ wont work unless you import the terrain texture again before you generate.
After you do all this you still need to apply surface detail maps. I can write up a tut for that later. A few tips in the mean time are to make sure you set your brush hardness to 0 so you dont destroy your awesome new colormap on the terrain. Also, when your making your colormap in gc2 (skipped in this part cause the preset already had one made) keep the surface details in mind. When adding different colors for rock, grass, sand etc try and stick to only angle and height selectors. That way you can match it up with the surface types in the editor.
However if you just want variation in your color for each surface type you dont need to stick to the height and angle selectors. For example, say you want some variation in your sand color so its not all the exact same color for all the sand. You can assign differant colors in errosion lines and other selectors but all that variation is still only for the sand surface type. Any transitions from one surface type to another should be restricted to angle and height. From sand to grass or rock for example.
After your dont with painting your terrain surface types you can go ahead and start decorating the terrain with various models. Try and avoid doing any major terrain mods in the editor, do as much in gc2 as possible. Small things can still be done like flattening out a section for a building or something but avoid adding hills and things.
Hope you enjoy the info, i cant wait to see what you guys come up with.