You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you still experiencing this issue? If so, can you provide more details? In particular, it's not clear what you mean by the "glb is not getting loaded".
Otherwise, if this is no longer relevant, or if we don't receive a response, I'll close this issue.
I have the following code and the saved decompress.glb is not getting loaded!
GltfReader reader;
GltfReaderResult result = reader.readGltf(readFile("C:\Users\EXT_meshopt_compression.glb"));
Model& model = result.model.value();
CesiumGltfWriter::GltfWriter writer;
CesiumGltfWriter::GltfWriterOptions options;
options.binaryChunkByteAlignment = 4;
const std::vectorstd::byte readModelBuffer = model.buffers[0].cesium.data;
CesiumGltfWriter::GltfWriterResult writeResult =
writer.writeGlb(model, gsl::span(readModelBuffer), options);
const std::vectorstd::byte& glbBytesDefaultPadding = writeResult.gltfBytes;
std::ofstream ofs("C:\Users\decompress.glb", std::ios::binary | std::ios::trunc | std::ios::out);
ofs.write(
(const char*)glbBytesDefaultPadding.data(),
glbBytesDefaultPadding.size());
ofs.flush();
ofs.close();
The text was updated successfully, but these errors were encountered: