You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, September 9th 2009, 8:42am

Little planet view transform to archiectural view, how?

I think I have seen this being done but cant find it.
I want to experiment with the little planet view as default which gradually transforms into architectural view, here is what I plan.

Start with little planet view look at nadir (need to code some looking at zenith too)
from nadir the view goes to pitch at 0° & after 30 sec it transforms into architectural view.

In little planet view (flash 10) the cpu demand is too high is there a way to reduce that so it can move smoothly in full screen?

2

Thursday, September 10th 2009, 11:03am

Hi,
Start with little planet view look at nadir (need to code some looking at zenith too)
from nadir the view goes to pitch at 0° & after 30 sec it transforms into architectural view.
e.g.
this would be action for that:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<action name="planet_to_architectural">
  <!-- look at nadir: -->
  set(view.vlookat, 90);

  <!-- enable the little planet effect: -->
  set(view.stereographic, true);
  set(view.fisheye, 1.0);
  set(view.fov, 140);

  <!-- use only flash10 for better performance while in little planet view -->
  set(display.flash10, off);

  <!-- wait until loading was done -->
  wait(LOAD);

  <!-- look up in 2 seconds and wait unitl it's done -->
  tween(view.vlookat, 0, 2.0, default, WAIT);

  <!-- wait 30!? seconds -->
  wait(30);

  <!-- tween to architectural in also 2 seconds -->
  tween(view.architectural, 1.0, 2.0, default, WAIT);

  <!-- enable flash10 again -->
  set(display.flash10, on);

  <!-- now the user can control the pano -->
</action>


call this action e.g. in the "onstart" or "events.onxmlcomplete" event,
e.g.

Source code

1
<krpano onstart="action(planet_to_architectural);">

or:

Source code

1
<events onxmlcomplete="action(planet_to_architectural);" />


In little planet view (flash 10) the cpu demand is too high is there a way to reduce that so it can move smoothly in full screen?
yes, there is way, just disable the usage of flash10 while in little planet/fisheye mode:

Source code

1
set(display.flash10, off);



best regards,
Klaus

3

Friday, October 2nd 2009, 5:18pm

Will I loose any feature or quality if I set flash 10 off?

4

Tuesday, October 6th 2009, 10:58am

Hi,
Will I loose any feature or quality if I set flash 10 off?
only quality (but you get a faster rendering therefore)
the viewer just don't use the new flash10 rendering functions in this case,

best regards,
Klaus