SDFGen Usage - UnityDevTeam/VectorVolumeProject GitHub Wiki

SDFGen

SDFGen (https://github.com/christopherbatty/SDFGen) is a tool to generate distance fields from mesh.

It generates a simple text file, but uses unique dimensions.

Usage

SDFGen obj-file size 1

the largest expansion should be <=n^2 for optimal import in unity 3d texture

Import in unity

import with sdl loading command from menu. currently filling all missing values with float.MaxValue Will fail when implementing sphere tracing! Will need to interpolate or use edge extension