Texture tiling

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
arfa
Posts: 244
Joined: Tue Dec 23, 2008 8:15 pm
Location: New Zealand

Texture tiling

Post by arfa »

I have a 256x128px texture image for a backdrop. I draw a rectangle completely covering my 320x240 work area and set fill as 'image texture/tile'. Why does only 110 wide of the tile show? And the resolution is :x.

I have tried starting with a smaller rectangle and scaling up, the reverse of that, working on frame 0 etc. whatever. It seems a pretty simple task that works OK in AS5. Is this a version bug or have I missed a setting somewhere or something really simple?
meltedtoons
Posts: 159
Joined: Mon Oct 05, 2009 6:06 am

Post by meltedtoons »

could u explain a bit more? I donno what problem you are have, the resolution or the amount of pictures getting tiled

SUGGESTION: I donno if this is this is what ur talking about but, why don't you just import the image to AS instead of tilling?
arfa
Posts: 244
Joined: Tue Dec 23, 2008 8:15 pm
Location: New Zealand

Post by arfa »

Sorry if I wasn't so clear.

On a vector layer draw a rectangle.
Fill that shape using "image texture" - select 'tiling.'

Here is a sample file:
http://www.BuddhaMind.info/as/bits/tiling_test.anme

Here is the sample image I used with that file:
Image

Here is the settings window:
Image

Here is the render of an almost 320x240 rectangle:
Image

Either there is a bug or I am missing something REALLY simple :?
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

It is a bug. In AS 5.6 didn't happen.
-G
meltedtoons
Posts: 159
Joined: Mon Oct 05, 2009 6:06 am

Post by meltedtoons »

maybe use bigger pictures.
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Post by jahnocli »

meltedtoons wrote:maybe use bigger pictures.
Er, I don't think that is an answer -- the problem is that the program is not tiling the images. Bigger pictures won't make any difference to that.
You can't have everything. Where would you put it?
meltedtoons
Posts: 159
Joined: Mon Oct 05, 2009 6:06 am

Post by meltedtoons »

i think its a glitch then
arfa
Posts: 244
Joined: Tue Dec 23, 2008 8:15 pm
Location: New Zealand

Post by arfa »

I have reported it as a bug.

The work-around I used is to tile it in another prog and import that image. Messy but no big deal. I can only presume it will get fixed in the next update of the prog.?

Yes, Genete, it works fine in 5.6
arfa
Posts: 244
Joined: Tue Dec 23, 2008 8:15 pm
Location: New Zealand

Post by arfa »

I don't use tiling that often but it came up again as an option. Grrrrr.

I played around and have a workaround - albeit a slightly messy one.

In the file source code there is a line giving the path to the image texture - in the example I posted it will be: */*/tki_logo.gif" 1

On the line immediately above is '10'
Change this to '6' and it works :o -- why? No idea. It does mess up the interface a bit but - it works. I haven't tested a lot in a complex file, especially rendering, but figure it will pass muster.
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

I reported it as bug but LM clarifies it as not a bug:
It's true that the texture effect doesn't work the same as in version 5, but it's better now and the behavior is correct. Take a look at the two new screenshots I added. When the Select Shape tool is active you get a pair of red circle handles that let you position, stretch, and rotate the texture inside the shape. The two options come into play when you stretch the texture so that it is smaller than the shape.

"Tile" means the texture will repeat over and over like my first screenshot. "Don't Repeat" means the texture will not repeat, as in my second screenshot. "Stretch" is no longer the correct term, since the control handle lets you stretch the texture either way - the new behavior is really about tiling or not tiling.
Image
arfa
Posts: 244
Joined: Tue Dec 23, 2008 8:15 pm
Location: New Zealand

Post by arfa »

Yes, I see it now. I have been using 7Feet's modified select_shape (with Rudiger's add). It is VERY useful to have those little handles.

An easy enough matter to rename that version. The main feature is setting shape levels. It doesn't seem to intefere with the sizing set by the LM version.

thanks Genete.
Post Reply