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

Generate 3D Texture from 3D Model?

Discussion in 'General Graphics' started by themdubs, Aug 3, 2018.

  1. themdubs

    themdubs

    Joined:
    Jan 12, 2014
    Posts:
    26
    Is there a way, either in-engine or not, to render a 3D model to a 3D Texture?

    I want to create a raymarching system using a hollowed out icosahedron; there exists a SDF for icosahedrons however I believe hollowing it out would be too costly and tedious. What I want is to simply model the shape then render that out to a 3D texture which I then can easily sample. I believe this is easier said then done and if not invented yet would make for a great thesis! :D
     
  2. Deatonjc

    Deatonjc

    Joined:
    Apr 22, 2017
    Posts:
    25
    I believe you're asking about xnormal? There are others free as well
     
  3. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,329
    XNormal outputs 2D textures, like normal maps, AO maps, height maps, etc. The OP is taking about voxelization.

    Search for Unity Voxelization and you should find a few examples.