Author Topic: Some of the things that I think I've never uploaded, in no specific order  (Read 16849 times)

Offline bla bla 2

  • Member
  • *
  • Posts: 1339
  • I'm french.
Je connais un site avec des textures d'immeuble.

Offline Chinaski

  • Member
  • *
  • Posts: 109
So, guys, texturing technique was a little bit too complicated to explain in english for me. So, I'm deeply deeply deeply sorry, but... I decided to make a step by step tutorial (with files example). :D

I'm working on it now (it's alive, the scene is done); maybe this afternoon, maybe tomorow, for the result. ;)
You don't understand me ? That's normal, I don't speak english.

Offline Chinaski

  • Member
  • *
  • Posts: 109
Download the scenes, texture maps, and objets here!


First thing first: We want to keep it simple. So no functions, no complicated building. Choose some good textures... And start.




STEP 1:

For this one, we will use a plan with 120 by 120 size. So, no need of: planet, atmo, heightfield, compute terrain, or base colors.

We just have: A texture group, connected to a surface shader (child), connected to the plan. We have also 2 power fractal shader (with displacement) connected to the surface shader (input). That will be the general displacement of the scene.



The texture group is constitued (top to bottom) of: an image map shader (with the b&w bump map texture), a colour adjust shader (to adjust the bumpmap, if it's not perfect), a displacement shader (to give the relief), an image map shader (the texture), and a colour adjust shader.

You can also add, if needed, a transform shader in last position, to translate the texture and put a textured part exactly at the right place. No need here.

When this build is done you just need to adjust the scale of the images (same in the two image map shader), the bump (displacement shader), and eventually tweak the color of the texture (colour adjust shader).






STEP 2:

We have a nice sand texture. Let's add an other: We add a second texture group. It's built exactly the same way. The only change is the texture map & bump map. Choose a texture, tweak the parameters (scale, bump, color)... When it's done we need to mix them.



To do that I used a merge shader, a power fractal shader (mix controller), and a colour adjust shader (used if needed, to tweak the color of the mixed texture). You can replace the power fractal shader by whatever you want. All the settings will be on your mix controller.

Hint: You can give some relief to one of the two textures by activating the "apply displacement" in the image map shader, and give a positive value to the "displacement offset" (see "map 2 (image)" shader in "Texture 2" group).






STEP 3:

Here we add three more textures. The building method is exactly the same. Texture 3 & 4 groups are rocks texture. Texture 5 group is a lichen / foam texture. Texture groups are set one by one. After that, we adjust settings of the mixer controllers.



We add also some micro-displacements to the rocks, using two power fractal shader (connected on input of the group bump displace).






STEP 4:



Here we add the last mix node. All the texture groups are now connected to the surface layer. It's time to run some tests (random seeds on all the mixers controllers) and improve the different settings.

Hint: You can increase a little the displacement value (displacement shader) for all the textures.






STEP 5:

Now it's the hard part. We going to add several stones shader. The first one is for little stones ("Stones - very small" shader). No big problem here: It's going below the surface shader, and I'll use one of my "Texture 2" group to texturise it. I just need to remove the displacement (it doesn't need so much displace).

To do that I used two shaders: A transform shader (to lower the scale, and translate the texture) connected to a defaut shader via the colour function input. No more bump, problem solved.

Hint: If you want you can add some micro-displacement to your micro-stones, by connecting the two "micro-displacements" shader to the input of the defaut shader. Here it was not necessary.



Now I add two big stones shader. I want them to have a complex rock texture (Merge Mix texture 3-4-5) but with a different scale, and an additional displacement.

First I add a surface layer ("Stones surfaces", on the left, in purple group named "Cracked Rocks"). On input of this one, I put a new micro-displacements power fractal shader ("micro-displacements stones"). This way I have a specific micro-diplacement for the stones.

For big displacement I use the famous "Cracked Rocks" functions clipfile (I don't remember who done it, but thanks to him, it's just perfect). This function group is connect to the displacement function input of my Stones surfaces layer. Settings of the thing is in the three "Voronoi Scale" and in the displacement multiplier of the Stones surface layer.

At this step I must do the same thing that for the small stones, ie recover my texture, and put it in the child input of my stones surface layer. So I'll use the same method: transform shader -> default shader -> surface. Easily done for the color (Merge Mix texture 3-4-5 -> Transform -> defaut color function -> Surface). For the displacement (I want it, this time), I must copy the merge / mix shader and the merge / mix controller, and connect the two copy to the bumpmap instead of the colormap.

This way I have color and displacements (than I can set) on my default shader. After calibration of scales and various displacements, stones part is over.






FINAL STEP:

Last step, we going to add some vegetation. For this exemple I choosed to put some grass in the low parts of my rock texture.



So I do some blending to build a mask (same technic, again), and I use a white image map to restrict my plant population. Rendering... Et voilà !



We can try to random some seeds (mixer controllers, stones, transform shader) to see if it's working...







;)

* texture-demo-build-step1.jpg (39.18 kB. 460x422 - viewed 206 times.)
* texture-demo-render-step1.jpg (133.75 kB. 800x620 - viewed 178 times.)
* texture-demo-build-step2.jpg (51.65 kB. 420x506 - viewed 173 times.)
* texture-demo-render-step2.jpg (146.55 kB. 800x620 - viewed 181 times.)
* texture-demo-build-step3.jpg (88.47 kB. 575x600 - viewed 172 times.)
* texture-demo-render-step3.jpg (189.99 kB. 800x620 - viewed 182 times.)
* texture-demo-build-step4.jpg (86.06 kB. 504x596 - viewed 196 times.)
* texture-demo-render-step4.jpg (158.05 kB. 800x620 - viewed 212 times.)
* texture-demo-build-step5.jpg (113.34 kB. 723x539 - viewed 220 times.)
* texture-demo-render-step5.jpg (166.65 kB. 800x620 - viewed 173 times.)
* texture-demo-build-step6-final.jpg (110.78 kB. 622x532 - viewed 190 times.)
* texture-demo-final.jpg (381.74 kB. 800x620 - viewed 211 times.)
* texture-demo-final-seeds-random-1.jpg (416.8 kB. 800x620 - viewed 187 times.)
* texture-demo-final-seeds-random-2.jpg (384.8 kB. 800x620 - viewed 204 times.)
* texture-demo-final-seeds-random-3-water.jpg (367.27 kB. 800x620 - viewed 195 times.)
« Last Edit: July 12, 2012, 03:44:40 PM by Chinaski »
You don't understand me ? That's normal, I don't speak english.

Offline Kadri

  • Member
  • *
  • Posts: 8502

The surface looks very nice!

I have no time now to look how you use TG2 for surfacing Chinaski ,but i will soon.
It is always good to see other users techniques. And thanks for sharing  :)

« Last Edit: April 26, 2012, 05:48:26 PM by Kadri »

Offline j meyer

  • Member
  • *
  • Posts: 2159
    • orkwarts
Thanks for taking the time to do such an in depth tutorial
and providing the files.Interesting approach.
Keep it up,J.

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 13182
  • Holy snagging ducks!
Nicely done Chinaski. I hope you'll consider adding this to our Wiki at some point! http://www.planetside.co.uk/wiki/index.php?title=Terragen_2_Tutorials

- Oshyan

Offline TheBadger

  • Member
  • *
  • Posts: 7416
  • what's the difference?
Thanks Chinaski!

This will take me a good while to get through.
It has been eaten.

Offline Dune

  • Member
  • *
  • Posts: 15194
    • www.ulco-art.nl
Thanks, Chinaski. The crux is that you project first and then displace. I used a somewhat similar technique to get a waterline on a sloping river, but you opened my eyes again to another use. I'm sure many users will have great benefit from your tutorial!

Offline nbk2

  • Member
  • *
  • Posts: 113
Wow!! :o

Offline Mr_Lamppost

  • Member
  • *
  • Posts: 1062
I don't have the time to look in detail at the moment but thanks for the step by step tutorial. I'll study it properly later.
Smoke me a kipper I’ll be back for breakfast.

Offline Chinaski

  • Member
  • *
  • Posts: 109
A good texture map, without a bump map, can do the trick in distant view... But in close up it's a nightmare. Here we have two examples: for the first one, the texture map is directly used as a bump map, for the second one a black & white version of the texture map is used as a bump map.



It's a disaster. So we need a nice bump map, but don't have one. Let's make / fake one!

(these values are nice for a "rounded" bump map)

Step 1 - Duplicate your texture map.
Step 2 - Desaturate image.
Step 3 - Duplicate the main layer two times. You have now three identical layers: One for large details (on bottom), one for intermediate details (on middle), one for small details (on top).

Step 4 - Select "large details" layer.
Step 5 - Threshold (choose the good value).
Step 6 - Gaussian blur 20.
Step 7 - Levels (black, 2, white).

Step 8 - Select "intermediate details" layer.
Step 9 - Posterize (4).
Step 10 - Gaussian blur 10.
Step 11 - Levels (black, 2, white).
Step 12 - Layer opacity 20%.

Step 13 - Select "small details" layer.
Step 14 - Posterize (8).
Step 15 - Gaussian blur 2.
Step 16 - Auto levels.
Step 17 - Levels (black, 2.4, white).
Step 18 - Layer opacity 2%.

Step 19 - Flatten, save, and test it in TG2.



Good enough for me! But, if you want to, you can try with other settings. Just decrease blur value and levels value (gama) for smaller details and steeper slope, and increase them for a texture with big rounded displacements.




You can also mix two bump map attemps in TG2...





* fakemap-1.jpg (458.86 kB. 800x620 - viewed 150 times.)
* fakemap-2.jpg (503.53 kB. 800x620 - viewed 194 times.)
* fakemap-3.jpg (416.69 kB. 800x620 - viewed 194 times.)
* fakemap-4.jpg (443.4 kB. 800x620 - viewed 162 times.)
* fakemap-5.jpg (445.75 kB. 800x620 - viewed 175 times.)
* fakemap-6.jpg (460.5 kB. 800x620 - viewed 153 times.)
* fakemap-7.jpg (414.32 kB. 800x620 - viewed 192 times.)
* fakemap-8.jpg (454.2 kB. 800x620 - viewed 187 times.)
« Last Edit: July 12, 2012, 04:09:08 PM by Chinaski »
You don't understand me ? That's normal, I don't speak english.

Offline Chinaski

  • Member
  • *
  • Posts: 109
So, I think I have covered all the issues... With that, you can do 90% of "textured" works. I'll just add one or two things (that I didn't said because I forgot, or because I wanted simple tutorials):

When you are working on a fake bump map, take care of the "tile" aspect. We are working with blur, so your black and white base image must be repeated (patern). Crop it at the end. You can also modify your black and white base image to (try to) eliminate shadows (if you know how to do that perfectly... Tell me), or mix black and white value (Gradient Map is usefull for that), because darker values must not always be at the bottom. When it's done you can follow the "step by step bump convert" procedure.

When you are working on a cliff relief... Use a projection camera (ortho mode) to project your texture and laterals displace for the bump. It's what I've done here:



If there is other questions, if you need other explanations, or if you think it can be improve (method and/or english language)...
And thanks again for the comments. ;)

* texturecalibr-mix-r342-r-02.jpg (451.37 kB. 800x620 - viewed 204 times.)
* texturecalibr-mix-r342-r-03.jpg (817.75 kB. 800x620 - viewed 151 times.)
« Last Edit: July 12, 2012, 04:12:29 PM by Chinaski »
You don't understand me ? That's normal, I don't speak english.

Offline j meyer

  • Member
  • *
  • Posts: 2159
    • orkwarts
As for eliminating shadows you could try High Pass Filter,that should at least
reduce the shadows.
Since you like to work with bump and other mapping maybe Xnormal(it's free)
would be something to look into.

Offline Kadri

  • Member
  • *
  • Posts: 8502

Nice surfacing technique Chinaski, thanks for sharing  :)

Offline efflux

  • Member
  • *
  • Posts: 2171
Some very interesting work. I especially like the Dome image.