You are not logged in.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,164

Location: Netherlands

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

  • Send private message

1

Monday, January 2nd 2012, 3:26pm

pov driven

Hi,

i'm working on quit a big tour. 67 pano's yet.
I like for some pano's to show pov driven text but not for all.

I am trying with the example that comes with the download but i can't find the solution for this.
I am not working in scenes but in xml.

Anybody has a working example for this ? i like to use showtext, infostyle.
Or tips?

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,164

Location: Netherlands

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

  • Send private message

2

Monday, January 2nd 2012, 5:11pm

i thought something like this..

Source code

1
2
3
4
5
6
7
8
9
10
11
12
<events onpreviewcomplete="set(events.onviewchange,povdrive_5();showtext(get(_pov1), infostyle_2););" />

<action name="povdrive_5">


	if(view.hlookat GT 100, set(textstyle[infostyle_2].alpha, 0);, set(textstyle[infostyle_2].alpha, 1); );
	if(view.hlookat LT 50, set(textstyle[infostyle_2].alpha, 0);, set(textstyle[infostyle_2].alpha, 1); );

set(update,view);
	
trace('get(view.hlookat)');
</action>


it shows the text but doesn't change in alpha when i turn around..
*question*

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

3

Monday, January 2nd 2012, 5:19pm

You have to change set by tween for alpha ;-)

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,164

Location: Netherlands

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

  • Send private message

4

Monday, January 2nd 2012, 5:35pm

mmm... thanx job but no succes with:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
<events onpreviewcomplete="set(events.onviewchange,povdrive_5();showtext(get(_pov1), infostyle_2););" />

<action name="povdrive_5">


	if(view.hlookat GT 100, tween(textstyle[infostyle_2].alpha, 0);, tween(textstyle[infostyle_2].alpha, 1); );
	if(view.hlookat LT 50, tween(textstyle[infostyle_2].alpha, 0);, tween(textstyle[infostyle_2].alpha, 1); );

set(update,view);
	
trace('get(view.hlookat)');
</action>


i also tried:

Source code

1
2
3
4
5
6
7
8
9
<events onpreviewcomplete="set(events.onviewchange,povdrive_5();showtext(get(_pov1), infostyle_2););" />

<action name="povdrive_5">


	if(view.hlookat LT 100, if(view.hlookat GT 50, tween(textstyle[infostyle_2].alpha, 1);, tween(textstyle[infostyle_2].alpha, 0);  ););
	

</action>


i was wondering if this last if does : if(view.hlookat LT 100 AND if(view.hlookat GT 50 ???
When i put trace('get(view.hlookat)'); in stead of tween(textstyle[infostyle_2].alpha, 1);
it works when i look in the log..

*cry*

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

This post has been edited 1 times, last edit by "Tuur" (Jan 2nd 2012, 5:49pm)