Vector Fields / Signed Distance Fields | Visual Effect Graph | 7.1.8
docs.unity3d.com
    Show / Hide Table of Contents
    Draft: The content on this page is complete, but it has not been reviewed yet.

    Experimental: This Feature is currently experimental and is subject to change in later major versions.

    Vector Fields / Signed Distance Fields

    Vector Fields and Signed Distance Fields are 3D Fields containing values stored in voxels. These are available as 3D Textures in Visual Effect Graph and can be imported using the Volume File (.vf) file format.

    Volume File is an Open Source specification that contains basic structure for storing floating point data. The VF Files are automatically imported in unity as 3D Textures and can be used in Visual Effect Graph Blocks and operators that input 3D Textures (such as Vector Field or Signed Distance Field Blocks).

    Vector Field Importer

    When importing VF Files, unity provides the following settings in the Inspector:

    • Output Format : Precision of the Output 3D Texture
      • Half : Floating Point with 16-bit Half Precision
      • Float : Floating Point with 32-bit Single Precision
      • Byte : Unsigned Fixed Point values of 8-bit Precision
    • Wrap Mode : Wrap Mode of the output Texture
    • Filter Mode : Filter Mode of the output Texture
    • Generate Mip Maps : Whether to generate mip-maps for the texture
    • Aniso Level : Anisotropy Level

    Generating Vector Field Files

    You can generate point cache using various methods:

    • Using the Houdini VF Exporter bundled with VFXToolbox (located in the /DCC~ folder)
    • By writing your own exporter to write VF Files files that follow the specification.
    In This Article
    • Vector Field Importer
    • Generating Vector Field Files
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023