<div>Thanks for all of the ideas everyone. I will look into libOMV to see if it can help us. Some of the members on this project are Graduate Compter Science students (including myself since I got the task of implementing this). So hopefully we can work with the code without too much hassle. If we have any more questions, we'll be sure to ask.<br>
</div><div></div><div>-- Steve</div><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 4:08 PM, James Stallings II <span dir="ltr"><<a href="mailto:james.stallings@gmail.com">james.stallings@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Steve,<br><br>It sounds as if you probably are planning to reload a saved object after the fact of modification. In that event, you wont need to modify the texture in the asset database, nor muck about with databases and their tables.<br>

<br>Sounds like a pretty interesting project :) but as Teravus says, you will likely have to use libOMV (<a href="http://openmetaverse.org" target="_blank">http://openmetaverse.org</a>) to decode the texture entry in the xml file.<br>
<br>
You will need someone who is a fairly proficient coder to work with this library - all the details such a person will need can be found at the site referenced above.<br><br>If there is any way in which I might further assist you, please feel free to give me a shout.<br>

<br>Cheers!<br><br>James/Hiro Protagonist<div><div class="h5"><br><br><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 3:00 PM, Melanie <span dir="ltr"><<a href="mailto:melanie@t-data.com" target="_blank">melanie@t-data.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
The asset database has nothing to do with what you want. You can<br>
decode and recode the texture entry quite easily, and just replacing<br>
the UUID is trivial.<br>
<font color="#888888"><br>
Melanie<br>
</font><div><div><br>
Stephen Carroll wrote:<br>
> Thanks for the information Melanie and James.<br>
> So you believe the better way to do this is provide a web for to directly<br>
> modify the MySQL database that holds the assets information? Admittedly, I<br>
> know little about MySQL and so I knew I could work with the xml files.<br>
> Perhaps some more information about my project is in order. I am working<br>
> with a team of college students and faculty at my university to create a<br>
> website that will allow building a virtual area in a virtual world. For<br>
> example, a prebuilt object would exist in an avatars inventory on OpenSim.<br>
> This object would be a prebuilt building, such as a museum, classroom,<br>
> conferenceroom, etc. We call this object a template. The template would also<br>
> have locations on the wall reserved for pictures. So the user would choose<br>
> through the website that they want to use the museum template, with specific<br>
> already in OpenSim images for specific image locations. Then the user would<br>
> click a "build" button that rezzes the customized template.<br>
> To accomplish this, each template has already been built in OpenSim and then<br>
> saved into its xml format (using the save xml2 command). When the user<br>
> selects what template and what textures they want to use through the website<br>
> interface, a program would go through the xml file and replace the default<br>
> template's texture information in that file with the texture information<br>
> related to what was chosen on the website. This creates a new xml file that<br>
> contains all of the information necessary to rez a customized building.<br>
> As I already have rezzing the template in OpenSim through the website and<br>
> saving the chosen pictures through the website, all I thought was needed was<br>
> replacing the texture information in the template xml file with the texture<br>
> information chosen from the website. That is why I was wondering where the<br>
> texture information is stored in the xml file. But it sounds like you are<br>
> suggesting I deal directly with the asset database instead of changing the<br>
> xml file? Are all linked prims that make up an object stored neatly in the<br>
> database and is the texture UUID also stored neatly in the database with the<br>
> linked prims that make up the object? To me it sounds like directly<br>
> modifying the database is more work than necessary but what do the rest of<br>
> you think?<br>
> Thanks,<br>
> Steve<br>
> On Wed, Aug 5, 2009 at 3:01 PM, Melanie <<a href="mailto:melanie@t-data.com" target="_blank">melanie@t-data.com</a>> wrote:<br>
><br>
>> That string is a base64 representation of the binary texture entry,<br>
>> which contains texture, color, offset, rotation, scale, etc.<br>
>><br>
>> Melanie<br>
>><br>
>> Stephen Carroll wrote:<br>
>> > Hello,<br>
>> > My name is Steve and I am working on a web interface that will allow<br>
>> > changing textures on prims in OpenSim. I have got a web interface to<br>
>> process<br>
>> > the save xml2 and load xml2 commands thinking I could modify the xml file<br>
>> > itself to set the texture UUID to what is chosen on the website. I am<br>
>> > confident that I can write a program to modify the xml file, but I can<br>
>> not<br>
>> > see where the texture UUID is stored in the xml file. Looking through the<br>
>> > xml file generated on a test object after issuing the command "save<br>
>> xml2", I<br>
>> > see a line that looks like:<br>
>> ><br>
>> <TextureEntry>i1/sZY2NncXNqI/fJxbjYQAAAAAAAAAAgD8AAACAPwAAAAAAAAAAAAAAAAAAAA==</TextureEntry><br>
>> > It looks to me that the above line tells OpenSim what texture to apply to<br>
>> > the object when the object is loaded with the command "load xml2". But I<br>
>> do<br>
>> > not see a connection between this string and the UUID of the texture. The<br>
>> > texture's UUID is not in the xml file though. So where is the texture<br>
>> > information stored in the xml file? Does the <TextureEntry> line have<br>
>> > anything to do with identifying what texture to apply to the object? Is<br>
>> > there a reference manual that says what parts of the xml file are for<br>
>> what<br>
>> > in OpenSim?<br>
>> > Thanks,<br>
>> > Steve<br>
>> ><br>
>> ><br>
>> ><br>
>> > ------------------------------------------------------------------------<br>
>> ><br>
>> > _______________________________________________<br>
>> > Opensim-dev mailing list<br>
>> > <a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
>> > <a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
>> _______________________________________________<br>
>> Opensim-dev mailing list<br>
>> <a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
>> <a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
>><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Opensim-dev mailing list<br>
> <a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
> <a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div><div class="h5">-- <br>===================================<br><a href="http://osgrid.org" target="_blank">http://osgrid.org</a><br><a href="http://del.icio.us/SPQR" target="_blank">http://del.icio.us/SPQR</a><br>
<a href="http://twitter.com/jstallings2" target="_blank">http://twitter.com/jstallings2</a><br>
<a href="http://www.linkedin.com/pub/5/770/a49" target="_blank">http://www.linkedin.com/pub/5/770/a49</a><br>
</div></div><br>_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
<br></blockquote></div><br>