You are not logged in.

hans

Beginner

  • "hans" started this thread

Posts: 14

Location: groningen

Occupation: photographer

  • Send private message

1

Friday, January 24th 2014, 3:45pm

invert rotation

Hi all,
How to invert the rotation of the pano's in a vtour when dragging the mouse? I changed the object.xml


set(rotatedirection, left);
if(framemove LT 0, mul(framemove,framemove,-1); set(rotatedirection, right); );

but this doesn't change anything. Can't find this in the vtourskin.xml and tour xml.

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Friday, January 24th 2014, 3:55pm

Maybe this - <control mousetype="drag2D" /> ?
Regards,

Alexey

hans

Beginner

  • "hans" started this thread

Posts: 14

Location: groningen

Occupation: photographer

  • Send private message

3

Sunday, January 26th 2014, 10:05am

I tried to put this in the objectskin.xml but see no changes. Anyone?

This post has been edited 1 times, last edit by "hans" (Jan 26th 2014, 11:40am)


Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

4

Sunday, January 26th 2014, 12:32pm

ohhh....you mean rotation of an object VR?

what if try to swap the inc() and dec() inside the following (action "objectrotate"):

Source code

1
2
3
4
5
6
7
8
if(mbdown,
			if(framemove != 0,
				if(rotatedirection == left,
					inc(image.frame,get(framemove),get(image.frames),1);
				   ,
					dec(image.frame,get(framemove),1,get(image.frames));
				  );
			  );
Regards,

Alexey

hans

Beginner

  • "hans" started this thread

Posts: 14

Location: groningen

Occupation: photographer

  • Send private message

5

Monday, January 27th 2014, 10:42am

Hi Alexey,
No I mean in a virtual tour.In the forum I've read to put the rule in the objectskin.xml??
You've any idea where to change the mousemovement. My clients want to behave the mouse like Google Streetview

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

6

Monday, January 27th 2014, 11:09am

Then

Source code

1
<control mousetype="drag2D" />
should work. However, if you are using standard Krpano vtourskin.html, then there's contextmenu item:

Source code

1
<item name="scm" caption="Change Controlmode" onclick="switch(control.mousetype, 'moveto', 'drag2d');"               separator="true"      />


Remove it and add

Source code

1
<control mousetype="drag2D" />
somewhere to your code.
Regards,

Alexey

hans

Beginner

  • "hans" started this thread

Posts: 14

Location: groningen

Occupation: photographer

  • Send private message

7

Tuesday, January 28th 2014, 11:26am

Thanks very much! Only adding the code to vtourskin.xml was enough.