Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Mittwoch, 9. September 2009, 08:42

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

Donnerstag, 10. September 2009, 11:03

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:

Quellcode

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.

Quellcode

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

or:

Quellcode

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:

Quellcode

1
set(display.flash10, off);



best regards,
Klaus

3

Freitag, 2. Oktober 2009, 17:18

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

4

Dienstag, 6. Oktober 2009, 10:58

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