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

Thursday, February 15th 2018, 3:32pm

Control Camera lookat

How can i get the value of the hlookat and/or vlookat when leaving a scene in which way when i start the new pano(next pano) i would be facing the same direction.
i.e : if i am looking to the east and the hotspot is at north when i click the hotspot (which is this case is to my left) when i enter the new scene i want the camera to keep looking to the east, and it need to be dynamic in some way where the lookat would change on startscene accordingly to last direction on the previous scene.

here is the reference . https://www.google.co.uk/maps/@51.518894…12!8i6656?hl=en

2

Thursday, March 1st 2018, 2:01am

The default behavior is what you need. The bat files used to create your tour automatically added the hlookat="0" and vlookat="0" to your "view" elements, which reset the view with every scene change. Erase those and you’re good to go!

3

Sunday, March 4th 2018, 2:40pm

thanks alot, i come to realise that it is a default feature however what i have learnt about this that u always have to have you virtual north set, in case u are using a stitching software then u shouldn't worry yet if u are using a 360 camera like theta u have to consider the alignment while taking the images.

4

Tuesday, March 13th 2018, 10:36am

Hi,

I'm not fully sure what you mean, but you could keep the looking direction between the scenes in a tour by changing these settings in the tour.xml:

webvr_gyro_keeplookingdirection="false"
to
webvr_gyro_keeplookingdirection="true"

and:

loadscene_flags="MERGE"
to
loadscene_flags="MERGE|KEEPVIEW|KEEPMOVING"


Quoted

if u are using a 360 camera like theta u have to consider the alignment while taking the images.

The krpano tools are using the EXIF orientation information by default for alignment:
https://krpano.com/tools/kmakemultires/config/#autolevel
https://krpano.com/tools/kmakemultires/c…prealignheading

Best regards,
Klaus

5

Tuesday, July 10th 2018, 12:52am

what about on desktop?

Hello,
quick bump on this subject,
I am trying to get the Keeplookingdirection=true to work also on desktop.

I tried desktop_keeplookingdirection="true"
html5_keeplookingdirection="true"


and some others but it does notseem to work...

Am I missing something?
Thank you,

6

Tuesday, July 10th 2018, 9:45am

Am I missing something?


Have you changed that setting as shown above:

Quoted

changing these settings in the tour.xml:
...
loadscene_flags="MERGE"
to
loadscene_flags="MERGE|KEEPVIEW|KEEPMOVING"

7

Tuesday, July 10th 2018, 4:33pm

Thank you Klaus!
of course I had forgotten something...
It works now :)