Awesome update
Posts by Yanward
-
-
-
Hi Guys,
does anyone experience this kind of lens flare and how to avoid it?

-
-
-
Yup, I understand.
the option I can think of is more on javascript:
create 2 pano viewer, one is overlapping the other, you can create a javascript control to manage the opacity of the first viewer to show the other pano by decreasing the opacity the way you want to do.
but this might slightly increase the CPU Usage or the Memory/RAM Usage.
-
I would like to give the possibility to the user to change the "view" daily or nightly during the pano
and even having the possibility to change the opacity to different value from 1 to 0 to have a sort of animation if the user doesn't click on anything.you can do it with this reference: loadpano.blend and events.onidle
That way, I will avoid to have a video who will be really heavier to load and only 2 pictures to load.
What do you think? Is it do-able to pan 2 pictures at the same time and play with the opacity between them?
How can I do?here's an example:
-
i think there's an error on translation
what meant is to create global <hotspot>, it can still use style.
here's a working example:
<action name="scene01_load">
set(hotspot[scene01_spot1].visible,true);
set(hotspot[scene01_spot2].visible,true);
</action>
<action name="otherscene_load">
set(hotspot[scene01_spot1].visible,false);
set(hotspot[scene01_spot2].visible,false);
</action>
<hotspot name="scene01_spot1" style="skin_hotspotstyle" keep="true" visible="false" ath="2.148" atv="18.182" linkedscene_lookat="2.1, 2, 120" linkedscene="scene_02" />
<hotspot name="scene01_spot2" style="skin_hotspotstyle" keep="true" visible="false" ath="-68.221" atv="23.911" linkedscene_lookat="0, 4, 120" linkedscene="scene_02" /><scene name="scene_01" title="01" onstart="scene01_load();" thumburl="panos/01.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="120" limitview="auto" />
<preview url="panos/01.tiles/preview.jpg" />
<image>
<cube url="panos/01.tiles/pano_%s.jpg" />
<cube url="panos/01.tiles/mobile/pano_%s.jpg" devices="mobile" />
</image>
</scene><scene name="scene_02" title="02" onstart="otherscene_load();" thumburl="panos/02.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="120" limitview="auto" />
<preview url="panos/02.tiles/preview.jpg" />
<image>
<cube url="panos/02.tiles/pano_%s.jpg" />
<cube url="panos/02.tiles/mobile/pano_%s.jpg" devices="mobile" />
</image>
</scene> -
indexofrefraction is right, hotspot on the other scene can't be changed without loading it scene.
other option is, make a global hotspot and only show it when the secific scene is loaded, so it can still be modified even if the specific scene is not yet loaded
-
i didn't quite understand, but here's what i'm getting: you need a certain action that will play when a scene is loaded?
Example 1:
<scene name="scene_01" title="01" onstart="updatesomethingfrominside();" thumburl="panos/01.tiles/thumb.jpg" lat="" lng="" heading="">
<action name="updatesomethingfrominside">
set(hotspot[spot1].ath,100);
</action><view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/01.tiles/preview.jpg" />
<image>
<cube url="panos/01.tiles/pano_%s.jpg" /><cube url="panos/01.tiles/mobile/pano_%s.jpg" devices="mobile" />
</image><!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="10.168" atv="7.534" linkedscene="scene_02" /></scene>
Example 2:
<scene name="scene_01" title="01" onstart="updatesomethingfrominside();" thumburl="panos/01.tiles/thumb.jpg" lat="" lng="" heading="">
<action name="updatesomethingfrominside">
set(hotspot[spot1].ath,100);
</action><view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/01.tiles/preview.jpg" />
<image>
<cube url="panos/01.tiles/pano_%s.jpg" /><cube url="panos/01.tiles/mobile/pano_%s.jpg" devices="mobile" />
</image><!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="10.168" atv="7.534" linkedscene="scene_02" /></scene>
<action name="updatesomethingfromoutside">
set(hotspot[spot1].ath,100);
</action><scene name="scene_01" title="01" onstart="updatesomethingfromoutside();" thumburl="panos/01.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/01.tiles/preview.jpg" />
<image>
<cube url="panos/01.tiles/pano_%s.jpg" /><cube url="panos/01.tiles/mobile/pano_%s.jpg" devices="mobile" />
</image><!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="10.168" atv="7.534" linkedscene="scene_02" /></scene>
-
if((scene["name"].name == "name") AND (hotspot["name"].name == "name"),
<!-- do something here when true -->
,
<!-- do something here when false -->
);
reference: https://krpano.com/docu/actions/#if
-
Hi,
I suggest is to create the <architectural type="residential" status="active" price="240,000" sf="1400" bedrooms="2" bathrooms="2.5"/> outside the scene, and link the <scene> and the <architectural> by adding additional attribute on <architectural>
for example
<architectural name="name" type="residential" status="active" price="240,000" sf="1400" bedrooms="2" bathrooms="2.5"/><scene name="name" title="title" active="true" thumburl="panos/blahblah/thumb.jpg" datahere="blahblah">
<view hlookat="190" vlookat="-20" fovtype="MFOV" fov="90" maxpixelzoom="1.5" fovmin="80" fovmax="100" limitview="auto"/>
<preview url="panos/blahblah.tiles/preview.jpg"/>
<image>
<cube url="panos/blahblah/pano_%s.jpg"/>
<cube url="panos/blahblah/mobile/pano_%s.jpg" devices="mobile"/>
</image>
</scene>so you can this:
trace(architectural[get(xml.scene)].price);
or
trace(architectural["name"].price); -
Hi,
create action to change the hotspot enabled and visible to true or false<action name="action1">
set(hotpost[hotspotname].visible,true);
set(hotpost[hotspotname].enabled,true);
</action><action name="action2">
set(hotpost[hotspotname].visible,false);
set(hotpost[hotspotname].enabled,false);
</action>to call those action when device is enter on VR Mode, go to vtourskin.xml find WebVR plugin, on that plugin, find onentervr and onexitvr and add the action you created earlier,
onentervr="skin_showloading(false); webvr_onentervr(); webvr_setup(); skin_reloadscene_webvr(); action1();"
onexitvr="webvr_onexitvr(); webvr_setup(); skin_reloadscene_webvr(); action2();" -
set(hotspot[hotspotname].visible,true);
set(hotspot[hotspotname].enabled,true); -
Hi All,
i'm having a problem regarding on onclick on dynamically created hotspot:
<datavtourbuilding name="bldg1" country="country1" city="city1" />
<datavtourbuilding name="bldg2" country="country1" city="city1" />
<datavtourbuilding name="bldg3" country="country1" city="city1" />
<datavtourbuilding name="bldg4" country="country1" city="city1" />
<datavtourbuilding name="bldg5" country="country1" city="city1" />for(set(bldg,0), bldg LT datavtourbuilding.count, inc(bldg),
txtadd(bldgname,'bldg_',get(bldg));
txtadd(bldgurl,'/office/',get(datavtourbuilding[get(bldg)].country),'/',get(datavtourbuilding[get(bldg)].city),'/',get(datavtourbuilding[get(bldg)].name),'/',get(datavtourbuilding[get(bldg)].name),'.jpg');
txtadd(bldgtour,'/office/',get(datavtourbuilding[get(bldg)].country),'/',get(datavtourbuilding[get(bldg)].city),'/',get(datavtourbuilding[get(bldg)].name),'/index.html');
addhotspot(get(bldgname));
set(hotspot[get(bldgname)].style,VR_Menu_Style);
set(hotspot[get(bldgname)].keep,'true');
set(hotspot[get(bldgname)].url,get(bldgurl));
set(hotspot[get(bldgname)].rx,0);
set(hotspot[get(bldgname)].ath,get(asd1));
set(hotspot[get(bldgname)].atv,0);
set(hotspot[get(bldgname)].depth,1500);
set(hotspot[get(bldgname)].scale,1);
set(hotspot[get(bldgname)].distorted,'true');
set(hotspot[get(bldgname)].alpha,1);
set(hotspot[get(bldgname)].zorder,2);
set(hotspot[get(bldgname)].onover,tween(scale|hotspot[VR_Hover].alpha|hotspot[VR_Hover].scale|hotspot[VR_Text].alpha,1.1|1|1.1|1);set(hotspot[VR_Hover].ath,get(ath));set(hotspot[VR_Text].ath,get(ath)););
set(hotspot[get(bldgname)].onout,tween(scale|hotspot[VR_Hover].alpha|hotspot[VR_Text].alpha,1|0|0);tween(hotspot[VR_Hover].scale,1,0.01););
set(hotspot[get(bldgname)].onclick,openurl(get(bldgtour),_self););
set(asd1,calc(asd1+30));
);all hotspot should have different name, url and onclick, but onclick ended having the same string in all hotspot.
thanks
-
Run krpano Tools.exe, there will be a built-in utility for updating
https://krpano.com/tools/kupdate/#topthanks, i'll check that out.
-
Hi All, i would like to ask for a helping hand, i'd been making a lot of virtual tour, i found i need to update the version to fix some bugs, all the virtual tour is made using krpano tool 1.9-pr5, is there a proper way to update the version without recreating everything?
thanks in advance.