Hello
I wish to keep these 3 parameters on loading a new pano or scene:
Basically if the user has zoomed in and moved to look at a specific point, on loading the new pano or scene the 3 parameters will be passed so the new pano blends in on that same exact point and fov.
How can I achieve this?
Thanks
keep current hlookat vlookat and fov on loadpano or loadscene
-
-
Here is what i am trying with no success:
first stacking current values, then popping them after loading the new pano/scene<action name="mainloadscene">
push (view.hlookat);
push (view.vlookat);
push (view.fov);
loadscene(%1,NULL,keepprogress()|keepdisplay()|keepcontrol(),BLEND(3));
pop (view.fov());
pop (view.vlookat());
pop (view.hlookat());</action>
or
set(currentX,get(view.hlookat));
set(currentY,get(view.vlookat));
set(currentFOV,get(view.fov));
loadscene(%1,NULL,keepprogress()|keepdisplay()|keepcontrol(),BLEND(3));
set(view.hlookat,get(currentX));
set(view.vlookat,get(currentY));
set(view.fov,get(currentFOV));Where am I wrong?
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!