You are not logged in.

1

Thursday, April 11th 2013, 3:39pm

Rotation Position

How would I got about finding where in the rotation a scene is?
To clarify I'm trying to load the next scene once a scene has made it 360 degrees.

Thanks,
Ben

2

Thursday, April 11th 2013, 3:55pm

Getting closer

I think I'm getting closer. I now see that I can use view.hlookat to tell where the scene is in it's rotation.

The next bit of information that I need would be to find out what the default(starting) view.hlookat is after a scene loads and then be able to recall that position later on.

Any idea on how to grab this?

Thanks,
Ben

This post has been edited 1 times, last edit by "bnjmn.myers" (Apr 11th 2013, 4:12pm)


3

Friday, April 12th 2013, 9:56am

Hi,

the default hlookat value is 0.

The typical startup view will be set in the xml in <view> element,
e.g.

Source code

1
<view hlookat="123" ... />


See also here:
http://krpano.com/docu/xml/#view

Best regards,
Klaus

4

Friday, April 12th 2013, 2:53pm

Clarification

What I'm really trying to do is grab the following when the scene loads:
<view hlookat="someNumber">

Once I've got that I'd like to save it to a global variable if possible.

Each one of our scenes is started from a different position. Our tours are of homes and the beginning hlookat is determined by the "most important" part of the room. For instance if it's a tour of a kitchen/living room combo then generally the hlookat focuses on the sink and cabinets. From scene to scene the hlookat will change drastically.

Thanks,
Ben

5

Monday, April 15th 2013, 6:23pm

Hi,

e.g.

Source code

1
2
3
<events name="save_startup_view" keep="true"
        onxmlcomplete="copy(startup_hlookat, view.hlookat); copy(startup_vlookat, view.vlookat); copy(startup_fov, view.fov);"
        />

Best regards,
Klaus

Taurus

Trainee

Posts: 140

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

6

Monday, April 15th 2013, 11:36pm

--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.20