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

WebWorker support for MeshLoader plug-ins #24

Closed
ksons opened this issue Oct 29, 2013 · 4 comments
Closed

WebWorker support for MeshLoader plug-ins #24

ksons opened this issue Oct 29, 2013 · 4 comments

Comments

@ksons
Copy link
Member

ksons commented Oct 29, 2013

Exploit WebWorker to decode mesh data in handlers. This is in particular important for mesh formats that are expensive to deccode, for instance LZMA encoded OpenCTM resources.

Shoudn't be a big issue as Xflow has the capabilities to asychronously fill the data.

@ksons
Copy link
Member Author

ksons commented Oct 30, 2013

We double-checked. this. One could use the Xflow capbabilities already today (set state of Xflow node to loading and will the data in asychronously). However, a better integration into the resource management would be favourable.

@jonnenauha
Copy link

Does this also address that custom loaders don't have to return the results right away but instead call a function when its ready. I guess this implies that it would be added to the loader interface, but wasn't sure.

@ksons
Copy link
Member Author

ksons commented Oct 30, 2013

That is exactly the main chnage. Instead of returning the adapter imeediatly, the plug-in would use a callback. Then the resource is considered as pending during encoding and all elements get informed once the decoded resource is available.

@ksons
Copy link
Member Author

ksons commented Nov 18, 2013

This enhancement is implemented and available in 4.5 (c188de3). Here is a running example using the OpenCTM plugin.

Plug-ins are also now part of the repository.

@ksons ksons closed this as completed Nov 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants