Search Unity

  1. 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

[Released] Lux LWRP Essentials

Discussion in 'Assets and Asset Store' started by larsbertram1, Jul 18, 2019.

  1. Rexoto-Games

    Rexoto-Games

    Joined:
    Jan 11, 2013
    Posts:
    41
    Yea I still use the legacy xr because the new framework is giving me trouble. After experimenting a bit i noticed ghosting on the left eye as well so it seems like it could be rendering to the left eye twice. Might try on a different unity version and see if that has an effect.
     
  2. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    i tested it using legacy xr, oculus rift, unity 2019.3.1f1 and latest Lux UPR Essentials:
    Water looks fine on both eyes if single pass instancing is enabled. Both in the game view as well as in the rift.
    maybe you have forgotten to enable instancing on the material?

    oculus_water.PNG
     
  3. Rexoto-Games

    Rexoto-Games

    Joined:
    Jan 11, 2013
    Posts:
    41
    So the problem seems to be with unity terrain. As soon as I converted my unity terrain to a mesh the problem went away. I tried using unity terrain for the grass and tress but that still caused ghosting in the left eye.
     
  4. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    ah, ok. have you checked the Lux URP terrain shader already? i remember doing some fixes for single pass vr a few month ago.
     
    Last edited: Mar 19, 2020
  5. Quast

    Quast

    Joined:
    Jul 5, 2015
    Posts:
    521

    I have problem with this shadow, and I don't know what causing it ?
     
  6. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    have you updated recently? URP 7.2 changed the way shadows are sampled. make sure you have the latest version of Lux URP Essentials as well.
     
    Quast likes this.
  7. Quast

    Quast

    Joined:
    Jul 5, 2015
    Posts:
    521
    Right. Thank you.
     
  8. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    you are welcome.
     
  9. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    628
    Is there any way to have decals only project on specific layers? I dont want to have to put the "M Basic Lit Stencilwrite Dont Receive Decals" Material on everything in my game...
     
  10. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    please have a look into the provided demo: you can use the draw order as well.
    unity's layers in URP are cpu only afaik – used for culling and lighting.
     
  11. buFFalo94

    buFFalo94

    Joined:
    Sep 14, 2015
    Posts:
    237
    @larsbertram1
    Hi I've just updated to URP 7.2.1 and also tried 7.3.1 using unity 2019.3.2
    It's seems like there's a bug the river doesn't get animated in GameView but does work in scene view and if I get back to URP 7.1.8 the issue disappear
    Can you check please?
     
  12. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    it works totally fine for me in unity 2019.3.1f1 using URP 7.2.1.
     
  13. buFFalo94

    buFFalo94

    Joined:
    Sep 14, 2015
    Posts:
    237
    What about 2019.3.2f1 and newer ?
     
  14. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    sorry, but i can't check any single version. but i am not aware about any major changes in URP > 7.2.1.
     
  15. TPEUnity

    TPEUnity

    Joined:
    Jan 17, 2018
    Posts:
    25
    Is there known issue with Shadow Cascades? Enabling them seems to cause massive shadow flickering. Tested on 2019.3.2f1 on the "Grass Displacement RenderFeature Demo".
     
  16. buFFalo94

    buFFalo94

    Joined:
    Sep 14, 2015
    Posts:
    237
    TPEUnity likes this.
  17. buFFalo94

    buFFalo94

    Joined:
    Sep 14, 2015
    Posts:
    237
    Yeah I understand
     
  18. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    TPEUnity likes this.
  19. yaboo

    yaboo

    Joined:
    Mar 23, 2016
    Posts:
    38
    Lux URP/Transmission And Lux URP/Clear Coat
    20200328184743.png
     
  20. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    thanks, i will look into this.
     
  21. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    compiles fine for me?!
    but actually the shader code contained some old keywords.
    that will b fixed in 1.44.
     
  22. yaboo

    yaboo

    Joined:
    Mar 23, 2016
    Posts:
    38
    I use Unity2019.3.7f1,urp 7.18
     
  23. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    you need at least URP 7.2. as 7.2. is the version which completely changed the shadow sampling.
     
  24. FurionTheGreatest

    FurionTheGreatest

    Joined:
    Jun 12, 2017
    Posts:
    9
    Hi devs, i use lux lwrp hair shader, and have some questions.
    Im pretty new in this and i cant understand what is wrong. My hair looks grainy and transparent that i can see character head through it. And i cant understand how to create this maps with 2 components(like Shift, Occlusion).
    HairTest.jpg TopHair.jpg TopHairMesh.jpg Tramp_Hair_3_DIFFUSE_2.png Tramp_Hair_3_NORMAL.png
     
  25. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    i guess this is alpha to coverage. try to deactivate it and look if this enhanced the hair.
     
  26. FurionTheGreatest

    FurionTheGreatest

    Joined:
    Jun 12, 2017
    Posts:
    9
    Can i mail you or smth? to keep thread clear, if we solve this i put solution here after.
    p.s if i use alpha cutoff its become like previous variant
    alpha_coverage_off.png
     
    Last edited: Apr 7, 2020
  27. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    you can pm me.
     
  28. Goldrake

    Goldrake

    Joined:
    Feb 6, 2010
    Posts:
    146
    I think there are some problems with the new version of URP 7.3.1
     
  29. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    which kind of problems?
     
  30. GXMark

    GXMark

    Joined:
    Oct 13, 2012
    Posts:
    427
    Do we have a wet shader for URP in essentials yet ?

    Stuff like puddles on roads or greesy oily shiny garrage floor services
     
    Quast likes this.
  31. jykholodia

    jykholodia

    Joined:
    Aug 29, 2018
    Posts:
    13
    Hi,
    Just bought the asset specifically for the water and love it!
    There's just a param missing from the water we're currently using. Would it be possible to adjust the foam color independently from the texture? We're using a single texture but with different coloration across the materials.
     
  32. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    thanks.
    it should be straight forward adding it yourself. i am super short on time, sorry.
     
  33. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    wetness currently is not covered...
     
  34. Disastorm

    Disastorm

    Joined:
    Jun 16, 2013
    Posts:
    100
    is there a shader thats just like the regular lit shader but with built in support for crossfading LODs ?
     
  35. halecc

    halecc

    Joined:
    Dec 17, 2016
    Posts:
    31
    Hey lars,

    I have a question regarding the dynamic grass displacement as well as the grass and foliage shader, could the shaders and grass displacement be used in VSP, as in with instanced indirect rendering? and also, would it be possible to create a stepped-on grass effect with the grass displacement or is it only for wind?
     
  36. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    i haven't checked this but it should be possible if you make the shaders support instanced indirect rendering. vsp should offer some code examples...

    it is not for wind. it is for stepped-on grass :)
     
  37. halecc

    halecc

    Joined:
    Dec 17, 2016
    Posts:
    31
    Great! I look forward into implementing some of your shaders in my project. Thanks!
     
  38. timbokoppers

    timbokoppers

    Joined:
    Nov 14, 2016
    Posts:
    46
    Can do this error any harm ?

    Code (CSharp):
    1. Shader error in 'Lux URP/Human/Skin': cannot implicitly convert from 'const float3' to 'float4' at line 290 (on vulkan)
    Code (CSharp):
    1. Shader error in 'Lux URP/Human/Skin': cannot implicitly convert from 'const float3' to 'float4' at line 290 (on gles3)
    2.  
    3. Compiling Vertex program with _MAIN_LIGHT_SHADOWS
    4. Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF3 UNITY_NO_FULL_STANDARD_SHADER SHADER_API_MOBILE UNITY_HARDWARE_TIER1 UNITY_LIGHTMAP_DLDR_ENCODING
    Unity 2013.3, URP 7.3.1
     
  39. KarloE

    KarloE

    Joined:
    Aug 26, 2013
    Posts:
    151
    When building WebGL my terrain is invisible. I looked through the topic a bit, if it was solved and I missed it, sorry for that!

    Thing is I am instantiating it in the scene, its not there originally. If I put it in the scene hierarchy beforehand and then instantiate, its visible (both of them). But seems like material didn't load or is missing something if I dont put it there first.

    Is there a fix other than actually putting the terrain in the scene first?
     
    Last edited: Apr 22, 2020
  40. Rujash

    Rujash

    Joined:
    Jan 3, 2014
    Posts:
    20
    I am using 2018.4 Unity and LWRP; the default project. I get many errors when importing. I am totally new to render pipelines and post processing; can I be given some direction? I tried looking for a way to 'import only LWRP and not URP' but it wasn't obvious.

    If LWRP is only available in 1.38, can I get that package version to import? Thanks
     
  41. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    mots likely the asset store delivered the wrong version to you.
    latest lux urp essentials need unity 2019.3+ and URP 7.2+
    you may try to clear your unity asset store download cache, open unity 2018.3. and reimport it.
    this should give you the latest LWRP version.
     
  42. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    oh, this is not related to the shaders but how unity strips of materials i guess.
    you may add the related shaders to the "always included" ones.
     
  43. Rujash

    Rujash

    Joined:
    Jan 3, 2014
    Posts:
    20
    Hi,

    I cleared the asset folder for 'forst' in cache, then I downloaded and imported from 2018.3.7f1 this time and there is 115 errors, but the import says manual for 1.38 is there:
    upload_2020-4-23_10-7-6.png

    I go into 2018.4.21f1 and it does not ask for an update; so it's downloading the latest no matter what. How can I get the compatible version?
     
  44. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    i don't know. but from the first error message: lwrp is unknow?
    2018.3 or .4 should definitely use lwrp instead of urp.
    so waht version do you actually use?
     
  45. Rujash

    Rujash

    Joined:
    Jan 3, 2014
    Posts:
    20
    Hi, it doesn't sound like you can help me utilize this asset. I would suggest removing 'LWRP' from the title of your asset, or please demonstrate it can work with LWRP from scratch and how you did it so I can replicate your steps.
     
  46. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    pretty rude tone!
    anyway: which version of lwrp do you use?
     
  47. Rujash

    Rujash

    Joined:
    Jan 3, 2014
    Posts:
    20
    Hey, sorry, I just realized you never claimed to support 2018 LTS on the product page. This is my first time using any 3D aspects of an engine so I didn't know what to look for.

    I have 4.1.0 and the max I can upgrade to is 4.10 in the package manager for LWRP.
     
  48. Rujash

    Rujash

    Joined:
    Jan 3, 2014
    Posts:
    20
    Hi,

    I changed my version because I wanted one that was compatible with all my assets (including yours), to 2019.2.0f1 with the 6.9.1 LWRP version. EDIT: This had some initial errors but they disappeared later. I'll bring up any if they re-appear.
     

    Attached Files:

    Last edited: Apr 25, 2020
  49. Xskey

    Xskey

    Joined:
    Jul 23, 2013
    Posts:
    21
    Please fix this. Grass Displacement Render Feature cause weird shadow on single pass. (URP 7.3.1, Unity 2019.3.11f1) This happen as well on single pass instanced but the result is different. It effect every shadows as long as this feature is enabled.

    upload_2020-4-26_3-10-52.png
     
  50. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,871
    sorry, but i think this is out of my scope. grass displacement does not work with vr right now.
     
unityunity