[sldev] [VWR] "web textures" and "text on a prim" are separate
issues (Re: What about Dillo)
Argent Stonecutter
secret.argent at gmail.com
Tue Nov 6 12:09:36 PST 2007
There's really two separate problems that are being addressed in that
message of Farallon's. Web textures, and text on a prim.
On 06-Nov-2007, at 12:51, Robin Cornelius wrote:
> I would quite like to try this, perhaps using the description field of
> the prim as the web address, eg if it starts http:// then send a
> request
> to mozlib BUT i just can't see how to put all the peices together as I
> am not familiar enough with openGL and the inner workings of the
> viewer.
For custom text on a prim, you need to be able to render the text
from LSL without involving an external webserver. You need to be able
to pass a string created from LSL... whether HTML, SVG, or
whatever... and have it rendered.
> I presume that we actually need another prim flag to say web
> texture as
> i assume the description field is fetched on demand rather than
> streamed.
Just pick four of UUIDs (upload a couple of textures and copy their
UUIDs) two each for "web texture" and "text on a prim". Then in the
client if you see those textures, you look at the prim they're on and
pull the URL (for the web texture) or HTML (for text on a prim) from
the description, and use that instead of the texture. Why two? So
that you can switch from one to the other to tell the client they
need to refresh.
And then test it with hundreds of DIFFERENT URLs and HTML fragments
like that in view, and see if the viewer survives.
More information about the SLDev
mailing list