microsoft / glTF-Toolkit

A collection of tools for modifying and optimizing glTF assets
MIT License
295 stars 41 forks source link

Need help with creating draco mesh straight from gltf-sdk #57

Open Yejneshwar opened 2 years ago

Yejneshwar commented 2 years ago

Hi,

I've been trying to use the toolkit with the gltf-SDK to generate a .glb file with Draco mesh compression. (without the file being saved by the SDK first.)

I keep getting the error Buffer.uri was not specified

If I try the .gltf file there is heap corruption at https://github.com/microsoft/glTF-Toolkit/blob/e4786433c524c0120697ce3326cef2e6c0cc89b4/glTF-Toolkit/src/GLTFMeshCompressionUtils.cpp#L250

This is what buffer.data() prints for a buffer of any size : DRACO☻☻☺☺

Any help would be appreciated, thanks!