This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
Add SDF Viewer as another renderer for this library #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I made a real-time, cross-platform, language-agnostic SDF Viewer application, and integrated it with your SDF library. It works similarly to
sdf3ui
but has some extra features (AFAIK):Check out https://github.com/Yeicor/sdf-viewer and https://github.com/Yeicor/sdf-viewer-go for much more information.
A little demo:
demo.mp4
Note that I had to use TinyGo instead of the Go Compiler, so the builds (after the code change) are a lot slower than Go.
Another useful feature is verifying that the SDF is properly defined, as a bad SDF will show artifacts on the SDF renderer (even if marching cubes or other algorithms seem to return a valid result). For example, it seems like
ScaleUniform3D
may not be correct (I haven't looked at it, it may also be an error with the integration), as it gives some render issues:Without
ScaleUniform3D
:With
ScaleUniform3D
: