You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, December 10th 2022, 12:41pm

How to get the values of tx, ty and tz dynamically?

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? *whistling*

2

Saturday, December 10th 2022, 12:45pm

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)

This post has been edited 1 times, last edit by "indexofrefraction" (Dec 11th 2022, 7:53am)


3

Saturday, December 10th 2022, 1:43pm

How to get tx, ty, tz while clicking on the scene in everpano ?

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.. *squint*

4

Saturday, December 10th 2022, 8:08pm

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)

This post has been edited 1 times, last edit by "indexofrefraction" (Dec 11th 2022, 8:08am)