Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

ats color map ULTRA shader [RELEASED]

Discussion in 'Assets and Asset Store' started by larsbertram1, Oct 17, 2012.

  1. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,784
    that's a surface shader... so unity is responsible from handling this.
    nevertheless: when it comes to light mapping all the shader does is to provide a valid meta pass.
    you can see the output of the meta pass by switching to "albedo" in the lighmapping preview (scene view).
    this should somehow fit a low res color preview of the terrain.
    it might be broken in 2019 versions of unity as the lightmapper provide corrupted uvs...
    nothing we can fix on the parallax shader – as it is a surfce shader.

    anyway: if the terrain is seen by directional lights then it should be see by point lights as well.
     
  2. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    2,316
    I've checked the actual lightmap texture, nothing from point lights written there or visible in scene view preview.
    It's either Bakery, or CMU. Other meshes rendered just fine, and the terrain isn't. So I guess its CMU.

    In any case, I've excluded terrain from lightmapping right now.
    (It doesn't have that much of a shadow pass overhead anyways, so I'll just use realtime lights for it).

    If you manage to find out what's wrong, let me know.
     
  3. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    2,316
    @larsbertram1 Actually I was wrong, sorry.

    Its caused by the "Terrain optimization" feature of the Bakery.
    With it disabled point lights render to the lightmap just fine.
     
  4. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,784
    :)
     
  5. apan-bin

    apan-bin

    Joined:
    May 15, 2015
    Posts:
    29
    Can this shader support SRP?
     
  6. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,784
    it does not at the moment. what are you looking for? hdrp or urp?
     
  7. apan-bin

    apan-bin

    Joined:
    May 15, 2015
    Posts:
    29
    urp
     
  8. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,784
    there is a way simpler but terrain shader in my Lux LWRP Essentials package (which also works using URP).
    it does not work with texture arrays, does not cover dyanmic snow and wetness or tessellation but at least supports proper normal mapping and advanced parallax mapping.
    the package also contains a terrain/mesh blending shader. and tons of other stuff.
     
  9. apan-bin

    apan-bin

    Joined:
    May 15, 2015
    Posts:
    29
    Are you planning to upgrade this shader to URP?
     
  10. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,784
    i will look into this, yes.
     
    magique likes this.
  11. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    3,828
    @larsbertram1 I'm getting the same issue as reported in the following post:

    https://forum.unity.com/threads/ats-color-map-ultra-shader-released.155185/page-27#post-5060996

    I also tried instancing and Enable Height Normal, but neither work. It seems to flip flop back and forth between looking fine and doing the weird black shadowy look. Sometimes just clicking on the terrain object in the project hierarchy fixes it temporarily. Unfortunately, when in run-time mode it is always broken.

    I am using Unity 2019.2.17f1 and have the latest CMU.
     
  12. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,784
    just to keep me up to date: what is the issue?
     
  13. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    3,828
  14. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    3,828
    @larsbertram1 However, if I run the demo scene and even have rain effects on with puddles, it runs fine. So, it is only happening with a terrain that I converted following the steps given in the documentation.

    [EDIT]
    The biggest difference I see is that the converted terrain has only 4 textures and the demo has 8. And I don't have ColorMap turned on. Checking for other possible differences that might matter.
     
  15. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,784
    the issues you are referring to back in oct 2019 were caused by terrain materials converted from earlier unity versions using other terrain shader solutions.
    so just create a new terrain material :)
     
  16. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    3,828
    Well, doesn't it create a new terrain material when I click the Create Terrain Material button? But you are right. I was comparing several terrain shader solutions and this scene was taken from MicroSplat and converted to CMU. I will try with a clean new Unity terrain and see if things go better.
     
  17. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    3,828
    @larsbertram1 OK, so I tried making a completely new terrain in an empty scene and assigned and painted 4 textures on the terrain. I used sample textures from CMU install. Then I followed the steps to create material, update layers, assign material, etc. And all looks fine until I press play and then I get this black shadow-like thing on the terrain.

    Here it is in edit mode:

    upload_2020-1-10_15-30-10.png

    And now playmode:

    upload_2020-1-10_15-30-31.png

    And when I exit playmode:

    upload_2020-1-10_15-31-0.png
     
  18. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,784
    losing anything on entering playmode usually is caused by the fact that the texture arrays are not stored to disc.
    make sure the arrays are not only updated but also saved.
     
  19. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    2,316
    Hi, @larsbertram1

    Got a question, any plans on porting this to HDRP?

    Should I wait for the port, or just make it myself?
     
  20. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,784
    if you want it quickly, do it yourself :)
     
    xVergilx likes this.
  21. Jakub_Machowski

    Jakub_Machowski

    Joined:
    Mar 19, 2013
    Posts:
    392
    Hello guys! We want to invite you our new teaser of The End of the Sun game announcing Kickstarter campaign where we use Colormap Ultra Terrain Shader :)
    If you are interested in, add your email here. https://www.endofsun.com/crowdfunding/
     
    Baldinoboy likes this.
unityunity