Hi,
I'm developing a server side service to take screenshots of 'views' into our pano images using the html5 viewer running on the server.
I need to work out the fastest way to load the tiles and to know exactly when the image has been loaded fully at an initial startup position.
At the moment I'm listening to the onloadcomplete for the scene I'm loading, but i notice this loads roughly around half a second before the actual tiles have clearly loaded.
I am often getting blurred images in my snapshots because of this. (see attached image). I can see the preview image is already being skipped using the NOPREVIEW option, that bits working fine, though i;m still getting the blurred images.
When i look at the image loading sequence i can see most of the tiles for level 1 are loaded, then some tiles for level 6 and then 7.
(See attached image). It feels like level 1 is loaded first, even though I'm zoomed all the way into level 7 and these level 1 tiles are still showing for an instant before the level 7 tiles are shown.
Is there a way to skip loading of these level 1 tiles entirely?
very grateful for any help..
/Neal
Here is the xml code for the setup i have:
using viewer version 1.18.4
The initial position is loaded dynamically in my case though in most cases the fov is very low as we are often zoomed into level 6 or 7.
<krpano onstart="onStartup();" >
<action name='onStartup'>
set(initialPos, 'view.hlookat=90.0&view.vlookat=0.0&view.fov=1.0")
loadscene(mainscene, get(initialPos), NOPREVIEW);
</action>
<!-- and -->
<scene name="mainscene">
<events name="MainSceneEvents" onloadcomplete="MainSceneLoadComplete()"/>
<action name="MainSceneLoadComplete">
trace('MainSceneLoadComplete');
js(sendMessageToTakeSnapshot()); <!--- We are supposed to be loaded here!? -->
</action>/>
<preview url="https://77ec44ffe407831521bf-aa991bbd1eee43431a050c665ed486d6.ssl.cf1.rackcdn.com/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512" progressive="false">
<level tiledimagewidth="52152" tiledimageheight="52152">
<cube url="https://77ec44ffe407831521bf-aa991bbd1eee43431a050c665ed486d6.ssl.cf1.rackcdn.com/l7_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="26112" tiledimageheight="26112">
<cube url="https://77ec44ffe407831521bf-aa991bbd1eee43431a050c665ed486d6.ssl.cf1.rackcdn.com/l6_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="13056" tiledimageheight="13056">
<cube url="https://77ec44ffe407831521bf-aa991bbd1eee43431a050c665ed486d6.ssl.cf1.rackcdn.com/l5_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="6528" tiledimageheight="6528">
<cube url="https://77ec44ffe407831521bf-aa991bbd1eee43431a050c665ed486d6.ssl.cf1.rackcdn.com/l4_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="3264" tiledimageheight="3264">
<cube url="https://77ec44ffe407831521bf-aa991bbd1eee43431a050c665ed486d6.ssl.cf1.rackcdn.com/l3_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="1632" tiledimageheight="1632">
<cube url="https://77ec44ffe407831521bf-aa991bbd1eee43431a050c665ed486d6.ssl.cf1.rackcdn.com/l2_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="816" tiledimageheight="816">
<cube url="https://77ec44ffe407831521bf-aa991bbd1eee43431a050c665ed486d6.ssl.cf1.rackcdn.com/l1_%s_%0v_%0h.jpg" />
</level>
<mobile>
<cube url="https://77ec44ffe407831521bf-aa991bbd1eee43431a050c665ed486d6.ssl.cf1.rackcdn.com/mobile_%s.jpg" />
</mobile>
</image>
</scene>
Display More