Facepunch / sbox-sdf

Library providing marching cubes / squares mesh generation
MIT License
15 stars 7 forks source link

Scenefix #23

Closed PolSpock closed 6 months ago

PolSpock commented 7 months ago

Hey @trundlr @kira0x1 @Metapyziks

This is an attempted SDF library fix from Ziks SDF library. There are a few points to be aware of:

How to get the working result: 1) Download my fixed repo 2) Add the sbox-sdf/libsdf/.sbproj to s&box 3) Play the sbox-sdf/libsdf/scenes/sdf.scene

My fix keeps the same logic as Ziks video:

https://github.com/Facepunch/sbox-sdf/assets/5229571/7b2d864a-ca61-4150-8d74-9754873d518d

kira0x1 commented 7 months ago

image This is awsome that it finally works but no kidding on the chunks haha. might try to see if i can optimize it but thank you for putting in all this work on getting a repo out. helps a ton.

Metapyziks commented 7 months ago

Thanks for your work on this! I'll take a look this week, and try to sort out the chunk spam.

Metapyziks commented 7 months ago

I'll hold off on merging until we can sort out referencing libraries: Facepunch/sbox-issues#5053

Metapyziks commented 6 months ago

Closing for now since I went with maintaining the old API, but I'll revisit brushes at some point.