Hi,
Is it possible to create info hotspot dynamically?
How to take tx, ty, and tz values dynamically in everpano??
can you guide me on how to take tx,ty,tz values dynamically using javascript?
Hi,
Is it possible to create info hotspot dynamically?
How to take tx, ty, and tz values dynamically in everpano??
can you guide me on how to take tx,ty,tz values dynamically using javascript?
var hs = krpano.get("hotspot[myhotspot]");
console.log(hs.tx, hs.ty, hs.tz);
hs.tx = 500; # etc...
or
var tx = krpano.get("hotspot[myhotspot].tx");
krpano.set("hotspot[myhotspot].ty", 750);
documentation :
https://krpano.com/docu/js/#top
https://krpano.com/docu/plugininterface/#krpanointerface
(and below)
hi
var hs = krpano.get("hotspot[myhotspot]");
console.log(hs.tx, hs.ty, hs.tz);
hs.tx = 500; # etc...
or
var tx = krpano.get("hotspot[myhotspot].tx");
krpano.set("hotspot[myhotspot].ty", 750);
I've tried the above solution, but in my scenario, I want tx, ty, and tz values dynamically whenever I click on the scene.
Can you please help me with this..
I've tried the above solution, but in my scenario, I want tx, ty, and tz values dynamically whenever I click on the scene.
you probably want hit testing... tx/ty/tz when you click in a depthmap / 3d model...
this is not possible yet... unless in everpano, which implemented something own for this.
(I don't know if this is user-accessible, you'd have to ask everpano support)
Don’t have an account yet? Register yourself now and be a part of our community!