Search Unity

Question Examples of good Density Mask Textures

Discussion in 'High Definition Render Pipeline' started by Livealot, Sep 26, 2020.

  1. Livealot

    Livealot

    Joined:
    Sep 2, 2013
    Posts:
    228
    My search-fu is weak on this one, so hoping a thread will help generate some leads for the community. There are lots of posts on how to create a density mask texture or how to find the Density Volume Texture Tool. But I can't find any successful example textures, either the 2D source texture for the tool, or the resulting texture 3D.

    If you've made one, or found one, please post links.

    Halloween is coming, and some nice HDRP rolling fog would be lovely.
     
  2. Livealot

    Livealot

    Joined:
    Sep 2, 2013
    Posts:
    228
    This is where the asset is used for HDRP fog, but not how it was created
     
  3. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    455
    I can't remember where I found it, but here you go.
     

    Attached Files:

    dexmex001, sarahlasley and Livealot like this.
  4. Livealot

    Livealot

    Joined:
    Sep 2, 2013
    Posts:
    228
    Thanks @id0 !

    That's exactly the type of example I was hoping to find. For others, id0's example is good for thick fog. If you want to scroll the fog, be careful to setup the volume and direction so that you can avoid any obvious seams in the texture3D.

    If you see a seam, easy fix is to just change scroll direction or rotate the volume where seams are less obvious.

    If anyone else has good examples, or can explain better how to create them from scratch, please share.
     
  5. meadjix

    meadjix

    Joined:
    Dec 31, 2014
    Posts:
    11
    There is this tutorial that explains how to create volume textures in substance, you can download them at the bottom of the tutorial: https://polycount.com/discussion/20...olume-textures-in-substance-designer-tutorial

    The texture importer now supports generating 3D textures from a 2D one with tiles, the only remaining problem is that you have to convert the texture to a 32x32x32 Alpha8 Texture3D object for the volume system, or it will reject your texture.

    Otherwise, if you're using Unity 2020.2, you can try Mixture: https://github.com/alelievr/Mixture
    It's my tool to generate textures in unity and it works for Texture3D in Alpha8 format, here's the quick start guide: https://alelievr.github.io/Mixture/manual/GettingStarted.html
    And an example: https://alelievr.github.io/Mixture/manual/Examples.html#hdrp-density-volume-authoring
     
    dexmex001, oAzuehT, jorikito and 5 others like this.
  6. cpkcpk

    cpkcpk

    Joined:
    Dec 13, 2019
    Posts:
    48
    Does anyone know where the "Density Volume Texture Tool" has gone in Unity 2020.2? It was under Window > Rendering menu in previous versions, and should still be there according to HDRP 10 manual - https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@10.0/manual/Density-Volume.html?q=density texture

    EDIT: I just found out that it's no longer needed in 2020.2 as the texture importer can import sliced textures as 3D textures. I think these are the correct import settings:
     
    Last edited: Dec 22, 2020
    oAzuehT likes this.