https://github.com/tlabaltoh/mesh_from_sdf
Add-on for mesh modeling with SDF in Blender.
https://github.com/tlabaltoh/mesh_from_sdf
Last synced: about 1 year ago
JSON representation
Add-on for mesh modeling with SDF in Blender.
- Host: GitHub
- URL: https://github.com/tlabaltoh/mesh_from_sdf
- Owner: TLabAltoh
- License: mit
- Created: 2025-05-01T17:15:12.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-15T15:57:48.000Z (about 1 year ago)
- Last Synced: 2025-06-15T16:44:51.188Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 1.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

# Mesh from SDF
Add-on for mesh modeling with SDF in Blender.
## Features
- Primitives
- [x] Box
- [x] Sphere
- [x] Cylinder
- [x] Torus
- [x] Cone
- [x] Pyramid
- [x] Truncated Pyramid
- [x] Hexagonal Prism
- [x] Triangular Prism
- [ ] Spline
- [x] Distance Function (External files written in GLSL format)
- [x] SDF to Mesh Conversion (Based on Marching Cube)
- Boolean Operations
- [x] Union
- [x] Diffrence
- [x] Intersection
- Blend Types
- [x] No Blending
- [x] Smooth
- [x] Champfer
- [x] Steps
- [x] Round
- [ ] Mirror
- [ ] Repeat
## Requirements
- Blender 4.x (Development and testing is being done with this Blender version)
- Windows 10 / 11 (Not tested on MacOS and Linux)
## Dependent packages
- [moderngl](https://github.com/moderngl/moderngl)
## Installation
1. Drag and drop the zip file downloaded from the repository release page into Blender to install.
2. Activate the installed add-on (mesh_from_sdf) in `Edit/Preference/Add-ons`.
## Start up
1. Select `SDF2Mesh` from the toolbar to open the add-on hierarchy panel.
2. Changed `RenderEngine` to `MeshFromSDF`
3. Switch the 3D View render mode to `Render` or `Material`.
4. Pressing the reload button displays the SDF objects registered in the hierarchy (Do this the first time you start Blender or activate this add-on).
## Known Issue
- Undo processing is not implemented for Gizmo operations on SDF primitives.
- While it is possible to always invoke Undo while dragging Gizmo, ideally, Undo should be executed only when the drag ends.
- After changing the type of the SDF primitive once, the previous Gizmo operation is reset when it is changed back again.