You are not logged in.

STRAT

Beginner

  • "STRAT" started this thread

Posts: 18

Location: Penarth, South Wales, UK

Occupation: Illustrator

  • Send private message

1

Friday, September 27th 2013, 5:45pm

restrict viewing angles?

Hi guys

i have a box generated vtour pano giving me an effective 360 degree viewing angle.

i view this on my ipad using the gyro plugin.

Question - how can i restrict the viewing angle? ie, how can i, for instance, just be allowed to view the pano maybe 80 degrees either side of my starting position and maybe 45 degrees elevation up and down?

thank you

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

STRAT

Beginner

  • "STRAT" started this thread

Posts: 18

Location: Penarth, South Wales, UK

Occupation: Illustrator

  • Send private message

3

Friday, September 27th 2013, 6:25pm

thank you for those link, but please forgive me having ZERO coding experience, how and where do i make these changes? it isnt straight forward for an absolute beginner ;)

thanks

4

Friday, September 27th 2013, 7:42pm

Hi,

look in the xml for the <view> element for your pano/scene and add there limitview settings for your pano:
http://krpano.com/docu/xml/#view.limitview

e.g.

Source code

1
<view ... limitview="range" hlookatmin="-80" hlookatmax="+80" vlookatmin="-45" vlookatmax="+45" />


Best regards,
Klaus

STRAT

Beginner

  • "STRAT" started this thread

Posts: 18

Location: Penarth, South Wales, UK

Occupation: Illustrator

  • Send private message

5

Saturday, September 28th 2013, 10:35am

thanks Klaus, but i need help further. i pressume the xml file i need to amend is the vtour.xml file?

my existing view line reads - <view hlookat="0.000" vlookat="0.000" fovtype="MFOV" fov="80.0" maxpixelzoom="2.0" fovmin="80.0" fovmax="80.0" />

i tried adding what you said but the pano gave me a black error screen. how and where exactly do i add your additions? and what are those dots you added for ( <view ... ) ?

again, please stick with me here is this isnt natural to a lot of people out there. and yes, i have read the files and tuts, but they're not easy and straight forward to implement if you've not prior understanding and experience.

thanks

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

6

Saturday, September 28th 2013, 11:17am

Well... these dots mean that Klaus just skipped to write all that comes before "limitview". That said, your line should be:

Source code

1
<view hlookat="0.000" vlookat="0.000" fovtype="MFOV" fov="80.0" maxpixelzoom="2.0" fovmin="80.0" fovmax="80.0" limitview="range" hlookatmin="-80" hlookatmax="+80" vlookatmin="-45" vlookatmax="+45" />


It's pretty easy! *smile* Note: I'm not a coder also, I'm interpreter. And what Krpano REALLY requires is - always inexhaustible ATTENTION. to every detail. That's the secret, I suppose *tongue*
Regards,

Alexey

STRAT

Beginner

  • "STRAT" started this thread

Posts: 18

Location: Penarth, South Wales, UK

Occupation: Illustrator

  • Send private message

7

Saturday, September 28th 2013, 12:04pm

thanks again guys, all works a treat now.

Alexey - yup, it's fairly logical and i'm trying my best to get my head around it. It is fairly understandable, but as you say, the devil is in the detail. you need to type out lines and commands EXACTLY in the right place and position with no errors in any of the characters. thats where i'm falling over.


what would be wonderful would be a user interface that helps new inexperienced users with all these things. i've learned a lot over the last week or 2 and changed a load of code lines i never expected to. but even so, it's a shame all of this cant be made easier with a nice basic user interface meaning the adjusting of code lines isnt necessary.

8

Tuesday, October 24th 2017, 8:28pm

Restricted viewing angle - rubberband mode

Fantastic thread everyone, thanks!

I have typed in the proper text to restrict the viewing angle and it seems to work, mostly. I notice I can still orbit ALL the way around if I am holding the mouse button down, but once I let go it snaps back to the numeric value I had typed in to restrict it.

Is there a way to keep the user from being able to continue viewing past what I put in for a restriction?

Thanks in advance!

-Greg

9

Tuesday, October 24th 2017, 10:07pm

Hi,

set the control.bouncinglimits setting to false (it's disabled by default but e.g. the vtourskin.xml enables it).

Best regards,
Klaus