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.

simon64

Beginner

  • "simon64" started this thread

Posts: 39

Location: uk

Occupation: architectural illustrator

  • Send private message

1

Monday, March 26th 2018, 12:30pm

moving the prev-next scene arrows in vr scene

is there a way to move the webvr_prev_scene arrows up from the bottom of the scene to somewhere just above the eye level ?
in other words how can i add some coding to reposition them ?

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Monday, March 26th 2018, 1:38pm

Hi)

Open 'vtourskin.xml' file inside your 'skin' folder and find 'skin_webvr_menu_following' action there. Find this line:

Source code

1
v = v + 55.0 - v*1.5;



Change '55.0' to '20.0' and see the result.
Regards,

Alexey

simon64

Beginner

  • "simon64" started this thread

Posts: 39

Location: uk

Occupation: architectural illustrator

  • Send private message

3

Monday, March 26th 2018, 5:29pm

fantastic !
works like a dream

Thanks Alexey
very much appreciated.

4

Wednesday, March 28th 2018, 11:27pm

Maybe also a short explanation what this is doing: ;-)

Source code

1
v = v + 55.0 - v*1.5;

v = is the current vertical looking direction
+55 = an offset to the move the hotspot 55° degree down
-v*1.5 = an inverse offset that gets larger (*1.5) that more looking down to move the hotspot up again

By that the hotspot will be at ~36° looking down in the center of the view and so 'aim-able' by the VR-cursor.