Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

texture across multiple prim

Amaranthim Talon
Voyager, Seeker, Curious
Join date: 14 Nov 2006
Posts: 12,032
03-12-2009 05:24
I searched but perhaps did not have good parameters to return viable results... I am fairly certain I had seen a Torle vid on centering a texture over multiple prims so that it appeared whole or unified- any pointers?

What i have is two pillows i want to look more or less like one when lined up- i have tweaked repeats and offset but i am sure i saw a Torley vid on it. TIA peeps.
_____________________
"Yield to temptation. It may not pass your way again. "
Robert A. Heinlein




http://talonfaire.blogspot.com/

Visit Talon Faire Main:
http://slurl.com/secondlife/Misto%20Presto/216/21/155- Main Store

XStreets: http://tinyurl.com/6r7ayn
VonGklugelstein Alter
Bedah Profeshinal Tekstur
Join date: 22 Dec 2007
Posts: 808
03-12-2009 05:55
At the most basic level you would use half of a texture on each piece.

Make the texture repeat 50% on each then make the offset +0.25 and the joining piece Negative (-0.25%)

that will give you one texture across 2 prims.

Also see if you can locate a texture pattern that is used to line up textures. There is several versions floating around. Its a grid with numbered squares that help you calculate your offsets.

Sometimes if you select both sides and set a repeat this will work for the surfaces selected, but I have not looked into the reason why sometimes this method does not work.
_____________________
Amaranthim Talon
Voyager, Seeker, Curious
Join date: 14 Nov 2006
Posts: 12,032
03-12-2009 06:51
Thank you.
_____________________
"Yield to temptation. It may not pass your way again. "
Robert A. Heinlein




http://talonfaire.blogspot.com/

Visit Talon Faire Main:
http://slurl.com/secondlife/Misto%20Presto/216/21/155- Main Store

XStreets: http://tinyurl.com/6r7ayn
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
03-12-2009 10:19
Amaranthin

There is a simple formula for finding the repeats.

prim size divided by 10 multiply by 1000.

As for the offsets, I have a formula for this as well but you might want to try your hand at a texture alignment patern first. There is a link somewhere that Chosen added in a post but I cannot find the thread.
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
03-12-2009 12:29
For more complex/higher prim builds where you want one texture to align perfectly across many prims, especially if they are in odd shapes and whatnot, there are tools available as well.

I had one a long time ago, but can't remember what it's called, but it seems this is similar:
http://xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=355871

By hand, the math can get annoyingly complex for what seems like something that should be very simple. Small builds or walls though are relatively easy to get very close to perfect, usually.
_____________________
Tutorials for Sculpties using Blender!
Http://www.youtube.com/user/BlenderSL
Lizzie Longfall
Registered User
Join date: 19 Feb 2009
Posts: 9
03-19-2009 09:40
From: VonGklugelstein Alter
At the most basic level you would use half of a texture on each piece.

Make the texture repeat 50% on each then make the offset +0.25 and the joining piece Negative (-0.25%)

that will give you one texture across 2 prims.

Also see if you can locate a texture pattern that is used to line up textures. There is several versions floating around. Its a grid with numbered squares that help you calculate your offsets.

Sometimes if you select both sides and set a repeat this will work for the surfaces selected, but I have not looked into the reason why sometimes this method does not work.


Hi there

I've seen an example of this grid you mentioned in some magazine I downloaded, but was wondering where you can find it. Would you happen to know where I can find one?
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
03-19-2009 10:35
From: Lizzie Longfall
Would you happen to know where I can find one?

Here's the one I use: /109/45/214824/1.html
_____________________
.

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.
Lizzie Longfall
Registered User
Join date: 19 Feb 2009
Posts: 9
03-19-2009 10:48
From: Chosen Few
Here's the one I use: /109/45/214824/1.html


Excellent Thanks much. :)
BarbaraEllen Galsworthy
Registered User
Join date: 10 Nov 2005
Posts: 45
03-20-2009 08:15
From: Larrie Lane
Amaranthin

There is a simple formula for finding the repeats.

prim size divided by 10 multiply by 1000.

As for the offsets, I have a formula for this as well but you might want to try your hand at a texture alignment patern first. There is a link somewhere that Chosen added in a post but I cannot find the thread.


Do these formulas pertain to the Default mapping or the Planar mapping? I noticed these mappings are quite a bit different when projected onto the prim faces.
Fenix Eldritch
Mostly harmless
Join date: 30 Jan 2005
Posts: 201
03-20-2009 13:06
/109/45/214824/1.html

[Edit] Doh, I jumped the gun... that link was already posted.... yesterday. My bad.
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
03-20-2009 13:20
From: BarbaraEllen Galsworthy
Do these formulas pertain to the Default mapping or the Planar mapping? I noticed these mappings are quite a bit different when projected onto the prim faces.


Default mapping.

I also should of put in my original post that the formula is;

prim size divided by texture size multiply by 1000

Edit; For planar I need to add another formula as the one I originally added was incorrect and planar is a little diferent as we all know from the default mapping.
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
03-20-2009 14:22
From: Amaranthim Talon
I searched but perhaps did not have good parameters to return viable results... I am fairly certain I had seen a Torle vid on centering a texture over multiple prims so that it appeared whole or unified- any pointers?

What i have is two pillows i want to look more or less like one when lined up- i have tweaked repeats and offset but i am sure i saw a Torley vid on it. TIA peeps.



With regards to the 2 pillows the OP mentioned here is the formula for both repeats and offsets to align a texture across 2 prims.

Repeats; prim size / texture size * 1000
offset;
prim 1 = repeat / 2 - 500
prim 2 = repeat / 2 + 500

So to put it in real terms lets take 2 prims that have total length of 4.75 and each prim is 2.375 long

