I need to combine this movement with the radar to show my current location. I would like your suggestions. Thank you very much!
Posts by Eze
-
-
Hello everyone, I have spent a lot of time optimizing this case of the same screen, and it is very good now. If you can use this function, I can help you deploy one https://deyou360.com/voice/index.html
-
Hello, Klaus I found 1.21 cull="twosided" Not working, if you need a test case, you can leave a message
-
just made one recently
-
I added the model to the normal panorama, but I haven't tried it in the depth scene. Next, I will try to load the model in the project with the depth map.
-
<action autorun="preinit" type="Javascript">
<![CDATA[
krpano.navPlugPan=[
[[1, 'scene_1'], [2, 87], [1962.728, 160.683, 440.273]],
[[2, 'scene_2'], [1, 3, 4], [1962.728, 160.688, 740.269]],
[[3, 'scene_3'], [2, 4], [1962.728, 160.688, 1041.974]],
];
]]>
</action>You can use it like this scene_1 is your scene name, [2, 87] is the scene you want to go to, that is, their connection, the last one [1962.728, 160.683, 440.273] is the current location of the scene
-
[.WebGL-000012B000398E00] GL_INVALID_OPERATION: Insufficient buffer size. Has anyone solved this problem
-
Your console does not report [.WebGL-000012B000398E00] GL_INVALID_OPERATION: Insufficient buffer size.?
-
You can directly export this model to use
-
hi Hello Here is my code, which can not get inside onloadcomplete value changes, seek your help! thank you very much
-
hi Hello everyone! I'm using a javascrtip production, press and hold to drag hotspot hotspot on the screen, which in javascript encountered a problem! Code stickers, and friends around the world to help me see it? Here Thank you very much!
function show_addkrpano(){
krpano.call("addhotspot(hotspot_line);");
krpano.set("hotspot[hotspot_line].url",'./comm_line.png');
krpano.set("hotspot[hotspot_line].ath",krpano.get("view.hlookat"));
krpano.set("hotspot[hotspot_line].atv",krpano.get("view.vlookat"));
krpano.set("hotspot[hotspot_line].zoom",false);
krpano.set("hotspot[hotspot_line].ondown",draghotspot);
}function draghotspot(){
var get_obj = krpano.get("hotspot[hotspot_line]");
while(?????????????){
var dx = krpano.get("mouse.stagex");
var dy = krpano.get("mouse.stagey");
var screarr = krpano.screentosphere(dx, dy);
krpano.set("hotspot[hotspot_line].ath",screarr.x);
krpano.set("hotspot[hotspot_line].atv",screarr.y);
}
} -
function getlookat()
{
var krpano = document.getElementById("krpanoSWFObject");
if (krpano && krpano.get) // it can take some time until krpano is loaded and ready
{
krpano.call("screentosphere(mouse.x, mouse.y, mouseath, mouseatv); js( showmouseinfo() );");
}
}
function showmouseinfo()
{
var krpano = document.getElementById("krpanoSWFObject");
var mouse_at_x = krpano.get("mouse.x");
var mouse_at_y = krpano.get("mouse.y");
var mouse_at_h = krpano.get("mouseath");
var mouse_at_v = krpano.get("mouseatv");
document.getElementById("mouse_x").innerHTML = mouse_at_x + "px";
document.getElementById("mouse_y").innerHTML = mouse_at_y + "px";
document.getElementById("mouse_ath").innerHTML = mouse_at_h.toFixed(2) + "°";
document.getElementById("mouse_atv").innerHTML = mouse_at_v.toFixed(2) + "°";
}
// update mouse info 30 times per second
var lookat_interval = setInterval('getlookat()', 1000.0 / 30.0);
// disable text selection to avoid cursor flickering
window.onload = function()
{
document.onselectstart = function() {return false;} // ie
document.onmousedown = function() {return false;} // mozilla
} -
thank you very much! Klaus.
I come inside javascript drag hotspot can be achieved? I wrote a function that should work together, mouse clicks, he would go in the middle of the screen? Help it look? thank you very much!
function show_addkrpano(){
krpano.call("addhotspot(hotspot_line);");
krpano.set("hotspot[hotspot_line].url",'./comm_line.png');
krpano.set("hotspot[hotspot_line].ath",krpano.get("view.hlookat"));
krpano.set("hotspot[hotspot_line].atv",krpano.get("view.vlookat"));
krpano.set("hotspot[hotspot_line].zoom",false);
krpano.set("hotspot[hotspot_line].ondown",draghotspot);
}function draghotspot(){
var wu = krpano.get("hotspot[hotspot_line].pressed");
var mouse_at_x = krpano.get("mouse.stagex");
var mouse_at_y = krpano.get("mouse.stagey");
var mouse_at_h = krpano.get("view.hlookat");
var mouse_at_v = krpano.get("view.vlookat");
var drag = krpano.spheretoscreen(mouse_at_h,mouse_at_v);
var drag_x = mouse_at_x - drag.x;
var drag_y = mouse_at_y - drag.y;
var dx = mouse_at_x - drag_x;
var dy = mouse_at_y - drag_y;
var screarr = krpano.screentosphere(dx, dy);
//console.log(screarr);
console.log(mouse_at_h);
console.log(mouse_at_v);
var screarr_x = screarr.x;
var screarr_y = screarr.y;
krpano.set("hotspot[hotspot_line].ath",screarr_x);
krpano.set("hotspot[hotspot_line].atv",screarr_y);
} -
Hello everyone, javascript inside krpano.call action can not be written less than a call to action function, it is that so?
Attach source, I hope you can answer, thank you very much!function show_addkrpano(){
krpano.call(
"addhotspot(hotspot_line);"+
"set(hotspot[hotspot_line].url,'./comm_line.png');"+
"set(hotspot[hotspot_line].ath,get(view.hlookat));"+
"set(hotspot[hotspot_line].atv,get(view.vlookat));"+
"set(hotspot[hotspot_line].zoom,false);"+
"set(hotspot[hotspot_line].ondown,draghotspot());"+"<action name='draghotspot'> spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l');sub(drag_adjustx, mouse.stagex, hotspotcenterx);sub(drag_adjusty, mouse.stagey, hotspotcentery);if(%1 != null,asyncloop(plugin[%1].pressed,sub(dx, mouse.stagex, drag_adjustx);sub(dy, mouse.stagey, drag_adjusty);screentosphere(dx, dy, ath, atv););,asyncloop(pressed,sub(dx, mouse.stagex, drag_adjustx);sub(dy, mouse.stagey, drag_adjusty);screentosphere(dx, dy, ath, atv);););</action>")
}