Hi Mudin,
I am using angular route and I got the same problem.
When you load your controller try to call refresh XML by using loadpano.
Hi Mudin,
I am using angular route and I got the same problem.
When you load your controller try to call refresh XML by using loadpano.
Hi Klaus,
Is also VR mode disabled in safari (IOS 9.2) ? I am asking this question because I have same situation and I can not call webvr.toggleVR(). There is no log/error displayed.
I found some thing :D
When I call "add_all_the_time_tooltip" function, hotspot's renderer become 'css3d'. In "webvr_onentervr" function, I replace them to webgl and YEP!!! I can see my hotspots in VR mode. Awsome!
But, when I exit from VR mode, there are no more hotspot titles. Then, In "webvr_onexitvr" , I switched these hotspot's renderer values to "css3d" but didn't work. I uses trace function to check all plugin attributes but they all same.
Is there any way to reload plugins? OR that to do now? I think I am so close/
Without VR mode, fullscreen is working well but when enter on it, makes me crazy.
IDK what to do but in WR mode, my html,body css values make that problem.
Hi,
I found add_all_the_time_tooltip sample in krpano-form but it is not working on VR mode. I know webGL is not rendering texts. When I enter VR mode, hotspots are getting invisible. I want to show hotspots without texts in VR mode. IDK what to do actually. Can you guys give me some recommendation?
<action name="add_all_the_time_tooltip">
if(scene[get(linkedscene)].title !== undefined ,
txtadd(tooltipname, 'tooltip_', get(name));
addplugin(get(tooltipname));
txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
set(plugin[get(tooltipname)].url,'/modobay_vr/templates/xml/plugins/textfield.swf');
set(plugin[get(tooltipname)].align,top);
set(plugin[get(tooltipname)].edge,top);
set(plugin[get(tooltipname)].x,0);
set(plugin[get(tooltipname)].y,-35);
set(plugin[get(tooltipname)].autoheight,true);
set(plugin[get(tooltipname)].background,false);
set(plugin[get(tooltipname)].border,false);
set(plugin[get(tooltipname)].css,'text-align:center;color: #ffffff; font-family: Roboto, sans-serif;font-size:14px;background-color:rgba(0,0,0,0.3);border-radius:5px;padding: 4px 6px;');
copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);
set(plugin[get(tooltipname)].enabled,false);
);
</action>
Display More
Hi, thank you for your reply.
I didn't use distorted hotspot. I am just adding new hotspot and loading its animated style. I found all these code in krpano examples. Basically my code is like that.
krObject.call("addhotspot(hotspot);");
krObject.call("hotspot[hotspot].loadstyle(animated_hotspot);");
krObject.set("hotspot[hotspot].ath", item.posX);
krObject.set("hotspot[hotspot].atv", item.posY);
Animated_hotspot style has onload-animation code:
<style name="animated_hotspot" url="up.png" ath="0" atv="0" scale="0.5" webvr="true" onloaded="do_crop_animation(128, 128, 30);add_all_the_time_tooltip();" />
<action name="do_crop_animation">
registerattribute(xframes, calc((imagewidth / %1) BOR 0));
registerattribute(yframes, calc((imageheight / %2) BOR 0));
registerattribute(frames, calc(xframes * yframes));
registerattribute(frame, 0);
set(crop, '0|0|%1|%2');
setinterval(calc('crop_anim_' + name), calc(1.0 / %3),
if(loaded,
inc(frame);
if(frame GE frames, if(onlastframe !== null, onlastframe() ); set(frame,0); );
mod(xpos, frame, xframes);
div(ypos, frame, xframes);
Math.floor(ypos);
mul(xpos, %1);
mul(ypos, %2);
calc(crop, xpos + '|' + ypos + '|%1|%2');
,
clearinterval(calc('crop_anim_' + name));
);
);
</action>
Display More
I am using krpano 1.19-pr5 and without VR mode, I can make it fullscreen. When I enter VR mode I can not make it full screen.
In IOS 9, When we enter VR mode, basically kr-object is getting full screen by css right? like (position : fixed or absolute, top-left : 0, width-height:100%) If the answer is yes, I tried to hide all kr-pano div elements including target-div by css(display:none) but I couldn't make it. If the Krpano in Vr mode, safari can not be fullscreen.
Is there any reason do you know?
I can't use it with animation action script. If I use it without animation works well but with animation, not working.
Animation A. script :
<action name="do_crop_animation">
registerattribute(xframes, calc((imagewidth / %1) BOR 0));
registerattribute(yframes, calc((imageheight / %2) BOR 0));
registerattribute(frames, calc(xframes * yframes));
registerattribute(frame, 0);
set(crop, '0|0|%1|%2');
setinterval(calc('crop_anim_' + name), calc(1.0 / %3),
if(loaded,
inc(frame);
if(frame GE frames, if(onlastframe !== null, onlastframe() ); set(frame,0); );
mod(xpos, frame, xframes);
div(ypos, frame, xframes);
Math.floor(ypos);
mul(xpos, %1);
mul(ypos, %2);
calc(crop, xpos + '|' + ypos + '|%1|%2');
,
clearinterval(calc('crop_anim_' + name));
);
);
</action>
Display More
Where should I focus on for fixing this issue?
So the best way is using plugin right?
Hi, When I try to enter VR mode, I am getting this error.
"Uncaught TypeError: Cannot use 'in' operator to search for 'getRecommendedEyeRenderRect' in null"
I couldn't find any solution for that.
EDIT :
There were a few three.js javascript libraries.
Hi,
I have krpano licence and I am having issue wirk watermarks. I am generating "tiles" folder with krpanotools64.exe.
Basically i am executing this code in IIS.
Pretty much easy. But in tiles folder still I have watermarks. BUT if I drop my image file on "MAKE VTOUR (NORMAL) droplet.bat" everything is good. I thing I am missing something.
Also, I run this codes in cmd.exe
I saw a lot of topics and I read but there wasn't any answer for my case. I saw also problem can be some cache problem but it is not. Can not be that.
How can we call angular with js? I have sample but it isn't working.
I am getting this error;
"ERROR: jscall() - calling Javascript "angular.element('#content').scope().vm.vrService.refreshVrXml()" failed: ReferenceError: angular is not defined"
EDIT :
I found my answer
I need that also. when I click hotspot, I want to trigger a js event. If you find any solution, can you share?
Hi,
I am able to add hotspot and I can set url,ath,atv etc. attributes. But I can not set style attribute.
pano.call("addhotspot(" + item.id + ");");pano.call("set(hotspot[" + item.id + "].ath,0);");pano.call("set(hotspot[" + item.id + "].atv,0);");pano.call("set(hotspot[" + item.id + "].url,url);");
this code above is working perfect. But I dont want to set these in js.
<style name="mesh1" url="arrow.jpg" ath="0" atv="0" scale="1" ondown="draghotspot();" />
pano.call("addhotspot(" + item.id + ");");pano.call("set(hotspot[" + item.id + "].style,mesh1);");
EDIT :
I found my answer. I have to load style instead of setting style.
Hi,
I would like to take screenshot without plugin.
I tried to use "toDataURL("image/jpeg")" this javascript code but didn't work. I think I am missing some point.