Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Streaming Virtual texturing

Discussion in 'High Definition Render Pipeline' started by Ruchir, Nov 5, 2021.

  1. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
    Well, I tried using SVT for my game but couldn't find any material to learn from or understand pros and cons of each method.

    There isn't even a proper guide as to how to use SVT in HDRP outside a single video from unity which hardly goes into any details.

    And this doc:
    Unity - Manual: Streaming Virtual Texturing (unity3d.com)

    While implementing them in Shader Graph, I found quite a lot of aliasing issues when using them.
    HDRP/Lit:
    upload_2021-11-5_12-40-46.png
    SVT (custom Shader Graph) (expand the images to see the issue properly, mipmaps issue?):
    upload_2021-11-5_12-41-5.png

    upload_2021-11-5_12-41-45.png

    Also, what are these settings in the SampleVirtualTexture node?
    upload_2021-11-5_12-44-30.png
    I can't use the Triplanar mapping node either as it only takes a texture as an input while SampleVirtualTexture outputs a color.

    I can't even provide a sampler to Virtual texture for some reason like we do for normal Texture2Dd nodes:
    upload_2021-11-5_12-45-41.png

    Any help is really appreciated, I am currently exploring SVT for my project, but it looks like a lot of info is missing in official documentation
     
  2. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
    My debug view looks like this:
    upload_2021-11-5_12-54-0.png
    It looks like very small area around the camera is showing those colored debug tiles, a bug maybe?
     
  3. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
  4. PutridEx

    PutridEx

    Joined:
    Feb 3, 2021
    Posts:
    1,136
    Yeah, there's very little info about it out there.
    I also think unity's default materials should support virtual texturing by default.. at least Lit.
    VRAM usage is so high with HDRP.
    Doesn't have to be by default, just set an option for it.
     
    Ruchir likes this.
  5. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
    There used to be a forum thread about the beta release for svt, I guess it had more info about this but I can't really find it anymore.

    Also, isn't someone using this in production?
     
  6. Lex4art

    Lex4art

    Joined:
    Nov 17, 2012
    Posts:
    445
    Ruchir likes this.