Skip to content

Commit

Permalink
Add info about Mesh SDF baking on GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
mafiesto4 committed May 29, 2024
1 parent e123a93 commit 6f2e1b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manual/graphics/models/sdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
A model asset can contain an SDF texture baked for the meshes which can be created in the Model Window. It displays the resolution and GPU memory usage of the baked texture. You can adjust the bake options and *Rebuild* or *Remove* the data.

> [!Warning]
> Calculating an SDF texture is a very computationally expensive process and Flax uses the Job System to schedule asynchronious calculations which might *freeze the computer*.
> Calculating an SDF texture is a very computationally expensive process and Flax uses the GPU or Job System to schedule asynchronious calculations which might *freeze the computer*.
| Option | Description |
|--------|--------|
| **Resolution Scale** | The SDF texture resolution scale used for building the texture. Higher values drastically increase memory usage and computation time but increase the quality of the mesh representation. |
| **Bake on GPU** | If checked, SDF generation will be calculated using GPU on Compute Shader, otherwise CPU will use Job System. GPU generation is fast but result in artifacts in various meshes (eg. foliage). |
| **Backfaces Threshold** | Custom threshold (in the range `0-1`) for adjusting mesh internals detection based on the percentage of test rays hitting triangle backfaces. Use lower values for more dense meshes. |
| **LOD Index** | Index of the model Level of Detail to use for SDF data building. By default the lowest quality LOD is used for fast building. |

Expand Down

0 comments on commit 6f2e1b6

Please sign in to comment.