Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug VFX SDF Baker feedback

Discussion in '2021.2 Beta' started by hippocoder, Oct 13, 2021.

  1. hippocoder


    Digital Ape

    Apr 11, 2010

    I'm not sure if it's a limitation or bug, but I want to bake extremely accurate SDFs from meshes. Currently I can only get the bake tool to manage 255. I have a massive GPU and 255x255x255 is only 32 mb. I would like to bake 512 or above.

    This isn't for realtime effects, it's for pre-rendered stuff, so performance is hardly a concern. Please lift these artificial limits, or allow the API bake to use any numbers I want (I haven't checked the API yet but that's my next step).

    The tool's quality is rather fantastic. It could be possibly improved by a smoothing factor of some kind. Thanks for listening and I hope I'll be able to bake much higher resolution models in future.

    I've listed this as a bug as it seems odd as I can bake 255 but not 256 and beyond.
    LeonhardP likes this.
  2. ludovic-theobald


    Unity Technologies

    Jun 3, 2021

    First, thanks for your feedback, it's greatly appreciated!

    We worked on lifting the current limitation, bringing the maximum amount of voxels in a texture to 512^3. This means that if the baking box is not a cube, the resolution along the largest axis can be greater than 512 (that was already the case before).
    As a clarification, the limit is not only determined by the size of the final output, but also by the size of the intermediate buffers and textures used during the baking process.

    I'm glad you're happy with the tool. Could I ask you to elaborate a bit on the smoothing factor you mention ? What would be the meaning of it ?