Beiträge von Alberto
-
-
Is it possible switch from krpano to UIView in an application for iPad directly using a krpano action or command?
-
Thank you for reply Klaus.
Can I use a high resolution preview or what I have is the best I can get on the iPad?Best Regards
Alberto -
Is there any way to prevent blur effect when I switch view?
I try to create high res preview.jpg file but don't work -
Thank you, using the tools I get a good result.
With the preload of the images would be better?
If yes, how could I do? -
it is possible that the problem is the images are too heavy?
What size images should be for iPad?
And if I make a preload how can I do it? -
-
Sorry, but I don't understand how i should modify my xml.
I'm new with krpano, so sorry.
Code
Alles anzeigen<krpano version="1.0.8" onstart="startup();"> <action name="startup"> <!-- load the first scene --> loadscene(get(scene[0].name), null, MERGE); <!-- build the thumbnails (remove the next line to remove the thumbnails) --> buildthumbs(); </action> <!-- disable the progress bar --> <progress showload="none" showwait="none" /> <scene name="pano1" title="" onstart="" thumburl="pano1.tiles/thumb.jpg"> <view hlookat="50" vlookat="25" fovtype="MFOV" fov="120" fovmin="100" fovmax="120" /> <preview url="pano1.tiles/preview.jpg" /> <image type="CUBE"> <left url="pano1.tiles/mobile_l.jpg" /> <front url="pano1.tiles/mobile_f.jpg" /> <right url="pano1.tiles/mobile_r.jpg" /> <back url="pano1.tiles/mobile_b.jpg" /> <up url="pano1.tiles/mobile_u.jpg" /> <down url="pano1.tiles/mobile_d.jpg" /> <mobile> <left url="pano1.tiles/mobile_l.jpg" /> <front url="pano1.tiles/mobile_f.jpg" /> <right url="pano1.tiles/mobile_r.jpg" /> <back url="pano1.tiles/mobile_b.jpg" /> <up url="pano1.tiles/mobile_u.jpg" /> <down url="pano1.tiles/mobile_d.jpg" /> </mobile> </image> </scene> <scene name="pano2" title="" onstart="" thumburl="pano2.tiles/thumb.jpg"> <view hlookat="-47" vlookat="13" fovtype="MFOV" fov="120" fovmin="100" fovmax="120" /> <preview url="pano2.tiles/preview.jpg" /> <image type="CUBE"> <left url="pano2.tiles/mobile_l.jpg" /> <front url="pano2.tiles/mobile_f.jpg" /> <right url="pano2.tiles/mobile_r.jpg" /> <back url="pano2.tiles/mobile_b.jpg" /> <up url="pano2.tiles/mobile_u.jpg" /> <down url="pano2.tiles/mobile_d.jpg" /> <mobile> <left url="pano2.tiles/mobile_l.jpg" /> <front url="pano2.tiles/mobile_f.jpg" /> <right url="pano2.tiles/mobile_r.jpg" /> <back url="pano2.tiles/mobile_b.jpg" /> <up url="pano2.tiles/mobile_u.jpg" /> <down url="pano2.tiles/mobile_d.jpg" /> </mobile> </image> </scene> <!-- actions --> <!-- thumbnail actions begin (remove the 'buildthumbs()' call in the onstart event to remove the thumbs) --> <action name="buildthumbs"> if(%1 != NEXT, set(i,0)); if(i LT scene.count, copy(thumb, scene[get(i)].thumburl); txtadd(thumbname,'thumb_',get(i)); addplugin(get(thumbname)); set(plugin[get(thumbname)].url, get(thumb)); set(plugin[get(thumbname)].keep, true); set(plugin[get(thumbname)].align, leftbottom); set(plugin[get(thumbname)].width, 40); set(plugin[get(thumbname)].height, 40); set(plugin[get(thumbname)].x, 10); set(plugin[get(thumbname)].y, 10); mul(plugin[get(thumbname)].x, i,3); mul(plugin[get(thumbname)].y, i,3); add(plugin[get(thumbname)].x, 5); add(plugin[get(thumbname)].y, 5); copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x); copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y); add(plugin[get(thumbname)].zorder, 100, i); set(plugin[get(thumbname)].effect,glow(0xFFFFFF,1.0,2,10000)); set(plugin[get(thumbname)].jsborder,'1px solid #FFFFFF'); copy(plugin[get(thumbname)].thumbpos, i); set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) ); set(plugin[get(thumbname)].onclick, openthumbs() ); inc(i); buildthumbs(NEXT); ); </action> <action name="openthumb"> if(%2 != NEXT, set(pos,0); copy(curpos, plugin[%1].thumbpos); set(xdst, 0); set(ydst, 0); ); if(pos LT curpos, inc(pos); inc(ydst,90); sub(ymax, stageheight, 100); if(ydst GT ymax, inc(xdst,90);set(ydst,0); ); openthumb(%1,NEXT); , add(xdst,10); add(ydst,10); tween(plugin[%1].x, get(xdst) ); tween(plugin[%1].y, get(ydst) ); tween(plugin[%1].width, 80); tween(plugin[%1].height, 80); ); </action> <action name="closethumb"> tween(plugin[%1].x, get(plugin[%1].xsmall)); tween(plugin[%1].y, get(plugin[%1].ysmall)); tween(plugin[%1].width, 40); tween(plugin[%1].height, 40); </action> <action name="openthumbs"> if(%1 != NEXT, set(i,0); set(events.onclick, set(events.onclick,null); delayedcall(0.1, closethumbs() ); ); ); if(i LT scene.count, txtadd(thumbname,'thumb_',get(i)); openthumb(get(thumbname)); set(plugin[get(thumbname)].onclick, set(events.onclick,null); closethumbs(); loadscene(get(linkedscene),null,MERGE|KEEPVIEW,BLEND(5)); ); inc(i); openthumbs(NEXT); ); </action> <action name="closethumbs"> if(%1 != NEXT, set(i,0)); if(i LT scene.count, txtadd(thumbname,'thumb_',get(i)); closethumb(get(thumbname)); set(plugin[get(thumbname)].onclick, openthumbs() ); inc(i); closethumbs(NEXT); ); </action> <!-- thumbnail actions end --> </krpano>
-
I've found onle BLEND, but don't work.
Can you tell me the right command, please?
-
I have two simple view and if is possible I would like to make fade in effect when I switch from one to another.
How can I do? -
Thank you very much
-
Is possibile to use krpanoJS in offline mode with license?
-
I try with the 1.0.8.12...I just upgrade the version and now work!! Thank you -
Hi Klaus,
thanks for the explanation.
best regards
Alberto -
I would like to use krpano with an iPad app, and I don't understand what license do I need.
Is this enought?ZitatkrpanoJS iPhone / iPad / iPod Touch Add-On License
If I take the license now, is fine for the later version?
Thanks in advance -
I forgot ... I'm doing native app
-
If I try in Safari work very well, but if try in simulator don't work...
This is my xml...
Code
Alles anzeigen<krpano version="1.0.8" onstart="startup();"> <action name="startup"> <!-- load the first scene --> loadscene(get(scene[0].name), null, MERGE); buildthumbs(); </action> <progress showload="none" showwait="none" /> <scene name="scene_pano1" title="pano1" onstart="" thumburl="pano2.tiles/thumb.jpg"> <view hlookat="-130" vlookat="-30" fovtype="MFOV" fov="110" fovmin="40" fovmax="130" /> <preview url="pano1.tiles/preview.jpg" /> <image> <left url="pano2.tiles/mobile_l.jpg" /> <front url="pano2.tiles/mobile_f.jpg" /> <right url="pano2.tiles/mobile_r.jpg" /> <back url="pano2.tiles/mobile_b.jpg" /> <up url="pano2.tiles/mobile_u.jpg" /> <down url="pano2.tiles/mobile_d.jpg" /> <mobile> <left url="pano2.tiles/mobile_l.jpg" /> <front url="pano2.tiles/mobile_f.jpg" /> <right url="pano2.tiles/mobile_r.jpg" /> <back url="pano2.tiles/mobile_b.jpg" /> <up url="pano2.tiles/mobile_u.jpg" /> <down url="pano2.tiles/mobile_d.jpg" /> </mobile> <tablet> <left url="pano2.tiles/mobile_l.jpg" /> <front url="pano2.tiles/mobile_f.jpg" /> <right url="pano2.tiles/mobile_r.jpg" /> <back url="pano2.tiles/mobile_b.jpg" /> <up url="pano2.tiles/mobile_u.jpg" /> <down url="pano2.tiles/mobile_d.jpg" /> </tablet> </image> <hotspot name="spot1" style="hotspot_ani_black" ath="-145" atv="-42" zoom="false" onclick="looktohotspot(get(name)); loadscene('scene_pano2',null,MERGE,BLEND(1));" /> --> </scene> <scene name="scene_pano2" title="pano2" onstart="" thumburl="pano1.tiles/thumb.jpg"> <view hlookat="+0" vlookat="+20" fovtype="MFOV" fov="110" fovmin="40" fovmax="130" /> <image> <left url="pano1.tiles/mobile_l.jpg" /> <front url="pano1.tiles/mobile_f.jpg" /> <right url="pano1.tiles/mobile_r.jpg" /> <back url="pano1.tiles/mobile_b.jpg" /> <up url="pano1.tiles/mobile_u.jpg" /> <down url="pano1.tiles/mobile_d.jpg" /> <mobile> <left url="pano1.tiles/mobile_l.jpg" /> <front url="pano1.tiles/mobile_f.jpg" /> <right url="pano1.tiles/mobile_r.jpg" /> <back url="pano1.tiles/mobile_b.jpg" /> <up url="pano1.tiles/mobile_u.jpg" /> <down url="pano1.tiles/mobile_d.jpg" /> </mobile> <tablet> <left url="pano1.tiles/mobile_l.jpg" /> <front url="pano1.tiles/mobile_f.jpg" /> <right url="pano1.tiles/mobile_r.jpg" /> <back url="pano1.tiles/mobile_b.jpg" /> <up url="pano1.tiles/mobile_u.jpg" /> <down url="pano1.tiles/mobile_d.jpg" /> </tablet> </image> <hotspot name="spot1" style="hotspot_ani_black" ath="+40" atv="+33" zoom="false" onclick="looktohotspot(get(name)); loadscene('scene_pano1',null,MERGE,BLEND(1));" /> --> </scene> <action name="buildthumbs"> if(%1 != NEXT, set(i,0)); if(i LT scene.count, copy(thumb, scene[get(i)].thumburl); txtadd(thumbname,'thumb_',get(i)); addplugin(get(thumbname)); set(plugin[get(thumbname)].url, get(thumb)); set(plugin[get(thumbname)].keep, true); set(plugin[get(thumbname)].align, leftbottom); set(plugin[get(thumbname)].width, 40); set(plugin[get(thumbname)].height, 40); set(plugin[get(thumbname)].x, 10); set(plugin[get(thumbname)].y, 10); mul(plugin[get(thumbname)].x, i,3); mul(plugin[get(thumbname)].y, i,3); add(plugin[get(thumbname)].x, 5); add(plugin[get(thumbname)].y, 5); copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x); copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y); add(plugin[get(thumbname)].zorder, 100, i); set(plugin[get(thumbname)].effect,glow(0xFFFFFF,1.0,2,10000)); set(plugin[get(thumbname)].jsborder,'1px solid #FFFFFF'); copy(plugin[get(thumbname)].thumbpos, i); set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) ); set(plugin[get(thumbname)].onclick, openthumbs() ); inc(i); buildthumbs(NEXT); ); </action> <action name="openthumb"> if(%2 != NEXT, set(pos,0); copy(curpos, plugin[%1].thumbpos); set(xdst, 0); set(ydst, 0); ); if(pos LT curpos, inc(pos); inc(ydst,90); sub(ymax, stageheight, 100); if(ydst GT ymax, inc(xdst,90);set(ydst,0); ); openthumb(%1,NEXT); , add(xdst,10); add(ydst,10); tween(plugin[%1].x, get(xdst) ); tween(plugin[%1].y, get(ydst) ); tween(plugin[%1].width, 80); tween(plugin[%1].height, 80); ); </action> <action name="closethumb"> tween(plugin[%1].x, get(plugin[%1].xsmall)); tween(plugin[%1].y, get(plugin[%1].ysmall)); tween(plugin[%1].width, 40); tween(plugin[%1].height, 40); </action> <action name="openthumbs"> if(%1 != NEXT, set(i,0); set(events.onclick, set(events.onclick,null); delayedcall(0.1, closethumbs() ); ); ); if(i LT scene.count, txtadd(thumbname,'thumb_',get(i)); openthumb(get(thumbname)); set(plugin[get(thumbname)].onclick, set(events.onclick,null); closethumbs(); loadscene(get(linkedscene),null,MERGE|KEEPVIEW,BLEND(1)); ); inc(i); openthumbs(NEXT); ); </action> <action name="closethumbs"> if(%1 != NEXT, set(i,0)); if(i LT scene.count, txtadd(thumbname,'thumb_',get(i)); closethumb(get(thumbname)); set(plugin[get(thumbname)].onclick, openthumbs() ); inc(i); closethumbs(NEXT); ); </action> </krpano>
-
I would like to use the Thumbnails
-
Yes, I would like to dynamically switch the settings of the current view to the other one.
How can I do it? -
no one knows how it works?