You are not logged in.

image360

Intermediate

  • "image360" started this thread

Posts: 215

Location: Austin, TX and Chicago, IL

Occupation: Photographer

  • Send private message

1

Monday, July 9th 2012, 2:16am

Limit views on 400 degrees?

I'm wondering if it's easily possible to limit the right or left degree of rotation when the possible rotation is more than 360 degrees. What? Yes bear with me on this one.

What I want to do is to set a right limit beyond the left limit and vice verses. That is went you rotate horizontally right, you can go to say hlookatmax 60 and when you move to the left you can go to say hlookatmin 40. This is using the limitview range setting.

While I've looked through the forum for any earlier question on this, did not find one, I have not tried it yet, but seem to remember from earlier test that this type of hlookatmax/min span that was greater than 360 simply was the same thing as no limits.

I guess it might be possible to check the hlookat and once past a certain point set a new limit and then do the reverse.

Any ideas?

Regards,

Robert

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Monday, July 9th 2012, 4:13am

Hlookatmax 60 and Hlookatmin 40 is only 20 degrees of freedom. It's confusing. But no matter, you can use event onviewchanged to get any variable and set the hlookat yourself. This is how I did limits on iPad before it was built in.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Monday, July 9th 2012, 11:42am

Hi,

the default viewing limitations can't be used for more than 360 degree around, but you could use the onviewchange event and do the limitation yourself by modifying the hlookat value.

e.g.

Source code

1
2
3
4
5
6
7
8
<view limitview="off" />

<events onviewchange="customlimits();" />

<action name="customlimits">
  if(view.hlookat LT -200, set(view.hlookat, -200));
  if(view.hlookat GT +200, set(view.hlookat, +200));
</action>


best regards,
Klaus

image360

Intermediate

  • "image360" started this thread

Posts: 215

Location: Austin, TX and Chicago, IL

Occupation: Photographer

  • Send private message

4

Monday, July 9th 2012, 4:21pm

Thanks Guys

Thanks Guys, knew there had to be an easy way with KrPano!

Robert