You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

1

Wednesday, January 5th 2011, 10:24am

Showtext in HTML5 and Zorder for Vtour-Thumbnails

When looking at the functions in HTML5 that does not work there is one i think which I would assume could be done easy.
Showtext looks to me as something that should work without problem in HTML so why does it not.

I find it a very useful function which can save a lot of time when doing virtual tours.

Another very irritating thing is that the Thumbnails in Vtours does not have a Zorder and will overlay any images you popup.

Hans

Tuur

Sage

Posts: 3,120

Location: Netherlands

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

  • Send private message

2

Wednesday, January 5th 2011, 12:15pm

He Hans,

i think that you can easily add a zorder.
well actualy they have a zorder



<action name="buildthumbs">
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, rightbottom);
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,3);
mul(plugin[get(thumbname)].y, i,0);
add(plugin[get(thumbname)].x, 10);
add(plugin[get(thumbname)].y, 10);
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, openthumbs() );
inc(i);
buildthumbs(NEXT);
);
</action>


hope it helps

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

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

3

Wednesday, January 5th 2011, 12:29pm

Ups

So thats why my test using exactly Zorder=100 did not work.

Hans

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

4

Wednesday, January 5th 2011, 3:30pm

Ups

So thats why my test using exactly Zorder=100 did not work.

Hans


when zorders match things would act randomly sometimes they will appear on top sometimes under it hard to say which one will take priority. i agree with showtext it is so helpful i didnt realize how much i used it until it was not available in html5. i hope that is one of the first things added in the new version.