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.

  • "sachagriffin" started this thread

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

1

Monday, October 31st 2011, 7:26pm

Feature Request: image repeat-x repeat-x

Stretching works in both flash and html5, repeat-x repeat-y works in html5 via a perfect calculation of crop+width but it's still somewhat of a black art.
Things like xml thumbnails work much better if you don't have to create more than one plugin for a thumbnails frame for example.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

mindlessboss

Professional

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

2

Tuesday, November 1st 2011, 1:46am

Yes! I join
It's already in feature request ;-)
Feature request - plugin image fill rule

But still no news *rolleyes*

Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

tour3d

Beginner

Posts: 9

Location: Vologda

  • Send private message

3

Monday, December 23rd 2013, 5:48pm

for repeat image you can use this action:

Source code

1
<action name="repeat_image">set(maskchildren, true);if(repeat-x, div(max_i, pixelwidth, imagewidth);, set(max_i, 1));if(repeat-y, div(max_j, pixelheight, imageheight);, set(max_j, 1));for(set(i, 0), i LT max_i, inc(i),	for(set(j, 0), j LT max_j, inc(j),		txtadd(layername, get(name), '_repeat', get(i), get(j));				addlayer(get(layername));		copy(layer[get(layername)].parent, name);		copy(layer[get(layername)].url, url);		set(layer[get(layername)].keep, true);		set(layer[get(layername)].enabled, false);				set(layer[get(layername)].align, lefttop);		set(layer[get(layername)].edge, lefttop);		mul(layer_x, i, imagewidth);		mul(layer_y, j, imageheight);		copy(layer[get(layername)].x, layer_x);		copy(layer[get(layername)].y, layer_y);		);	);set(onloaded, '');set(type, container);</action>



set repeat_image() to onloaded layer or plugin and add repeat-x="true" repeat-y="true" settings

for example:

Source code

1
<layer name="skin_layer" url="skin_wood_texture.jpg" repeat-x="true" repeat-y="true" width="100%" height="100%" onloaded="repeat_image();">

This post has been edited 3 times, last edit by "tour3d" (Dec 23rd 2013, 6:23pm)


Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

4

Monday, December 23rd 2013, 9:56pm

No, it's not the same.

Andrey.
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN