Skip to content
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

Separate buffers using Draco compression #7

Closed
AlexPiro opened this issue Nov 12, 2019 · 2 comments
Closed

Separate buffers using Draco compression #7

AlexPiro opened this issue Nov 12, 2019 · 2 comments
Assignees

Comments

@AlexPiro
Copy link
Contributor

When using the draco compression extension, buffers are embed into the gltf file which is not the case when not using this extension.
When using the gltf-pipeline, "separate option" is always "false" in your code :
if (this.compress || this.binary) { this.log('Post-processing gltf output...'); const options: any = { resourceDirectory: this.baseDir, separate: false, separateTextures: false, stats: false, name: 'output' }; if (this.compress) { options.dracoOptions = { compressionLevel: 10 }; }

This should be very useful for importers that does not support embed buffers (cf. GLTF Fast for Unity.

@petrbroz
Copy link
Owner

Sure, we can change that. What's your suggestion? Perhaps using separate: true when this.binary === false, and using separate: false when this.binary === true?

@AlexPiro
Copy link
Contributor Author

Yes, it seems good from my point of view !

@petrbroz petrbroz self-assigned this Nov 13, 2019
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