Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
|
|
Source code |
1 2 |
set(display.details, ##); updateobject(); |
|
|
Source code |
1 2 3 4 5 |
set(events.onidle, setDetails(32)); set(events.onmouseup, setDetails(32)); set(events.onmousedown, setDetails(8)); set(events.onkeydown, setDetails(8)); set(events.onkeyup, setDetails(8)); |
|
|
Source code |
1 2 3 4 |
<action name="setDetails"> set(display.details, %1); updateobject(); </action> |
when pressing tab - just lines around triangle will be down,If I press tab, it works perfectly, untill you move to uncached area. Then I see some 32detailed tiles and movement becomes bit jaggy (this could alsoo be the result of the TAB view). It seems it updates the currentview to 8 details and not the whole Sphereobject.
it depends also on the size of the pano, number of tiles, and the details setting itself, how long it will need to update the internal 3d object, changing the details on a >2 gigapixel pano would be slow, but on a 2-10 megapixel pano it would be fast in comparison, I can't give a recommendation here, maybe just try and see if it's okay in your case...Why is it not sensable to use updateobject alot? And what is alot? onviewchange would be alot, but would onmousedown/up raise some issues? Performance wise I see an improvement.
how do you mean that?Btw doesn't the quality settings internally redraws the canvas? (same like the details settings)
Quoted
Quoted
Btw doesn't the quality settings internally redraws the canvas? (same like the details settings)
how do you mean that?
Quoted
right, updateobject() updates only the details for the current level (note - you can set the details for each level in the xml),
updating all level is currently not possible,
This post has been edited 1 times, last edit by "Zephyr" (Jun 2nd 2010, 9:37am)
no, Flash itselfs doesn't draw or calculate the sphere/cube/...Isnt this basicly the same with details settings. Flash draws a 3d vector sphere/cube/cylinder, after changing the details, it has to redraw it.
which preloader?On a completely other subject. Maybe I asked this before but, how does the (pre)loader work? Does it include plugin and xml files? Like if I have a 1mb plugin file, does he preload it together with the tiles? or is it just the tiles/panorama?
|
|
Source code |
1 2 |
<progress showload="bar(center,33%,3%,0,15%,shaded,
0x000000,0x666666,0xAAAAAA)" />
|
right, that's true,Since it's in the xml, I reckon that it doesn't take the size of the xml in consideration. (So If you have 100kb xml file, it has to load 100kb, before it shows anything, you basicly stare to a blank screen).
no, this 'loading bar' shows only the progress of the pano tiles loading,Then it loads the preview image and the plugins. Is that added in the preloader bar?
If it's not, then it has to load loads of Kb before the user sees anything.
that's more difficult as you maybe think - the filesize of the plugins is not known before starting loading them, and the number of simultaneous loading files is limited by the browser, you see the problem also when using multi-resolution panos, calculating a sense-full progress bar there, is not an easy topic...I know it's impossible to show a loader when loading the xml files when the loader information is in the xml file, but would it be possible (as a feature request) to include the bytes from the preview image and plugins in the preloader bar?
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 |
<krpano onstart="startup();"> <plugin name="loadingscreen" url="image.jpg" align="center" keep="true" /> <action name="startup"> loadpano(main.xml, null, MERGE); wait(BLEND); tween(plugin[loadingscreen].alpha, 0.0, 0.5, default, removeplugin(loadingscreen) ); </action> </krpano> |