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

Wednesday, November 9th 2011, 5:45pm

How to use the trace function?

Hi

I'm in need of some guidance as I can't seem to get my head round this.

My aim is;

To link the hlookat value of each panorama to ensure that each new panorama opens in the same view direction as the previous.

I'm trying to ensure that when a viewer leave my first panorama and opens my second panorama the new view would be synchronized to the first.

Studying various posts within the forum would I be correct that the best way to achieve this is using the trace function?

Could anyone please point me in the right direction where I could find some more info on the subject, that would help me compile the correct code.

Many thanks

Graham

Posts: 1,852

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Wednesday, November 9th 2011, 7:05pm

trace function is only for writing to the debug log for checking the value of elements or variables.
Admittedly, trace is one of the most important functions in krpano.

To keep the view you use keepview.
loadscene(scenename,null,MERGE|KEEPVIEW);
or something to this effect.
search the forum for keepview if this doesn't work.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Wednesday, November 9th 2011, 8:04pm

Many many thanks Sachagriffin.

Regards

Graham