You are not logged in.

Fernando

Intermediate

  • "Fernando" started this thread

Posts: 330

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

1

Monday, March 27th 2023, 4:58pm

[SOLVED] About view.hlookat range

Hi, why view.hlookat value is out of range (360 to -360)? Please view image *confused*

The -379 value is out of range
In console: trace(view.hlookat);
Fernando has attached the following image:
  • viewhlookat_range.jpg

This post has been edited 1 times, last edit by "Fernando" (Mar 27th 2023, 11:33pm)


2

Monday, March 27th 2023, 5:22pm

Hi,

this is intentional.
There is no limit (unless a custom one is set) and no overflow wrapping.

Best regards,
Klaus

Fernando

Intermediate

  • "Fernando" started this thread

Posts: 330

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

3

Monday, March 27th 2023, 7:40pm

my question is because of the content of the help

view.hlookat: The horizontal looking direction in spherical coordinates in degrees.

The typical range is from -180° to +180°. The value will not wrap around 360° but the view itself will. The value 0.0 points to the center of the pano image.



Then, please, how to know (or calculate) the value within the range -180 to 180?


Thanks very much for your help!

This post has been edited 1 times, last edit by "Fernando" (Mar 27th 2023, 7:58pm)


spacerywirtualne

Professional

Posts: 1,117

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

4

Monday, March 27th 2023, 9:25pm

Source code

1
2
adjusthlookat(0);
trace('view.hlookat: ',get(view.hlookat));



*thumbup*
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

Fernando

Intermediate

  • "Fernando" started this thread

Posts: 330

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

5

Monday, March 27th 2023, 11:30pm

adjusthlookat...

Thanks @spacerywirtualne and @klaus for clarifying, I needed something like an azimuth and using adjusthlookat(180) I got it.
*thumbsup*