Closed PolSpock closed 6 months ago
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.
Thanks for your work on this! I'll take a look this week, and try to sort out the chunk spam.
I'll hold off on merging until we can sort out referencing libraries: Facepunch/sbox-issues#5053
Closing for now since I went with maintaining the old API, but I'll revisit brushes at some point.
Hey @trundlr @kira0x1 @Metapyziks
This is an attempted SDF library fix from Ziks SDF library. There are a few points to be aware of:
SdfWorld.GetOrCreateChunk()
is now creating Chunk each time is been updated. So beware of the Transform update: it will create more and more Chunks.https://github.com/Facepunch/sbox-libpolygon
has been dirty imported inlibsdf\code\LibPolygons
cause i didn't manage to get a workingPackageReferences
:facepunch.libpolygons
. Does PackageReferences s&box options still work?How to get the working result: 1) Download my fixed repo 2) Add the
sbox-sdf/libsdf/.sbproj
to s&box 3) Play thesbox-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