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