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

Expose glTF bufferView to callbacks #2312

Merged
merged 7 commits into from
Jul 24, 2020

Conversation

slimbuck
Copy link
Member

This PR simplifies the way bufferViews are handled in GlbParser and adds support for preprocess, processAsync and postprocess callbacks. This callback support will allow us to easily integrate bufferView-based compression schemes, for example https://github.com/zeux/meshoptimizer.

ContainerHandler's asynchronous callbacks were changed. The processAsync handlers are now always called, but if the handler invokes the continuation without an error or result (i.e. callback(null, null);), this indicates the resource was unhandled and GlbParser continues to load the resource as usual.

Also fixed a bug with MiniStats sometimes failing to update it's dynamic texture.

I confirm I have signed the Contributor License Agreement.

@slimbuck slimbuck added enhancement area: graphics Graphics related issue labels Jul 23, 2020
@slimbuck slimbuck requested a review from a team July 23, 2020 18:48
@slimbuck slimbuck self-assigned this Jul 23, 2020
@slimbuck
Copy link
Member Author

done! :D

@slimbuck slimbuck merged commit 1360e95 into playcanvas:master Jul 24, 2020
@slimbuck slimbuck deleted the glb-buffers-update branch July 24, 2020 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants