Announcement

Collapse
No announcement yet.

Landscape Displacement issue using Instance and Master materials

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    The problem is not about the tessellation multiplier but in the displacement.
    I have imported the heightmap from the function but I only have a big bubble in the area instead that a proper displacement based on texture.

    Leave a comment:


  • replied
    Thanks man I appreciate... just let me try.
    At the moment I'm implementing a better Normal mapping in addition with Bump Offset to have a good looking effect with a minimum amount of resources.
    But I still want to implement Displace that will be activated/deactivated in the material function

    Leave a comment:


  • replied
    BTW, since i'm re-working my landscape to increase performance and include virtual texturing, figure I'd share this.
    Click image for larger version  Name:	Tessellation.png Views:	0 Size:	533.5 KB ID:	1765032
    The formula is
    World PS ......\
    .......................- Distance - Divide 1000 (scalar of distance) - Power EXP of .5 (Blending) Clamp - LERP Alpha (32, 0).
    Camera PS ../

    The lerp is inverse, so I don't have to 1- the texture.

    Leave a comment:


  • replied
    The default value is -1.
    you can also delete the node and bring in another one to restore its defaults.

    Leave a comment:


  • replied
    Yes the Displacement texture is set to computed Mip Level... what should I change it to?

    Leave a comment:


  • replied
    Maybe the texture sample is set to a locked Mip ? or something similar to that, like the texture itself is not the same size?

    Leave a comment:


  • replied
    Thank you very much again man.
    I'm gonna improve the shader quality, but why even using the same LandscapeCoordinates of the base and normal map, I get different tiling in case of Displacement?

    Leave a comment:


  • replied
    the tessellation multiplier looks Ok-ish syntax wise, the values are however bad.
    It should go from 0 - no need for a scalar - to 32, or a scalar.

    From the wire-frame view, I would think that Adaptive is still checked within the material. It should have way less quads at a distance...

    What you put into the displacement doesn't really matter - it's literally just a texture, multiplied (as I told you probably incorrectly) by a scalar that defines the height in world units.
    Normally, you want the UVs of the displacement to match those of the material. I'm not sure what you are doing though, so you may not need that.

    As a somewhat side note.
    Extract your tessellation multiplier syntax, make it it's own material function, and attach it to the end material without having to break material attributes.

    As for the displacement. Normally, you just compose it within each different layer/material function with a standard scalar for the overall height. It hugely depends on what you need to do though. What I'm saying is that generally speaking having a specific function for the displacement makes little to no sense.

    Leave a comment:


  • replied
    Anyone please?

    Leave a comment:


  • replied
    These are my setup and this is what I get:

    Click image for larger version

Name:	result.jpg
Views:	83
Size:	654.7 KB
ID:	1764168


    Click image for larger version

Name:	disp_mat_function.jpg
Views:	86
Size:	266.9 KB
ID:	1764167

    Leave a comment:


  • replied
    Basically I have
    - 2 material functions
    - 1 master material
    - 1 material instance

    The master material blend the 2 functions and drive all the information to the material instance
    Do you think it could be a problem for displacement?

    Leave a comment:


  • replied
    Displacement in Master Material is enabled and tessellation can be increased. Basically if I increase or decrease tessellation something happens in the landscape but it doesn't sculpt the landscape based on texture.

    It seems that it doesn't follow the landscape coordinates

    Leave a comment:


  • replied
    Your screenshots show almost nothing useful.

    First, you need to have displacement on the material properly enabled. Probably with the adaptive option disabled.

    Second, you need to create a way to increase the tessellation multiplier to the max (32 probably) based on distance of the camera (or character) to some point further out (10m or so) away from the character.

    Third, you need to multiply the G (which is the Z) of the texture by a custom scalar. (you do show that)
    You have this on the whole texture. I would isolate just the G channel and re-compose the texture (append).
    Your scalar cannot be 1 to see results. 1x1 = 1 so the multiply node is useless. Start it off at 5. it resolved to a maximum height bump of 5cm.

    Keep in mind that artifacts are present anyway depending on the tile size you chose for your map.

    Also, Tessellation on the landscape is very expensive to render.

    Leave a comment:


  • Landscape Displacement issue using Instance and Master materials

    Hello everyone,
    I'm struggling in try to set a good displacement material for my landscape but it doesn't work properly. It doesn't shows any effects based on map and it creates artifatcs. These are my settings
    Click image for larger version

Name:	top_mat.jpg
Views:	104
Size:	354.8 KB
ID:	1763876

    Click image for larger version

Name:	master_mat.jpg
Views:	133
Size:	385.0 KB
ID:	1763874
    Attached Files
Working...
X