Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

steep surface terrain shader like cryengine?

Discussion in 'Shaders' started by Deleted User, Jan 2, 2015.

  1. Deleted User

    Deleted User

    Guest

    hi, i want to get rid of the texture stretching you get on steep surfaced unity terrains (cry-engine does not have this stretching)

    a tri-planar terrain shader does this but is quite expensive (resource consuming)

    Im looking for a cheaper alternative
    any one know of one?

    perhaps someone knows how cry-engine's terrain works.
     
  2. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,862
    Add more vertices to steep areas and smooth them to remove the stretching?
    Use extra meshes(rocks, plants) to cover bugged areas that also gives more detail?

    If you lack the artistic skills to do so or the resources to hire one, your only bet is to use triplanar shaders. They are not so resource consuming though, when you want beautiful graphics, then your target platform is most probably a strong pc.
     
  3. Deleted User

    Deleted User

    Guest

    thanks for the answer
    only thing is i don't understand the first part; how can i add more vertices to particular areas of a unity terrain? (i assume thats what your refering to as more vertices would make no difference to a mesh because a mesh wouldn't have my problem)
     
  4. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,862
    i meant just spread the vertices (which are already there) equally to prevent stretching as much as possible. and if necessary use a different handmade "cliff" mesh where needed.
     
  5. Deleted User

    Deleted User

    Guest

    ok.
    part 2 of my question: would it be possible to have uvs/uv seams for unity terrain, rather than just zaxis projection? it wouldn't be much more resource consuming and would look even better than triplanar projection.

    still wondering how cry-engine terrain works. could be a possible lead



     
    Last edited by a moderator: Jan 4, 2015
  6. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,862
    Check my Aubergines Triplanar Shaders in the assetstore, it has fastest triplanar shaders for both meshes and unity terrains.
    Also i have a custom path editor for conforming roads and cliffs on terrain, that does smooth surrounding vertices and auto-paints textures. I might consider giving it out as well.
     
  7. jpw

    jpw

    Joined:
    Mar 24, 2015
    Posts:
    2
    Hi Aubergine, I'm interested in your custom path editor. Does it conform paths to an existing terrain (this is what I am am looking for) or does the terrain have to conform to the shape of the path? Do have any plans to release it?
     
  8. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,862
    Well it Works smiliar to that CryEngine Picture above. You draw a spline across the terrain and add a shape to loft around it (preferably a simple line to be a road but any shape will do) and finally raise or lower terrain heights to conform with the loft. If you are interested, please pm.

    Untitled-1.jpg
     
  9. jpw

    jpw

    Joined:
    Mar 24, 2015
    Posts:
    2
    Hi, thanks for your reply. Looks really good, but what I need is to be able to conform a road to an existing terrain without changing the terrain height. If I can't solve it I come back to you. Thanks again.