Skip to content

Encode glb file? #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bertt opened this issue Jul 6, 2024 · 1 comment
Open

Encode glb file? #2

bertt opened this issue Jul 6, 2024 · 1 comment

Comments

@bertt
Copy link

bertt commented Jul 6, 2024

Hi, is there an option to encode using bytes from glb?

So this is possible:

var bytes = File.ReadAllBytes(file);
var opt = new DracoEncodeOptions();
var drcBytes = Draco.Encode(bytes, opt);
@lexchou-aspose
Copy link
Member

Encode method turns a DracoMesh or DracoPointCloud instance into byte array, what you get in glb with draco compression is already byte array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants