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
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
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
Hi,
the default hlookat value is 0.
The typical startup view will be set in the xml in <view> element,
e.g.
See also here:
https://krpano.com/docu/xml/#view
Best regards,
Klaus
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
Don’t have an account yet? Register yourself now and be a part of our community!