I know how to set the beginviewpoint. But i don't know how i code the xml so that the panorama goes directly after loading to a specific view for example i want it to zoom out a bit and look up.
How do i do that?
I know how to set the beginviewpoint. But i don't know how i code the xml so that the panorama goes directly after loading to a specific view for example i want it to zoom out a bit and look up.
How do i do that?
Thanks but where do i put this code:
lookto(33,-22,30,smooth(100,50,20));
??
https://krpano.com/docu/xml/#scene.onstart
or anywhere else that makes sense for you.
he he klok en klepel (that's dutch)
the scene is the picture.. leave it as it should be.
you can do in the scene onstart'"lookto(33,-22,30,smooth(100,50,20));"
or onloaded...
but also global.
Tuur
so like:
<scene name="bigship_bridge" title="brideg" onstart="lookto(33,-22,30,smooth(100,50,20));" thumburl="panos/1_stube.tiles/thumb.jpg">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />
<preview url="blabla" />
<image>
<cube url="blabla" />
<mobile>
<cube url="blabla" />
</mobile>
<tablet>
<cube url="blabla" />
</tablet>
</image>
</scene>
Alles anzeigen
or so..
you can also write a seperate action.. like:
and then in the scene onstart="zoommove();"
hope it helps
Tuur
i di a quick test
onstart works.
onloaded. not.. (?)
i did onstart="wait(load);lookto(33,-22,30,smooth(100,50,20));"
but you can also make an event. or action.
Tuur
I don't get it,
I got this:
<krpano version="1.0.8.14">
<include url="skin/defaultskin.xml" />
<include url="plugins/gyro.xml" />
<include url="plugins/nadir.xml" />
<autorotate enabled="true"
waittime="1.5"
speed="3.0"
/>
<scene name="redapple01" onstart="lookto(33,-22,30,smooth(100,50,20))">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoo"1.0" fovmax="120" limitview="auto" />
<preview url="redapple01.tiles/preview.jpg" />
<image>
<cube url="redapple01.tiles/pano_%s.jpg" />
<mobile>
<cube url="redapple01.tiles/mobile_%s.jpg" />
</mobile>
<tablet>
<cube url="redapple01.tiles/tablet_%s.jpg" />
</tablet>
</image>
</scene>
</krpano>
Alles anzeigen
I never got a scene code in my start xml so i don't have a beginning :(
maxpixelzoo"1.0"
should be:
maxpixelzoom="1.0"
That's not it, i got an xml parser error #1090???
<krpano version="1.0.8.14" onstart="startup();">
<action name="startup">
<!-- load the first scene -->
loadscene(get(scene[0].name), null, MERGE);
<!-- build thumbnails when there is more than one scene (remove the line below to remove the thumbnails)
if(scene.count GT 1, buildthumbs(); );
-->
</action>
Alles anzeigen
also
parser erroro means most of the time typo like in the maxpixelzoo
Tuur
As i told you somewhere up here..
Tuur
It wasn't the m but it were the extra tabs in front of the lines.
i mean it also was the typo from maxpixzoom but after that correction it still didn't work
I deleted al the extra tabs in front of the lines and it worked.
Never mind thanks for your help.
That's strange. Must have been a character somewhere .. Maybe a dot.
Tuur
Certain editors seem to place a - at the start of some lines. It doesn't always happen but when it does, they must all be removed. I think it happens when an XML file is copied from an Internet site to the editor.
Just a guess?!!??
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!