Sie sind nicht angemeldet.

21

Samstag, 9. April 2011, 12:29

Thanks for spotting that. I have updated the documentation on http://fieldofview.github.com/krpano_fov…ath/plugin.html, and once I've done a couple more updates I will ask Klaus to sync the pages to krpano.com/plugins.

I have also updated the example of the string plugin with the tickertape mentioned above.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

22

Sonntag, 17. April 2011, 00:13

Hi Aldo,

i'm playing with the vector mask plugin...

i try to make it rotate (like the bottomslider function does) automaticaly with angle of 20 degrees or so.. from right to left and visaversa...

i don't need the sliders to be there..

can't get it..
can you profide a small example code for that?

edit: i made a small set up for the idea: http://www.virtualtuur.com/krpano/vector/1/

i know this is not the way to make it nice an smooth ... but what is..(?)

things i like to fix and to know:

- how to get the other cubefaces come along nice and smooth?
- i would like to set a sort of wobble.. or 3 ... that all three axes do a path but in different time.. at the same time or paralell
(i think you have to do that with a max math thing ex.. when ath reaches -10 in 7 seconds then tween to +10 in 7 seconds.. (?)
maybe a combination with the string plugin?

I hope somebody can help me here... maybe just with one axe?

Thanx!
Tuur *thumbsup*

Dieser Beitrag wurde bereits 4 mal editiert, zuletzt von »Tuur« (17. April 2011, 03:22)


23

Montag, 18. April 2011, 10:41

You would want to do something like this:

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
30
<action name="startbobbing">
		hbob();
		vbob();
		rbob();
	</action>
	
	<action name="hbob">
		if(hbob_value === null,
			set(hbob_value,.5);
		,
			mul(hbob_value, -1);
		);
		tween(hotspot[pano_f].ath, get(hbob_value), 3.7, easeInOutCubic, hbob);
	</action>
	<action name="vbob">
		if(vbob_value === null,
			set(vbob_value,1);
		,
			mul(vbob_value, -1);
		);
		tween(hotspot[pano_f].atv, get(vbob_value), 2, easeInOutCubic, vbob);
	</action>	
	<action name="rbob">
		if(rbob_value === null,
			set(rbob_value,1);
		,
			mul(rbob_value, -1);
		);
		tween(hotspot[pano_f].rotate, get(rbob_value), 1.8, easeInOutCubic, rbob);
	</action>

Unfortunately, using this approach you can only bob one cubeface at a time; there is no action that is called during the tween so you can update the other faces. Setting up tweens for the other faces should not be too much work though, and it does not required the vectormath plugin...

24

Montag, 18. April 2011, 11:01

Here's a version that does bobbing on the v and h axes on the front face, and updates the other faces accordingly:

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
30
31
32
33
34
35
36
37
38
39
40
<action name="startbobbing">
		hbob();
		vbob();
	</action>
	
	<action name="hbob">
		if(hbob_value === null,
			set(hbob_value,.5);
		,
			mul(hbob_value, -1);
		);
		tween(hotspot[pano_f].ath, get(hbob_value), 3.7, easeInOutCubic, hbob);
		
		add(hbob_value2,get(hbob_value),90);
		tween(hotspot[pano_r].ath, get(hbob_value2), 3.7, easeInOutCubic);
		add(hbob_value2,get(hbob_value),180);
		tween(hotspot[pano_b].ath, get(hbob_value2), 3.7, easeInOutCubic);
		add(hbob_value2,get(hbob_value),-90);
		tween(hotspot[pano_l].ath, get(hbob_value2), 3.7, easeInOutCubic);
		mul(hbob_value2,get(hbob_value),-1);
		tween(hotspot[pano_u].rotate, get(hbob_value2), 3.7, easeInOutCubic);
		tween(hotspot[pano_d].rotate, get(hbob_value), 3.7, easeInOutCubic);
	</action>
	<action name="vbob">
		if(vbob_value === null,
			set(vbob_value,1);
		,
			mul(vbob_value, -1);
		);
		tween(hotspot[pano_f].atv, get(vbob_value), 2, easeInOutCubic, vbob);
		
		mul(vbob_value2,get(vbob_value),-1);
		tween(hotspot[pano_r].rotate, get(vbob_value2), 2, easeInOutCubic);
		tween(hotspot[pano_b].atv, get(vbob_value2), 2, easeInOutCubic);
		tween(hotspot[pano_l].rotate, get(vbob_value), 2, easeInOutCubic);
		add(vbob_value2,get(vbob_value),-90);
		tween(hotspot[pano_u].atv, get(vbob_value2), 2, easeInOutCubic);
		add(vbob_value2,get(vbob_value),90);
		tween(hotspot[pano_d].atv, get(vbob_value2), 2, easeInOutCubic);
	</action>

Call startbobbing once (eg onstart="startbobbing") and Bob's your uncle.

PS: adding the rotate axis for the front face requires more math than I have time for now.
PPS: look ma, no vectormath plugin!

25

Montag, 18. April 2011, 13:54

I have added an example to the fovplugins package, which uses the vectormath plugin to sync the other 5 faces to a bobbing front face. Thanks for the hint mindlessboss.
https://github.com/fieldOfView/krpano_fo…les/bobbing.xml
http://fieldofview.github.com/krpano_fov…es/bobbing.html

I also fixed a small bug in the vectormath plugin while creating this example. I was a bit over-cautious of a zenith/nadir singularity condition. As always, the github download contains the latest updates:
https://github.com/fieldOfView/krpano_fo…/zipball/master

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »ahoeben« (18. April 2011, 14:06)


Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

26

Montag, 18. April 2011, 15:31

He Aldo,

Great..!!!

i see some artifacts happening with the update faces i think..

http://www.virtualtuur.com/krpano/vector/1/

sometimes you see a small border or gap around the front faces..
will that be the speed of the update faces or.. ?

gonna try to get the rbob in aswell..
And take a nice pic on the sailboat of daddy..;-)

