[Fiware-miwi] xml3d.js question: knowing when a material is ready?

Toni Alatalo toni at playsign.net
Wed Nov 6 08:26:55 CET 2013


Hi, another requirement for / question about xml3d.js from the scene scalability work:

Question:
Could we already know somehow in xml3d.js when a material, that uses textures, is ready for display?

Case:
We have proceeded to levels-of-detail work in the scalability effort for the city model and have now first tested the idea that more remote city blocks are loaded without (full) textures first, and then if the view gets nearer, the material with the high detail textures is switched to display. It is good to do that only when the material is fully ready for display, i.e. the texture(s) for it are loaded from the net and all the way to the graphics memory etc.

Three.js does not readily provide that so in the current implementation we need to track the loading ourselves — WebRocket does something similar, probably close to how it works in native Tundra where the Asset manager tracks the loading of dependencies and informs about completions.

So this is to a) inform about yet another requirement discovered in this work and b) ask about the current state of that in xml3d.js.

Cheers,
~Toni


More information about the Fiware-miwi mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy