|
Youpee Uriza
Registered User
Join date: 18 Mar 2007
Posts: 14
|
09-17-2007 11:03
Hi All, Most of you know how a lucky chair works. It has a dynamic text being displayed every 20 mins. It is an alphabet.
I want to understand how to make this dynamic text. Is this texutres? Do we need to import 26 textures of all characters?
How is it embedding the alphabet in the chair. Any comments are valuable.
Thanks Youpee
|
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
09-17-2007 11:10
Need a little clarification. I don't pay attention to lucky chairs much, but most of them just use hovertext that I've seen.
Are you needing one that has the "The lucky letter is: " as a texture on the chair itself?
What most do for this kind of text is they have a prim for the letter, and a single texture map that has all alphabetic characters on it spaced evenly, and a script to offset the texture to the correct letter.
For hovertext you just change the llSetText
|
|
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
|
09-17-2007 11:13
Check out the xytext scripts on the wiki library. http://rpgstats.com/wiki/index.php?title=ScriptLibraryIn short - use 1 texture for all your letters and use the texturescale and textureposition to just display the letter you want.
|
|
Youpee Uriza
Registered User
Join date: 18 Mar 2007
Posts: 14
|
Displaying dynamic texts
09-17-2007 11:29
Yes.. you are right.. XyText will do the work.
Thanks lotsssssssss
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
09-17-2007 23:16
Technically you only need one texture for a simple alphabet. And then smartly use the texture offset to display the letter you want.
xytext does just that. except with more textures.
|
|
Doofus Mayo
Registered User
Join date: 7 Jun 2007
Posts: 33
|
09-18-2007 03:29
Plus using one texture looks a lot better, cause the client has either downloaded it or not. You can read the whole sign at the same time instead of some letters being rezzed and other still a blur. Much nicer solution.
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
09-18-2007 04:56
... thinking of that - wouldn't it be nice to be able to put more than one texture on a prim's side?
|