[Opensim-users] Assets 101

jon cundill jcundill at gmail.com
Fri Feb 6 21:27:22 UTC 2009


Ok
I'll set-up a forge project and work this up into a Region Module.

In the meantime if anyone wants to play I've attached my original hack to
this mail as a patch .

Note, this is very much pre-alpha code, almost certainly full of bugs,
guaranteed to trash you opensim install and generally ruin your life.

Only works with oar files at the moment. Trick to make this work is to strip
the file extension of the filename requested to be uploaded or downloaded
and see what we have left - if we still have a filename and an extension
then assume OAR file upload/download rather than terrain file. So
house.oar.raw will assume you want an oar file and house.raw will assume you
want a raw file.

There is hardly any code needed to get this going - as Diva has mentioned in
the past, the awesome module architecture the devs have put in place make it
real easy to do these things in opensim

Jonc


2009/2/6 Robert Klein <rtkwebman at gmail.com>

>
> Way to go Jon!!!  Maybe put this on the forge as Justin suggests below? We
> can always post updates here on the list as things progress.
>
> -Robert
>
>
> jon cundill wrote:
> >
> > Hi
> > Just knocked together a quick and dirty prototype for this, and using the
> > Terrain Upload/ Download for OAR files actually works quite well.
> >
> > - Noticed Limitations
> >
> > Viewer needs you to have .raw on the end of the filename. So you end up
> > downloading and uploading files named house.oar.raw rather than
> house.oar.
> >
> > Maybe the Hippo Viewer people could do something about this if this goes
> > further.
> >
> > It is slow, and little feedback is given to the user until it has
> > completed,
> > so the 2.4 Mb house from the Free Assets page takes around 4 mins to
> > upload
> > or download on a localhost standalone.
> >
> > I have regions with 30Mb oar files - that would take nearly half an hour
> > to
> > transfer, probalby longer across the internet.
> >
> > You can probably send Estate Messages with some progress indication to
> > alleviate this.
> >
> > As well as OAR files, this technique can also probably be used to
> > upload/download R32 or BMP type terrain file formats instead of LLRAW
> ones
> > -
> > that might be useful.
> >
> > If there is interest in pursuing this, and unless someone beats me to it,
> > I'll tidy up the code and submit a patch for review
> >
> > jonc
> >
> >
> >
> >
> >
>
> --
> View this message in context:
> http://n2.nabble.com/Assets-101-tp2248830p2284815.html
> Sent from the opensim-users mailing list archive at Nabble.com.
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20090206/5b8087d8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UploadDownload.patch
Type: application/octet-stream
Size: 7192 bytes
Desc: not available
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20090206/5b8087d8/attachment.obj>


More information about the Opensim-users mailing list