Sie sind nicht angemeldet.

immersium

Schüler

  • »immersium« ist der Autor dieses Themas

Beiträge: 66

Wohnort: Chambéry, Savoie, France

Beruf: GM Multimedia Company

  • Nachricht senden

1

Dienstag, 28. Dezember 2010, 02:33

Using scene title as text inside pano

Hi -


I'm using the VTOUR droplet and I'd like to indicate somewhere in my pano (say top left) the name of the scene (as a simple text).
The text would have to be automatically updated when changing scene (eg Scene1-> Scene2).

How could I do that?

Thanks for your help.

Cheers,
Thomas
Websites : Immersium
Facebook page : http://www.facebook.com/pages/Immersium/131615226886648
Nikon D300 + Nikkor 10.5mm + 360Precision Absolute
Gigapan + Canon G9

2

Dienstag, 28. Dezember 2010, 15:20

add this code into the tour.xml file this will give you the titles however then will follow the mouse.

set(plugin[get(thumbname)].onclick, openthumbs() ); <!-- this line is already there -->
copy(plugin[get(thumbname)].scenetitle, scene[get(i)].title); <!-- add this line -->
set(plugin[get(thumbname)].onhover, showtext(get(scenetitle)),addtextstylehere ); <!-- add this line -->

then define a textstyle that hold the text in the upperleft hand corner.

immersium

Schüler

  • »immersium« ist der Autor dieses Themas

Beiträge: 66

Wohnort: Chambéry, Savoie, France

Beruf: GM Multimedia Company

  • Nachricht senden

3

Mittwoch, 29. Dezember 2010, 00:29

Hi VN2009
I tried your code but no success.
I nevertheless almost managed to solve the problem by using this code



if(%1 != NEXT, set(i,0));
if(i LT scene.count,
copy(thumb, scene[get(i)].thumburl);
txtadd(thumbname,'thumb_',get(i));
addplugin(get(thumbname));
set(plugin[get(thumbname)].url, get(thumb));
set(plugin[get(thumbname)].keep, true);
set(plugin[get(thumbname)].align, leftbottom);
set(plugin[get(thumbname)].width, 40);
set(plugin[get(thumbname)].height, 40);
set(plugin[get(thumbname)].x, 10);
set(plugin[get(thumbname)].y, 10);
mul(plugin[get(thumbname)].x, i,45);
add(plugin[get(thumbname)].x, 5);
add(plugin[get(thumbname)].y, 5);
copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x);
copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y);
add(plugin[get(thumbname)].zorder, 100, i);
set(plugin[get(thumbname)].effect,glow(0xFFFFFF,1.0,2,10000));
set(plugin[get(thumbname)].jsborder,'1px solid #FFFFFF');
copy(plugin[get(thumbname)].thumbpos, i);
set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) );
set(plugin[get(thumbname)].onclick, loadscene(get(linkedscene),null,MERGE,BLEND(1)); ); );

set(plugin[get(thumbname)].onhover, showtext(get(linkedscene),buttonstyle);

inc(i);
buildthumbs(NEXT);

);

</action>

BUT

It only displays the 1st thumbnail and there must be a mouseover on it to display the remaining ones.
Then the text is displayed correctly.

Thx.
Websites : Immersium
Facebook page : http://www.facebook.com/pages/Immersium/131615226886648
Nikon D300 + Nikkor 10.5mm + 360Precision Absolute
Gigapan + Canon G9

4

Mittwoch, 29. Dezember 2010, 11:10

This code work well
Thank's VN2009 *thumbsup*

immersium

Schüler

  • »immersium« ist der Autor dieses Themas

Beiträge: 66

Wohnort: Chambéry, Savoie, France

Beruf: GM Multimedia Company

  • Nachricht senden

5

Mittwoch, 29. Dezember 2010, 11:46

My mistake, the code works except that it doesn't get the last scene name and replaces the value by "null", even though there this last scene name contains a value.

Websites : Immersium
Facebook page : http://www.facebook.com/pages/Immersium/131615226886648
Nikon D300 + Nikkor 10.5mm + 360Precision Absolute
Gigapan + Canon G9

6

Mittwoch, 29. Dezember 2010, 14:38

Hi VN2009
I tried your code but no success.
I nevertheless almost managed to solve the problem by using this code



if(%1 != NEXT, set(i,0));
if(i LT scene.count,
copy(thumb, scene[get(i)].thumburl);
txtadd(thumbname,'thumb_',get(i));
addplugin(get(thumbname));
set(plugin[get(thumbname)].url, get(thumb));
set(plugin[get(thumbname)].keep, true);
set(plugin[get(thumbname)].align, leftbottom);
set(plugin[get(thumbname)].width, 40);
set(plugin[get(thumbname)].height, 40);
set(plugin[get(thumbname)].x, 10);
set(plugin[get(thumbname)].y, 10);
mul(plugin[get(thumbname)].x, i,45);
add(plugin[get(thumbname)].x, 5);
add(plugin[get(thumbname)].y, 5);
copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x);
copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y);
add(plugin[get(thumbname)].zorder, 100, i);
set(plugin[get(thumbname)].effect,glow(0xFFFFFF,1.0,2,10000));
set(plugin[get(thumbname)].jsborder,'1px solid #FFFFFF');
copy(plugin[get(thumbname)].thumbpos, i);
set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) );
set(plugin[get(thumbname)].onclick, loadscene(get(linkedscene),null,MERGE,BLEND(1)); ); );

set(plugin[get(thumbname)].onhover, showtext(get(linkedscene),buttonstyle); yes I had one of the ) in the wrong spot but you figured it out.

inc(i);
buildthumbs(NEXT);

);

</action>

BUT

It only displays the 1st thumbnail and there must be a mouseover on it to display the remaining ones.
Then the text is displayed correctly.

Thx.


no idea on the NULL issue though. I use the vtour for alot of mini tours and that has not happened to me.

7

Mittwoch, 29. Dezember 2010, 14:42

Perhaps you have a number in your title, only name is take ;-)