the formula for the first prim (left prim)
repeat: 2.375 / 4.75 = 0.5 * 1000 = 500
offset: 500 /2 = 250 - 500 = -250

2nd prim (right prim)
repeat: 2.375 / 4.75 = 0.5 * 1000 = 500
offset: 500 /2 = 250 + 500 = 250

Note; when entering the repeats and offsets using these formulas you need to enter them in SL after the decimal point. So 0.500 repeat and -0.250 offset.

The formula for offsets on multiple prims can also be found but the formula above will always be the same for the first and last prim in a sequence, the other prims require an additional formula for their offsets.
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
Planar Repeats
03-20-2009 15:58
To follow on from my previous post regarding Planar the formula is actually much simpler to find the repeats than default mapping.

the formula is;

10 divided by overall size multiply by 100.

the overall size is the total size of the prims/wall or area to be textured.

so for example a 25 metre wide wall by 12 metres high;

10/25=0.4*100=40 (input this as 0.040 Horizontally)
10/12=0.833*100=83.33 (input this as 0.083 Vertically)

One advantage of using Planar to texture multiple prims is that all prims in the set will have the same repeats regardless of size. With default mapping you would need to find the repeats for all prims that were of a different in size.
Seshat Czeret
Registered User
Join date: 26 May 2008
Posts: 152
03-21-2009 02:02
Here's a tutorial with pics about Chosen Few's wonderful texture alignment grid.

http://seshat-czeret.blogspot.com/2008/12/texture-alignment-pattern.html
_____________________
My blog: http://seshat-czeret.blogspot.com/
My shop: http://slurl.com/secondlife/Achlya/199/185/102
Angelique Gausman
♪ Sassy n Spunky ♪
Join date: 25 Jul 2007
Posts: 46
03-30-2009 14:33
From: VonGklugelstein Alter
At the most basic level you would use half of a texture on each piece.

Make the texture repeat 50% on each then make the offset +0.25 and the joining piece Negative (-0.25%)

that will give you one texture across 2 prims.

Also see if you can locate a texture pattern that is used to line up textures. There is several versions floating around. Its a grid with numbered squares that help you calculate your offsets.

Sometimes if you select both sides and set a repeat this will work for the surfaces selected, but I have not looked into the reason why sometimes this method does not work.


Can someone teach me how to put 1 texture into 3 prims, to make it looks like 1. I am trying to make a property partition screen (so I won't be looking at objects strewn all over adjacent to my land). Thanks much!! ;)
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
03-30-2009 14:42
From: Angelique Gausman
Can someone teach me how to put 1 texture into 3 prims, to make it looks like 1.

Assuming you mean three prims arranged horizontally, here's what to do:

1. Apply your texture to all three prims.

2. Now, you want a third of the texture to appear on each prim, right? OK, so set the horizontal repeats per face to .333 on all three prims.

3. To align them, you'll want to offset the left and right panels each by a third, and you'll want to keep the center panel centered. So set the horizontal offset to -.333 on the left prim, to 0 on the center prim, and to .333 on the right prim.

That's it, you're done.


If you're stacking the prims vertically instead of horizontally, make the adjustments to the vertical repeats and offsets instead of the horizontal ones.
_____________________
.

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.
Angelique Gausman
♪ Sassy n Spunky ♪
Join date: 25 Jul 2007
Posts: 46
05-28-2009 09:27
From: Chosen Few
Assuming you mean three prims arranged horizontally, here's what to do:

1. Apply your texture to all three prims.

2. Now, you want a third of the texture to appear on each prim, right? OK, so set the horizontal repeats per face to .333 on all three prims.

3. To align them, you'll want to offset the left and right panels each by a third, and you'll want to keep the center panel centered. So set the horizontal offset to -.333 on the left prim, to 0 on the center prim, and to .333 on the right prim.

That's it, you're done.


If you're stacking the prims vertically instead of horizontally, make the adjustments to the vertical repeats and offsets instead of the horizontal ones.


I made a flag using Torley's tutorial - the first flag I made (Lone Star State) turned out well. Right not I am trying to make an Indonesian flag, which consist of just red and white in 1 texture. Somehow I could not get it aligned correctly; the front's and the back's image flip-flopped. So I have now, a falg of Indonesia on one side and a flag of Poland on the reverse side. Can someone teach me please how to correct it? Thanks much! :D
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
05-28-2009 10:43
From: Angelique Gausman
I made a flag using Torley's tutorial - the first flag I made (Lone Star State) turned out well. Right not I am trying to make an Indonesian flag, which consist of just red and white in 1 texture. Somehow I could not get it aligned correctly; the front's and the back's image flip-flopped. So I have now, a falg of Indonesia on one side and a flag of Poland on the reverse side. Can someone teach me please how to correct it? Thanks much! :D

When you are working on the flag (that is, you have the Edit window open and have selected the flag), click the radio button that says "Select Texture." Then click on the face that has the Polish flag, and replace that texture with your Indonesian flag. Use the normal Size and Offset controls and the "Flip Vertical" or "Flip Horizontal" checkboxes in the Texture tab to orient the Indonesian texture the way you want it. That's all there is to it. Quite easy. ;)
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Angelique Gausman
♪ Sassy n Spunky ♪
Join date: 25 Jul 2007
Posts: 46
05-28-2009 10:50
From: Rolig Loon
When you are working on the flag (that is, you have the Edit window open and have selected the flag), click the radio button that says "Select Texture." Then click on the face that has the Polish flag, and replace that texture with your Indonesian flag. Use the normal Size and Offset controls and the "Flip Vertical" or "Flip Horizontal" checkboxes in the Texture tab to orient the Indonesian texture the way you want it. That's all there is to it. Quite easy. ;)


Thank you Rolig, I will try it tonight when I get home ... I hope it will work :)