You are not logged in.

1

Monday, March 21st 2016, 8:22pm

Keep orientation in WebVR mode?

I've tried applying the following flags for my WebVR experiences, KEEPVIEW|MERGE, but when I transition from one scene to another, the view is defaulted to what is set in the <scene> hlookat and vlookat.

I made a custom orientation function that has the proper linkedscene vertical and horizontal position, but when I use that, the orientation changes happens before the transition starts. Meaning, the current view changes to what would be the correct orientation in the next scene.

Is this the expected behavior? Each scene's stitching starting point is not the same as the prior, which might perhaps explain my struggle.

jordi

Professional

Posts: 583

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

2

Monday, March 21st 2016, 9:01pm

you should use resetsensor action to achieve that effect
everpano.com step beyond 360

3

Monday, March 21st 2016, 10:03pm

Hi Jordi,
Thanks for the reply, but I'm not sure I follow on using resetsensor - what's the flow after the onclick event?

thanks!

Edit: Well, I tried using webvr.resetSensor( {next scene's starting view point} ) but what still ends up happening is the current pano switches to the next hlookat before the transition.

This post has been edited 1 times, last edit by "devnoid" (Mar 21st 2016, 10:52pm)


jordi

Professional

Posts: 583

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

4

Tuesday, March 22nd 2016, 10:14am

you should first loadscene, and after that resetSensor to desired point of view, I normally save those values to the hotspot directly, and then dynamically read those values and resetSensor depending on them, that way you can acces the same scene from different points of view (from different scenes) , otherwise you can do it statically which could be something like setting the onstart attribute to the scene onstart=webvr.resetsensor(10);

hope it helps
everpano.com step beyond 360

5

Monday, January 22nd 2018, 10:21am

To achieve the desired result, have a look at: https://krpano.com/forum/wbb/index.php?p…74055#post74055

"there is a a setting for that - just set the new 'webvr_gyro_keeplookingdirection' skin setting to true."

HTH