-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
Make writing GLTF scene to a stream more flexible #359
Comments
It may be better to introduce callback handlers to Your contribution is much appreciated! |
There are already file system callbacks that can be set with |
Oh, I see.. Writing API is not mature and needs an improvement. Anyway, You can propose PR to fix/improve writing API! |
How would you suggest to implement this - to make the callbacks work or use the new version of |
@TheMostDiligent Propose new API considering your usecase senario recommended. Current API design of |
I am trying to understand the architecture and there are few questions that I have. In particular, why |
Serialization feature is primarily contributed by @AurL and there are some inconsistency between loader(primarily implemented by me) and serializer API. There is no strong reason not implementing |
Describe the issue
Currently,
WriteGltfSceneToStream
always embeds images and buffers into the output stream, which is not very flexible. In our usage scenario we would like to write images to separate files as they are shared between multiple scenes, but at the same time to be able to output the scene to a custom stream. At the moment we have to write the scene to a file on disk and then immediately read it back.To Reproduce
Expected behaviour
WriteGltfSceneToStream
takes additional argumentsembedImages
andembedBuffers
that control how images and buffers are embedded. The following function overload could be added which will let the existing function work as before:Screenshots
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered: