[sldev] WTF happened to my texture?
Alan Grimes
agrimes at speakeasy.net
Tue Oct 9 15:45:07 PDT 2007
SL has a problem with text.
You can't work with it affordably in-world. You have to pay to upload
each one and then to read it, you have to sit and wait for 20 minutes
(okay 5..) for the damn thing to rez before you can read it.
The simpleton's solution to that is to upload a single texture, a
codepage, and then create letters by mapping different parts of that
codepage to prims. -- too obvious, huh?
Alright, I fired up my old DOS computer. (Yes, I have a DOS computer)
and snagged myself my favorite font library.
I then wrote a program to extract the code page I wanted. 437 FOREVER!!!
It produced a nice little bmp file, 4158 bytes to be exact...
SL didn't like that so I made a PNG of it so that it wouldn't get
corrupted, 3193 bytes. -- pretty nice, huh? =P (see attached, have a
look at it and then tell me 437 isn't the best codepage ever!!!).
(image specs: 128 x 256 x 1 bit)
The whole point is to make an in-world font system that will be
__FAST__, I mean rez as much text as you like in microseconds!!!
I was thinking oh boy, this'll make me a fortune in lindens!!! --
ignoring the fact that the linden is devaluing right along with the
dollar. =(
Then I PAID LINDENS TO UPLOAD IT!!!! =|
You see, this scheme only works if the font can be uploaded and relayed
to the client in a lossless way. -- being only 3kb, this didn't seem
like an unreasonable demand...
But what I got back seemed to be 256x512, and then downsized to the
origional... It also seems to have been converted to 24 bit, -- an
unspeakable waste for this application, and finally, some kind of
smoothing operation was performed!!!! -- It may just be that the
GL_LINEAR texture filter was left on... =\
The final result is totally unusable as a font system. =(
When I cough up L$10 to upload a texture I damn well expect that what I
get back is what I uploaded!! =\
BTW, Ron Paul has an in-world pavilion.
--
Buy Ron Paul's Money! =)
http://www.libertydollar.org/ld/ronpauldollar
Soundest investment on the planet!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iso437.png
Type: image/png
Size: 3193 bytes
Desc: not available
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20071009/62c05c71/iso437.png
More information about the SLDev
mailing list