Search Unity

Question Confused by SDFs

Discussion in 'Visual Effect Graph' started by valveCorpHype, Oct 11, 2022.

  1. valveCorpHype

    valveCorpHype

    Joined:
    Jul 5, 2018
    Posts:
    14
    I understand the basic principles of SDFs, but what exactly are their advantages when it comes to representing geometry? Why does VFX graph use SDFs (as opposed to triangles) to represent mesh?
     
  2. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,307
    I have not enough knowledge to explain this in detail, but short answer is performence. Also VFX graph runs on GPU, so things like unity physics can't be used directly. In addition some data structures are faster/easier to work with.
     
    Last edited: Oct 12, 2022