Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »odysseyjason« (5. Januar 2010, 16:44)
technically that would be possible in krpano of courseOne of the features I miss in KrPano for gigapixel images is what is called Sparse Images in DeepZoom terminology. Its basically an aerea in the image pyramide that has more depth/resolution than the rest of the image. May this be fauxed/hacked in KrPano by manually adding more depth/image tiles ?

okay, I will think about a way how to preload/cache pre-defined views(paths)...As for the 'scripting' in krpano, there needs to be some sort of preflight mode, that downloads the necessary image tiles and caches them beforehand so that the 'flight' is not blury low-res tiles the first (and likely only) time a viewer views a scripted scene. I have thought about having a second krpano display in a layer behind the visible one that is a few seconds ahead in its scripted storyline in order to get the image tiles precached for the krpano display that is viewed. As noted in this forum recently, the easing algorithms in krpano need to be worked on too.
Thats cool. Then it will be possible to do lot of creative stuff.
Zitat
About sparse images: technically that would be possible in krpano of course
but it's the way how to control/define that - I'm thinking about multiresolution hotspots for that...
in future,Is that technically possible in the future or is it possible with 1.08 with some hacks ?
see here:Is the tile naming/scheme documented anywhere ?
I`m also wondering if its possible to layer vector art with gigapixel size in Krpano ?

Info like on alpine maps: http://www.alpineskimaps.com/htm/austria…k/wintermap.htm
Zitat
what exactly do you want to do?
polygonal hotspots could be used a vector elements...
That is already possible
Zitat
....the key feature that needs to be added the krpano is the possibility to click-to-zoom, ...
... The Keys to do are:|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<script type="text/javascript">
// <![CDATA[
function krpano()
{
return document.getElementById("krpanoSWFObject");
}
function movetoscreentosphere(){
var mousex = krpano().get("mouse.x");
var mousey = krpano().get("mouse.y");
var hvs = krpano().get("screentosphere("+mousex +","+mousey +")");
var hva = hvs.split(",");
var ath = Number( hva[0] );
var atv = Number( hva[1] );
krpano().call("moveto("+ ath +","+ atv +")");
}
// ]]>
</script>
|
|
|
Quellcode |
1 2 3 4 5 6 7 |
<krpano version="1.0.8"> <events onclick="js(movetoscreentosphere());" /> ............ </krpano> |
The answer above was made a little in a way precipitated
...|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<script type="text/javascript">
//
<![CDATA[
function krpano()
{
return document.getElementById("krpanoSWFObject");
}
function movetoscreentosphere(){
var mousex = krpano().get("mouse.x");
var mousey = krpano().get("mouse.y");
var current_fov = krpano().get("view.fov");
var next_fov = current_fov - 10;
var hvs = krpano().get("screentosphere("+mousex +","+mousey +")");
var hva = hvs.split(",");
var ath = Number( hva[0] );
var atv = Number( hva[1] );
krpano().call("lookto("+ ath +","+ atv +","+ next_fov +")");
}
// ]]>
</script>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 |
<krpano version="1.0.8"> <events onclick="js(movetoscreentosphere());" onviewchange="set(events.onclick,);onidle();" onidle="set(events.onclick,js(movetoscreentosphere());)" onxmlcomplete="set(idletime,0.1);" /> ............ </krpano> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »michel« (27. März 2010, 02:29)
... click-to-zoom seems to not be as easy as it seems... I am going to open a new thread about this...|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
<script type="text/javascript">
// <![CDATA[
function krpano()
{
return document.getElementById("krpanoSWFObject");
}
function krpanodbclick(arg) {
setTimeout("numclick = 0",300);
numclick = numclick + 1;
if (numclick == 2) {
eval(arg);
}
}
function looktoscreentosphere(){
var mousex = krpano().get("mouse.x");
var mousey = krpano().get("mouse.y");
var current_fov = krpano().get("view.fov");
var next_fov = current_fov - 0.10;
var hvs = krpano().get("screentosphere("+mousex +","+mousey +")");
var hva = hvs.split(",");
var ath = Number( hva[0] );
var atv = Number( hva[1] );
krpano().call("lookto("+ ath +","+ atv +","+ next_fov +")");
}
// ]]>
</script>
|
|
|
Quellcode |
1 2 3 4 5 6 7 |
<krpano version="1.0.8"> <events onclick="js(krpanodbclick(looktoscreentosphere()));" /> ....... </krpano> |
... So:Yes but with an ondoubleclick instead of clickIs there currently a possibility to enable click-to-zoom by scripting something fancy?
.... for the moment
....
|
|
Quellcode |
1 2 |
screentosphere(x,y,h,v); spheretoscreen(h,v,x,y); |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<events onmousedown="copy(lastmx,mouse.x); copy(lastmy,mouse.y);"
onmouseup="if(lastmx == mouse.x,
if(lastmy == mouse.y,
mul(tofov,view.fov,0.5);
if(tofov LT view.fovmin, copy(tofov,view.fovmin));
screentosphere(mouse.x,mouse.y,toh,tov);
adjusthlookat(get(toh));
tween(view.hlookat,get(toh));
tween(view.vlookat,get(tov));
tween(view.fov,get(tofov));
);
);"
onmousewheel="stoptween(view.hlookat,view.vlookat,view.fov);"
onkeydown="events.onmousewheel();"
/>
|