Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Noobie Question

Rachael Karlfeldt
Registered User
Join date: 2 Dec 2005
Posts: 19
01-19-2006 05:31
How do I link prims to apply one texture over all of them?

I've tried with 8 "panels" to form a floor, but it just tiles.

Thanks!
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
01-19-2006 05:56
In the editor window, click the "More" button. Then go to the texture tab, and you'll see a bunch of numbers for repeats per face and offsets. Use the numbers to to control what portion of the image you want to show on each prim.

For example, if you're spreading the texture evenly on a 2x2 configuration of 4 cubes, you'd set the repeats per face to .5 on both horizontal and vertical for all. This will cause 1/4 of the image to be visible on each one. Then you'd set the offsets to horizontal and vertical combinations of +/- .25 so that the correct quadrant shows on each prim. The upper left corner would be offset by -.25 on both horizontal and vertical. The lower right would be just the opposite, .25 on both. The upper right would be .25 horizontal and -.25 vertical. The lower left would be -.25 horizontal and .25 vertical.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Rachael Karlfeldt
Registered User
Join date: 2 Dec 2005
Posts: 19
Thank you!
01-19-2006 10:17
I saw that in another post.

I shall get ot work on it!
Travis Lambert
White dog, red collar
Join date: 3 Jun 2004
Posts: 2,819
01-19-2006 10:39
To take this a step further (and more complex)...

Is there a simple formula for computing the repeats per face & offset settings on a more complicated link set?

For an extreme example, say I had a set of 1200 equally sized faces, laid out in a 40 (width) x 30 (height) fashion, and I wanted to distribute a single texture across that whole set (assuming resolution wasn't an issue):

Is there a simple formula to compute the repeats without too many braincells committing suicide? :D
_____________________
------------------
The Shelter

The Shelter is a non-profit recreation center for new residents, and supporters of new residents. Our goal is to provide a positive & supportive social environment for those looking for one in our overwhelming world.
Kurshie Muromachi
Primtastic!
Join date: 24 Apr 2005
Posts: 278
01-19-2006 10:51
From: Travis Lambert
To take this a step further (and more complex)...

Is there a simple formula for computing the repeats per face & offset settings on a more complicated link set?

For an extreme example, say I had a set of 1200 equally sized faces, laid out in a 40 (width) x 30 (height) fashion, and I wanted to distribute a single texture across that whole set (assuming resolution wasn't an issue):

Is there a simple formula to compute the repeats without too many braincells committing suicide? :D


Sounds like you are referring to the "Repeats Per Meter" at the bottom left of the texture tab but I could be misunderstanding your question.

Edit: Oh ok. You are talking about like laying a huge billboard picture across 40 prims and still keeping the picture as a whole?
_____________________
Kurshie Muromachi
Primtastic!
Join date: 24 Apr 2005
Posts: 278
01-19-2006 12:25
I tried this out anyways. hehe. Here's what I did to calculate it...

6x 2x2 cubes (3 horizontal, 3 vertical)

Since 6 meters is the total length but the each prim is 2 meters I did (2 / 6) to get 0.33. I used 0.33 as the magic value for both the repeats and offsets. Then came having to add (-) negatives and 0.00 values to the prims offsets where needed so I ended up with something mapped out like this...

Keeping all the repeats set to a positive 0.33 value I adjusted the offsets like so...

[H: -0.33 / V: -0.33] [H: 0.00 / V: -0.33] [H: 0.33 / V: -0.33]

[H: -0.33 / V: 0.00] [H: 0.00 / V: 0.00] [H: 0.33 / V: 0.00]

[H: -0.33 / V: 0.33] [H: 0.00 / V: 0.33] [H: 0.33 / V: 0.33]

I restretched the prims evenly out after doing the above and the textures stayed seamed up.
_____________________
Ben Bacon
Registered User
Join date: 14 Jul 2005
Posts: 809
01-20-2006 04:40
Good work, Kurshie - but are you aware that you can change the repeats individually horizontally and vertically? Repeats per meter sets both directions, but you can use Repeats for face horizontal and vertical for non-square arrangements.

So if we have a 5 prims across, 4 prims down arrangement - you would work as follows.

Going left-to-right: 1 texture spread over 5 prims = 1/5 of the texture on each prim.
1/5 = 0.2
So H repeats will be 0.2 for each prim.
Because 5 is an odd number, the middle column will be dead-center with an H offset of 0.0.
Each prim to the right will have 0.2 added (as Kurshie, did), and each prim to the left will have 0.2 subtracted.
Giving H Offset values from left to right of -0.4, -0.2, 0.0, 0.2, 0.4

Going top-to-bottom:1 texture spread over 4 prims = 1/4 of the texture on each prim.
1/4 = 0.25
So V repeats will be 0.25 for each prim.
Because 4 is an even number, there is no middle row. The 2nd row will be half a row height above center (i.e. -0.125), and the 3rd row wil be half a row height below center (0.125). Note: 0.125 is just half of our row height 0.25.
Each row above or below the two middle rows will have the row height (0.25) subtracted or added, respectively.
Giving V Offset values of -0.375, -0.125, 0.125, 0.375

Putting this together gives (stealing Kurshie's notation)
CODE
[H: -0.4 / V: -0.375]   [H: -0.2 / V: -0.375]   [H: 0.0 / V: -0.375]   [H: 0.2 / V: -0.375]   [H: 0.4 / V: -0.375]
[H: -0.4 / V: -0.125] [H: -0.2 / V: -0.125] [H: 0.0 / V: -0.125] [H: 0.2 / V: -0.125] [H: 0.4 / V: -0.125]
[H: -0.4 / V: 0.125] [H: -0.2 / V: 0.125] [H: 0.0 / V: 0.125] [H: 0.2 / V: 0.125] [H: 0.4 / V: 0.125]
[H: -0.4 / V: 0.375] [H: -0.2 / V: 0.375] [H: 0.0 / V: 0.375] [H: 0.2 / V: 0.375] [H: 0.4 / V: 0.375]
Kurshie Muromachi
Primtastic!
Join date: 24 Apr 2005
Posts: 278
01-20-2006 08:08
Ahh! Good thinking Ben ;) I didn't even consider for more than 3 in a row/column as well as a set with no middle row/column. Thanks!
_____________________