Search Unity

HDRP & ECS incompatible?

Discussion in 'Entity Component System' started by DotsCreative, Dec 25, 2019.

  1. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
    Hi!
    I'm currently testing ECS with HDRP on 2019.3.0f3. I'm using hybrid renderer to render entities, but it doesn't appear to work correctly. In the picture, the right cube is an exact copy of the left cube with a basic lit material from custom basic shader with only color as input. I've tested with both 2019.3.0f4 and latest alpha of 2020.1, all the other skies than the physical one in the picture. But the thing is: the arrow to the right is a normal gameobject with an unlit shader. The arrows in the middle use the same material, but are entities.
    I don't know if there is an incompatibility with Entities 0.4 and hdrp 7.1.7. But my current conclusion is that unlit materials works while lit doesn't. Have someone else encountered the same problem?

    Thank you for reading this!

     
  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    Image not showing.
    upload_2019-12-25_19-9-58.png
     
  3. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
  4. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
  5. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
    Sorry, I don't know how these things work!
     
  6. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    Not use sh...t like imgur and other, just paste image in post :)
    upload_2019-12-25_19-14-32.jpeg
     
    DotsCreative likes this.
  7. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    SRP batcher enabled? And lighting baked on scene?
     
  8. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
    Yes, batcher is enabled and the scene is not baked. I also get these artifacts in game view mode:
     
  9. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
  10. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    Disabling SRP batcher made effect?
     
  11. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
    Sadly it stays the same. But i've noticed that it's only the game view that has that problem. The entities in scene view render like the first picture.
     
    Last edited: Dec 26, 2019
  12. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    HDRP should works fine with Entities 0.4.0 it's the SRP used by Unity team until now.
    I'm also using HDRP without problems with Entities 0.4.0
     
  13. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
    which sky are you using?
     
  14. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    I'm using the default sky.
    Can't really try other skies at the moment because I'm out of the computer.
     
  15. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
    ok. I've found that the entities are rendered as if the type in Visual Environment component is set to "None"
     
  16. spaceemotion

    spaceemotion

    Joined:
    Sep 29, 2015
    Posts:
    95
    I know this is about HDRP, but i found it to be the same for URP. The changelog did state that they removed some lighting related things though (albeit a couple versions ago already).
     
  17. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
    Ok. But the weird thing is that when I test it in a build, it works perfectly. I thought it was a bug with the editor, but then it should have been consistent. But it's working for others, so I don't know.