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, 21. März 2012, 14:50

Little Planet

Please I made a tour with a introduction, the problem is:
What a have to do to after the introduction change the fovmax to 90.
I made a little planet with a action and the pano starts with this view.
<view hlookat ="220"
vlookat ="90.000000"
camroll ="0.000000"
fov ="240"
fovmin ="60"
fovmax ="240"
maxpixelzoom ="1.000000"
limitfov ="true"
fisheye ="1.00"
fisheyefovlink="0.50"
stereographic ="true"
architectural ="0.0"
architecturalonlymiddle="false"
limitview ="auto"
hlookatmin ="NaN"
hlookatmax ="NaN"
vlookatmin ="NaN"
vlookatmax ="NaN"
/>
So always after the introduction the fovmax keep foxmax180, and I would like to change to foxmax 120.

Somebody knows what I have to do?
Thank you

Zephyr

Profi

Beiträge: 994

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

2

Mittwoch, 21. März 2012, 15:04

after your littleplanet action add set(view.fovmax, 120); Can you show your littleplanet action?
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

3

Mittwoch, 21. März 2012, 15:14

Thank you for your answer. But I fix it now with a event onviewchanged, and a made a action to it, with delayedcall.

Thank you , thank you again.

Zephyr

Profi

Beiträge: 994

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

4

Mittwoch, 21. März 2012, 15:46

onviewchange is a cpu heavy event if you're not careful
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

5

Mittwoch, 21. März 2012, 16:12

So my little planet has on the final this command

set(view.vlookatmin, -90);
set(view.vlookatmax, 90);
set(view.hlookatmin, -180);
set(view.hlookatmax, 180);
set(view.fovmin, 1);
set(view.fovmax, 120);

But I dont know why, I can see on the options plugins that the fov do not change.

still keeping fovmax 180.

6

Mittwoch, 21. März 2012, 16:19

if I put it on the onloadcomplete?

Thank you

7

Mittwoch, 21. März 2012, 18:49

And What about this event?

<events onviewchange="if(hotspot[nadirlogo].rotatewithview, set(hotspot[nadirlogo].rotate,get(view.hlookat)) );"
/>

Zephyr

Profi

Beiträge: 994

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

8

Donnerstag, 22. März 2012, 09:40

And if you try:

Quellcode

1
2
3
4
5
6
7
8
wait(blend); <!-- wait till everything is back to normal view -->
set(view.stereographic, false);
set(view.vlookatmin, -90);
set(view.vlookatmax, 90);
set(view.hlookatmin, -180);
set(view.hlookatmax, 180);
set(view.fovmin, 1);
set(view.fovmax, 120);


This is the code I used a long time ago to return from littleplanet view back to normal:

Quellcode

1
2
3
4
5
6
tween(view.fovmax,        155.0, distance(179, 0.25), easeoutquad); 
tween(view.fov,       	  90, distance(179, 0.75), easeoutquad, set(view.fovmax,100);
	tween(view.architectural,   0.0, distance(1.0, 0.25), easeoutquad); 
	tween(view.fisheye,         0.0, distance(1.0, 0.25), easeoutquad);
	set(view.stereographic, false);
);

maybe it helps.

The onviewchange event is heavy if you use it alot. For something like a radar it's needed because you need the pan everytime the user turns. But you don't need it for simply restoring the fovmax, so it would be wasted performance if you tried that way.
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

9

Montag, 26. März 2012, 18:35

Please, What about this event here? Is heavy too?
Because all my nadir is with this code.

<events onviewchange="if(hotspot[nadirlogo].rotatewithview, set(hotspot[nadirlogo].rotate,get(view.hlookat)) );"
/>

Thank you very much

Zephyr

Profi

Beiträge: 994

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

10

Dienstag, 27. März 2012, 13:38

Like I said, some stuff are unavoidable like the radar and nadir logo. I you do alof of stuff with onviewchange then it'll be heavy, but just 1 logo can't do much harm.
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

11

Dienstag, 27. März 2012, 15:51

Thank you very much