texture loading in background
Reported by collada | April 17th, 2010 @ 06:47 AM | in V0.7.4
maybe it is possible to display the geometry with basic
material, and have texture loading in the background
this will help the user that can see the 3D model faster and not
have to wait for everything to be loaded
Comments and changes to this ticket
-
lindsay.kay (at xeolabs) April 17th, 2010 @ 08:35 AM
Strangely, it appears as if WebGL in Chromium is queuing up texture creation and doing that in a big batch that blocks the browser, only unblocking when all texture creations complete.
But not in Minefield, which seems to create the textures immediately, where you get slow scene interactivity in the meantime.
I found that even if I substitute untextured geometry to render in place while texture loads, it has no effect in Chromium because it seems the whole browser is being blocked for all the texture loads.
Eventually I plan to use worker threads I think.
-
lindsay.kay (at xeolabs) April 17th, 2010 @ 08:39 AM
- State changed from new to open
-
lindsay.kay (at xeolabs) April 17th, 2010 @ 09:10 AM
So the COLLADA parsing is actually very fast - I'll show that with logging of texture loads and an example showing no textures.
-
lindsay.kay (at xeolabs) April 22nd, 2010 @ 04:34 AM
Confirmed: geometry is initially rendered without textures in their absence, but then WebGL texture creation happens in a big burst and freezes everything.
Will detect support for Web workers and employ those in supported browsers.
-
lindsay.kay (at xeolabs) May 5th, 2010 @ 04:00 AM
- Milestone set to V0.7.4
-
lindsay.kay (at xeolabs) May 8th, 2010 @ 08:06 AM
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
SceneJS provides easy access to WebGL through a simple and declarative JavaScript API. The SceneJS API is functional, which enables its scene definitions to be really compact and expressive, while hooking into other JavaScript code just that little bit more smoothly.