putting an image on a xyzzytext prim
|
|
thekarthic Balbozar
Registered User
Join date: 21 Sep 2007
Posts: 8
|
05-31-2009 18:52
i've got a 5 high object of xyzzytext prims, (5 prims, 5 high, making 50 character plate, 10x5)
i'm wanting to display an image on these 5 prims, without modifying thier size, etc
sometimes it might be text, sometimes image.... does anyone know the texture repeats, offsets to make this work for each face for a straight 512x512 image ?
thanks
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
05-31-2009 22:40
You will have had a little prim setup script to make those prims, with a few llSetPrimitiveParams lines in it. Those two vectors after the texture UUID are the offsets and repeats for each face. The first number before the UUID is the face number.
You can do this from the editor too. To see which face is which, have the Advanced menu enabled, edit the prim, click the Select Texture button, click on a face, and press Ctrl-Alt-Shift-T. That will tell you the face number. Look in the texture tab to see the offsets and repeats.
|
|
thekarthic Balbozar
Registered User
Join date: 21 Sep 2007
Posts: 8
|
06-01-2009 16:46
that's all great and nonhelpful not new info.. but thoes offsets and repeats are relevent to the grid array used by the text/image system..... and have nothing to do with exact offsets/repeats of a square image.
they're totally different, and i would hope you'd think that i'd of already tried that
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
06-01-2009 16:52
The tiling offsets you need will be very complex and may not be possible to set precisely enough to avoid distortion. I recommend you just make all five prims 100% transparent and add a sixth prim for the image. That's what other people generally do.
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
06-01-2009 16:58
From: thekarthic Balbozar that's all great and nonhelpful not new info.. but thoes offsets and repeats are relevent to the grid array used by the text/image system..... and have nothing to do with exact offsets/repeats of a square image.
they're totally different, and i would hope you'd think that i'd of already tried that If you already know all the answers then why are you asking? With the offsets and repeats in hand, you can do two things. One is to do the arithmetic to make your textures match the offsets used by the text scripts. The other thing you can do is record those numbers, change the prims to offsets and repeats that are easy enough to fit into your brain, then change them back to the numbers required for the text script when you want to display text again. If these things are too hard to do, you could overlay an additional prim atop the others for displaying images, and hide that prim when you want to display text. Seriously, this is not rocket science.
|
|
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
|
06-01-2009 17:01
From: thekarthic Balbozar that's all great and nonhelpful not new info.. but thoes offsets and repeats are relevent to the grid array used by the text/image system..... and have nothing to do with exact offsets/repeats of a square image. they're totally different, and i would hope you'd think that i'd of already tried that My goodness, you sound really annoyed that someone tried to help you! I mean, yeah, the answer wasn't what you wanted, but damn them for trying, right? .
|
|
thekarthic Balbozar
Registered User
Join date: 21 Sep 2007
Posts: 8
|
06-01-2009 17:02
obviously you dont understand the question... i believe my question was...
"does anyone know the texture repeats, offsets to make this work for each face for a straight 512x512 image ?"
the question still remains
|
|
thekarthic Balbozar
Registered User
Join date: 21 Sep 2007
Posts: 8
|
06-01-2009 17:06
From: Argent Stonecutter The tiling offsets you need will be very complex and may not be possible to set precisely enough to avoid distortion. I recommend you just make all five prims 100% transparent and add a sixth prim for the image. That's what other people generally do. that's the compromise i'm trying to fix at the moment....
|
|
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
|
06-01-2009 17:11
From: thekarthic Balbozar obviously you dont understand the question... i believe my question was... "does anyone know the texture repeats, offsets to make this work for each face for a straight 512x512 image ?" the question still remains Dude, each cell is a prim face. No offsets necessary. You don't have to be an ass  Feel free to gtfo the forums. .
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
06-01-2009 18:11
Been there, done that, discovered that you have to compromise too much to make it not suck. The edges will not line up.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
06-02-2009 01:54
and while I don't know the answer offhand, if you're really that bored, please feel free to use the wonder alignment texture that Chosen Few posted a link for over in Texturing Tips... it really does make aligining large textures over multiple prims with odd shapes SO much easier.
and on a side note, there is no need to be nasty to people trying to help. not only is it rude and obnoxious, but lowers your chances of getting useful help later.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|