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

Tuesday, June 28th 2016, 5:56pm

VR startup view

Hi

How is possible to set up the startup view of a scene VR to be "static", and do not calculate with the current head podition?

When I navigate trought the hotspots, I want the current scene to start always in the startup position. (Even if the headset is directed to the other direction... )


http://cityparkruzinov.pano3d.eu/vr/


<scene ...>

<view hlookat="37.348" vlookat="37.781" ... />

<preview url="panos/137EOS5D-8000-4000.tiles/preview.jpg" />

<image.... </image>

<image if="webvr.isenabled">
<cube url="panos/137EOS5D-8000-4000.tiles/vr/pano_%s.jpg" />
</image>

</scene>

Red

Trainee

Posts: 98

Location: Australia

Occupation: Virtual tour creator, VR app developer

  • Send private message

2

Wednesday, June 29th 2016, 10:52am

You could use the resetSensor(hlookat) action in the scene's onstart attribute.

eg. onstart="resetSensor(37);"

Hope that helps

3

Wednesday, June 29th 2016, 12:36pm

Thank You for the response

I have tryied this, <scene ... onstart="resetSensor(22);" ... >

and removed the KEEPMOVING atribute from everywhere, but did not make any change... :/

4

Wednesday, June 29th 2016, 1:14pm

Hi,

see here:
http://krpano.com/plugins/webvr/#lookat

try:

Source code

1
<scene ... onstart="if(webvr AND webvr.isenabled, webvr.hlookat(22) );">


Best regards,
Klaus