Search Unity

Fast and good looking custom parallax shader

Discussion in 'Works In Progress' started by cod, Sep 16, 2013.

  1. cod

    cod

    Joined:
    Nov 26, 2011
    Posts:
    267
    Hi all, I've been working for a fast and good-looking solution Parallax mapping shader. As u can see from my previous post my solutions were often heavy to compute on normal gpus, so I started thinking to a new algorithm.

    Check it out here ---> http://www.youtube.com/watch?v=KvffT4EYpUA



    It should run pretty fast on almost every machine that support SM3, has the same ALU count as the normal parallax shader and gives a better depth accuracy without aliasing problems(as in the previous methods)

    PROS
    Fast
    Cheap
    Requires only a additional texture
    No "pancake" problems

    CONS
    Doesn't work well with high-frequency maps (only 0 or 1)
    depth cannot be a extremely large value
    pixel swimming articrafts at low angles


    Hope u enjoy and share your thoughts :)

    EDIT added webplayer https://dl.dropboxusercontent.com/u/91501658/Parallax 14-3-14/Parallax.html
     
    Last edited: Mar 18, 2014
  2. cod

    cod

    Joined:
    Nov 26, 2011
    Posts:
    267
    bump
     
  3. cod

    cod

    Joined:
    Nov 26, 2011
    Posts:
    267
    new update

     
  4. cod

    cod

    Joined:
    Nov 26, 2011
    Posts:
    267
    Another update

    [video=youtube_share;akyIJJ3el_Q]http://youtu.be/akyIJJ3el_Q
     
  5. Atmey

    Atmey

    Joined:
    Nov 3, 2012
    Posts:
    88
    Looks pretty interesting, how easy can it be integrated with other shaders?
     
  6. Velo222

    Velo222

    Joined:
    Apr 29, 2012
    Posts:
    1,320
    Wow, that really breathes some new life into the ground texture. Very nice. I love the depth that it brings out. Could it do the same effect with say a short grass texture? Not like the grass with the unity terrain that can move in the wind, just like a 2d grass texture mixed with some "dirt" or whatever. I really am new to shaders, so I'm just wondering if it looks as good with something other than rocks.

    Thanks.
     
  7. carking1996

    carking1996

    Joined:
    Jun 15, 2010
    Posts:
    2,563
    If it's cheap(or free :) ) I'd buy it!
     
  8. kurylo3d

    kurylo3d

    Joined:
    Nov 7, 2009
    Posts:
    1,121
    how does it perform on mobile?
     
  9. Arkensis

    Arkensis

    Joined:
    Jan 27, 2013
    Posts:
    13
    I am definitely interested in this and would buy it as well.
     
  10. Sounds-Wonderful

    Sounds-Wonderful

    Joined:
    May 15, 2013
    Posts:
    106
    I have no idea how I ended there:

    $g92mivz.jpg
     
  11. cod

    cod

    Joined:
    Nov 26, 2011
    Posts:
    267
    New Update!
    [video=youtube_share;-622Teb9LzQ]http://youtu.be/-622Teb9LzQ


    I have not tried it yet, but I think it's quite expensive, although I never tested it

    Mmm, what do you exactly mean? Can you post a screenshot as example?

    It can be used for almost everything: diffuse, bump diffuse, cutout, transparent, emissive, rim, etc.
     
  12. taichiu727magnus

    taichiu727magnus

    Joined:
    Sep 16, 2013
    Posts:
    144
    wow very nice :)
     
  13. Earlybird

    Earlybird

    Joined:
    Mar 30, 2013
    Posts:
    14
    Looks awesome! Is this shader available yet?
     
    Last edited: Feb 9, 2014
  14. cod

    cod

    Joined:
    Nov 26, 2011
    Posts:
    267
    Last edited: Mar 19, 2014
  15. cod

    cod

    Joined:
    Nov 26, 2011
    Posts:
    267
    Let me know your stats!
     
  16. adsamcik

    adsamcik

    Joined:
    Jan 13, 2013
    Posts:
    30
    Looks really cool, I bet that the blending looks awesome on native resolution. It gives the game more living appearance.
     
  17. KheltonHeadley

    KheltonHeadley

    Joined:
    Oct 19, 2010
    Posts:
    1,685
    I want.
     
    Deleted User likes this.
  18. janiashvili

    janiashvili

    Joined:
    Feb 24, 2012
    Posts:
    66
    Soon?
    Can't wait...