How does it know what order to restore them in? what if the oar is made on a none square shape? what if the regions are not next to each other?<br><br><div class="gmail_quote">On Thu, Jul 19, 2012 at 10:01 PM, Oren Hurvitz <span dir="ltr"><<a href="mailto:orenh@kitely.com" target="_blank">orenh@kitely.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I want to extend the OAR format to support multiple regions. That's a<br>
significant change, so I'd like to get some feedback about the design before<br>
diving in.<br>
<br>
A multi-region OAR will store each region in its own subdirectory. Only the<br>
assets will remain in a top-level directory, to avoid storing multiple<br>
copies of the assets. I.e:<br>
<br>
my_oar/<br>
   assets/ - (all the assets)<br>
   region1/<br>
      settings/ - region1.xml<br>
      objects/ - (objects from region1)<br>
   region2/<br>
      settings/ - region2.xml<br>
      objects/ - (objects from region2)<br>
   etc.<br>
<br>
The file archive.xml will get a "table of contents" that lists the included<br>
regions and their spatial relationship. Regions are listed first by row<br>
(South to North), and within each row regions are listed West-to-East:<br>
<br>
<regions><br>
  <row><region><name>region1</name></region><br>
<region><name>region2</name></region></row><br>
  <row><region><name>region3</name></region><br>
<region><name>region4</name></region></row><br>
</regions><br>
<br>
<br>
The load-oar and save-oar commands will be extended as follows:<br>
<br>
save-oar - add a parameter called "-all". If true then save all the regions<br>
in the simulator into a single OAR. If false or missing then save only the<br>
current region (as today).<br>
<br>
load-oar - when loading a multi-region OAR, load each region into the<br>
corresponding region in the simulator<br>
<br>
If the OAR contains only one region then we'll skip creating a subdirectory<br>
for the region, and won't include the <regions> element in archive.xml. This<br>
means all existing OARs will be compatible with the new format.<br>
<br>
Any thoughts?<br>
<br>
Oren<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://opensim-dev.2196679.n2.nabble.com/Multi-region-OAR-format-tp7578162.html" target="_blank">http://opensim-dev.2196679.n2.nabble.com/Multi-region-OAR-format-tp7578162.html</a><br>

Sent from the opensim-dev mailing list archive at Nabble.com.<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>
</blockquote></div><br><br clear="all"><br>-- <br>Michael Emory Cerquoni - Nebadon Izumi @ <a href="http://osgrid.org">http://osgrid.org</a><br>