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

Get notified when image is rendered #7

Open
AmadeusW opened this issue Oct 4, 2017 · 0 comments
Open

Get notified when image is rendered #7

AmadeusW opened this issue Oct 4, 2017 · 0 comments

Comments

@AmadeusW
Copy link
Owner

AmadeusW commented Oct 4, 2017

The goal is to hide the picture until it is fully downloaded and rendered.
In theory, A-Frame exposes materialtextureloaded that can be used to achieve this, but in practice this event wasn't fired, even if I updated the material like so:
document.getElementById("leftPlane").setAttribute("material", "src: url(...)")

A temporary workaround is to black out the screen for 150ms which works well for already viewed pictures, but is inadequate for newly downloaded photos (seems like web browser cache is not used)

See imageLoader.js

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

1 participant