2
$\begingroup$

I have 3 images for terrain - one main height map, one aplha selecting slopes (which I can replace with some nodes any time), and one height map of rocks for the slopes. Now I can use main height map for microdisplacement, no problem. But I want to have these details of rocks for the slopes too and everything rendered as microdisplacement. My PC won't handle traditionally displacing plane with main height map and then using microdisplacement for rocks only.

To clarify, I cannot mix both displacement textures with alpha fac because then rocks will only be elevated on z Axis, I want them to use normals of current mesh part they are displacing.

Here are main displacement and slope selection, I got rocks from cg textures so just imagine a simple rocks height map.

enter image description here enter image description here

$\endgroup$
1
$\begingroup$

You can add the rocks hightmap to your Main hightmap, with a mix node (set to add, factor of 1), or a silmple math add node. Plug the output of the add node into the displacement socket. To control the strength of your displacement use a multiply node inbetween. (Values below 1 will reduce terrain hight, values above 1 will grow it.)
The slope information is only used for color, don't add that to the displacement. It will give you wrong results.

$\endgroup$
  • $\begingroup$ Gotcha, when I mix these textures, the rock texture will only elevate the mesh in one direction, on z axis, that's why I have the problem. I need blender to displace it... twice so to speak so that rock displacement uses normals from already displaced mesh, but everything has to be done by microsdisplacement, not by modifiers. $\endgroup$ – Jan Kulczycki Jul 29 '17 at 11:11
  • $\begingroup$ But maybe it would work if I could somehow distort the rock texture by main height map $\endgroup$ – Jan Kulczycki Jul 29 '17 at 11:14
  • $\begingroup$ could you share the textures (if they are free), or upload a screenshot of them? I'm not able to give a detailed answer without seeing the textures. $\endgroup$ – yann Jul 29 '17 at 11:15
  • $\begingroup$ I ll upload with lower res in a sec $\endgroup$ – Jan Kulczycki Jul 29 '17 at 11:17
  • $\begingroup$ btw to make it work properly I have to use slope information to factor and I can control it over color ramp to change the strength of rocks over main displacement $\endgroup$ – Jan Kulczycki Jul 29 '17 at 11:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.