Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comThis post has been edited 1 times, last edit by "Tuur" (Dec 25th 2021, 1:28pm)
This post has been edited 2 times, last edit by "indexofrefraction" (Dec 25th 2021, 10:39am)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
<action name="showpano_1" type="Javascript"><![CDATA[
var l = krpano.get("layer[test_3]");
l.krpano.image.reset();
l.krpano.image.sphere = {url:'idol.jpg'};
l.krpano.image.depthmap = {url:'idol.obj'};
l.krpano.image.depthmap.rendermode = '3dmodel';
l.krpano.view.oz = 1000;
l.krpano.actions.loadpanoimage();
]]>
</action>
|
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Source code |
1 2 3 |
delayedcall(0.1,
layer[newkrpanolayer].krpano.actions.tween("view.camroll", -360,2,easeoubounce);
);
|
: https://pame.virtualtuur.comLocation: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comNo, it does not work, it seems the reason is different.@san7
Perhaps take the brackets after loadpanoimage away?
|
|
Source code |
1 2 3 |
<layer name="t_iframe" type="krpano" keep="true" align="center" bgalpha="0.3" bgcolor="0x007700" bgshadow="0 0 20 0 1.0"
width="500" height="500" onloaded="krpano.actions.loadpano('test.xml');"
/>
|
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
l.onloaded = function()
{
if (panotype == "xml")
{
l.krpano.actions.loadpano(url);
}
else
{
l.krpano.image.reset();
l.krpano.image[panotype] = {url:url};
l.krpano.actions.loadpanoimage();
l.krpano.actions.lookat(18,10,40);
//l.krpano.actions.lookto(100,10,40);
}
}
|
: https://pame.virtualtuur.com