You are not logged in.

1

Wednesday, March 19th 2014, 6:14pm

lookto initial view

How to lookto the max fov? I have a cylinder pano and would like to return to the initial view , I mean to the view that the user sees when he enters the website.
Thank you

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

2

Thursday, March 20th 2014, 9:51am

should be something like:
copy(hlookat,scene.hlookat);
copy(vlookat,scene.vlookat);

3

Saturday, March 22nd 2014, 8:25pm

I used this like this:

Source code

1
2
3
4
<action name='home'>
  copy(hlookat,scene.hlookat);
  copy(vlookat,scene.vlookat);
</action>

and it did not change view at all.

But this is being working:

Source code

1
2
3
<action name='home'>
  lookto(0,0,.27,smooth(11,.1,11));
</action>

But the .27 value should be got automatically by a method or function.

Similar threads