Thanx!

Tuur *thumbsup*

27

Montag, 18. April 2011, 16:34

Zitat


sometimes you see a small border or gap around the front faces..
will that be the speed of the update faces or.. ?

I have fixed that here:
https://github.com/fieldOfView/krpano_fo…65533035624f719
https://github.com/fieldOfView/krpano_fo…les/bobbing.xml

Try to figure out what I changed, and why it works better. If you cannot figure it out I'll try to help you understand the difference.

Zitat


gonna try to get the rbob in aswell..

The "rbob" is already implemented and working in the vectormath-based version. My remark about the rotate-axis of the front face only applied to the version I posted above that doesn't use the vectormath plugin.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

28

Montag, 18. April 2011, 16:42

i saw a typo

in the last line of the rbob action at the end should be rbob instead of vbob

Zitat

The "rbob" is already implemented and working


yeah i saw that to late.. sorry
*thumbsup*

the difference is the proxy thing... what does that mean/do?


getting seasick *wacko*
http://www.virtualtuur.com/krpano/vector/1/

Tuur *thumbsup*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

29

Montag, 18. April 2011, 16:53

i was wondering ..

when i set the mul to 1.2 or so ( more then 1) then the move grows..

could that be bad for the computer? when u let it go for 20 minutes?

Tuur *thumbsup*

30

Montag, 18. April 2011, 17:42

i saw a typo

Damn you copy-paste!
Thanks.

Zitat


the difference is the proxy thing... what does that mean/do?

Yes. That's reading the difference. Now try understanding the difference.

Zitat

when i set the mul to 1.2 or so ( more then 1) then the move grows..
could that be bad for the computer? when u let it go for 20 minutes?

What is the value that is being multiplied used for? And what happens if you use a (very) large number instead? Will your computer blow up? Unlikely. Will it look good? Also unlikely.

tommo77funk

Fortgeschrittener

Beiträge: 159

Wohnort: London

Beruf: Photographer

  • Nachricht senden

31

