Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug SDF Bake Tool - Completely Black?

Discussion in 'General Graphics' started by RudyRG3D, Jun 22, 2023.

  1. RudyRG3D

    RudyRG3D

    Joined:
    Mar 3, 2022
    Posts:
    15
    Hello,

    I was wondering if anyone was experiencing this issue, or if this may be a bug. No matter what I try as mesh, whether I create something in Maya and import it, or even make a standard sphere within Unity itself, it always creates a solid black SDF volume after baking? When I change the Texture view from 'Volume' to 'SDF' it is always a solid gradient cube. Even if I move the bounding box to cover only part of the Mesh, still bakes as solid black, or a solid gradient cube in SDF view mode.

    It seems like the Mesh is totally being disregarded and treating it as it doesn't exist. (Note: On an imported model, I set the checkbox to 'on' for Read/Write) I would think it would work perfectly with a native Sphere from within Unity, but it does not.

    Any help would be much appreciated. Thank You!
     
  2. RudyRG3D

    RudyRG3D

    Joined:
    Mar 3, 2022
    Posts:
    15
    I forgot to add that I get this error the minute I close the SDF Bake Tool. Also using latest version of Unity (2022.3.2 LTS)

    "Destroy may not be called from edit mode! Use DestroyImmediate instead.
    Destroying an object in edit mode destroys it permanently.
    UnityEngine.GUIUtilityProcessEvent (int,intptr,bool&)"