Montag, 18. April 2011, 19:36

ah ha ha ! What a great effect !!

Great work Aldo and great example tuur, you make me sick !

best,

tom

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

32

Dienstag, 19. April 2011, 01:20

http://www.virtualtuur.com/krpano/vector/2/
*thumbsup*


now it would be great to have alpha channel on the cubefaces.. png ? droplet to png..?

then you cut out the ship and put an area behind it..

*thumbup*

Tuur *thumbsup*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (19. April 2011, 01:30)


Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

33

Dienstag, 19. April 2011, 12:54

Hi aldo,
I tried to apply the imageadjust on the cubefaces.. But without succes..
Is that possible?
It now does only the preview /background.

And if yes, that would also be great to do on plugins/hotspots (as sachagriffin suggested)

As you can see the display quality is low but the pano is not taking any display settings... How come?
Grtz
Tuur *thumbsup*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (19. April 2011, 21:49)


34

Donnerstag, 21. April 2011, 09:45

Zitat

I tried to apply the imageadjust on the cubefaces.. But without succes..


Currently the imageadjust plugin just applies the effect to the "image.layer" sprite. Ie: the panoramic image, sans hotspots and sans plugins. The next version will be more configurable, letting you set which "sprites" are affected.

Zitat

As you can see the display quality is low but the pano is not taking any display settings... How come?

Sorry, you lost me. See where? Low quality? Display settings?

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

35

Donnerstag, 21. April 2011, 11:38

Hi ,

Sorry i took it out because it didn't do something.
I'll put it back when i'm @ home.
Now at yb in Groningen :-)

Tuur *thumbsup*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

36

Donnerstag, 21. April 2011, 17:29

Oke,

when i put

Quellcode

1
2
3
4
5
6
7
8
9
10
11
<display fps="60"
	         details="32"
	         tessmode="5"
	         movequality="LOW"
	         stillquality="HIGH"
	         flash10="on"
	         movequality10="HIGH"
	         stillquality10="HIGH"
	         stilltime="0.25"
	         />  
   


it does nothing...

and it looks like display details 10 or so..
look at the difference in straight lines etc..

http://www.virtualtuur.com/krpano/vector/1/

http://www.virtualtuur.com/krpano/vector/2/
When i take out the display settings it's the same..
When i zoom in then it suddenly changes.. to the display settings ( i suppose)

how is that possible? Is it still in preview mode?

Tuur *thumbsup*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (21. April 2011, 17:49)


37

Donnerstag, 21. April 2011, 21:14

Not that this has much to do with the vectormath plugin, but have you tried putting an actual panorama into the "scene" instead of just a preview image? You may have better luck with a cube or cubestrip image than with a spherical image.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

38

Freitag, 22. April 2011, 08:24

Well example 1 is the same as 2.
Only the preview pic is different and i put the alpha of the cube faces on 0.7 i think.
It has to do with th plugin i think while it's causing it i think.
Have a look at the code and example 2.
You see a preview in the background( swiss alps) and the sailboat cubefaces doing the bobbling with alpha 0.7....
And no display details working..
EDIT: ok i understand now.
but the image tags at the preview don't trigger the display settings for the cubefaces..



Thanx Aldo, for your time and great plugins!
Tuur *thumbsup*

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »Tuur« (22. April 2011, 09:30)


39

Freitag, 22. April 2011, 09:58

Zitat

the image tags at the preview

Could you rephrase that in a bit less cryptic way?

Did you try using a larger panorama instead of the low resolution one you're using now?

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

40

Freitag, 22. April 2011, 10:01

http://www.virtualtuur.com/krpano/vector/2/

i first had

Quellcode

1
2
3
4
5
6
...


<preview url="../../saas_4.tiles/preview.jpg" /> 

..



now i put the image tags around it in the hope that then the display settings will work... but not

Quellcode

1
2
3
<image>
		<cubestrip url="../../saas_4.tiles/preview.jpg" />
	</image>


Tuur *thumbsup*

Ähnliche Themen