Inworld Data

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
==Managing inventory==
+
==Adding textures to the OpenSim Library==
 +
* Download the [http://www.tellim.com/texture_cd.tar.gz blender texture cd] (as an example)
 +
* Create jpeg2000 files from regular jpg files, using a perl [[jp2_batch_converter|jp2 batch converter]] (based on Jasper)
 +
* Copy the jp2 files into the /opt/opensim/library directory
 +
* Create the appropriate xml storage files using the [[assets_generator|Asset Generator]] script
 +
* Edit the opensim inventory library reference file
 +
nano /opt/opensim/production/bin/inventory/Libraries.xml
 +
* Add the inventory reference
 +
<Section Name="OpenSim Custom Library">
 +
  <Key Name="foldersFile" Value="MyCoolOpenSimLibrary/3DDCInventoryFolders.xml"/>
 +
  <Key Name="itemsFile" Value="MyCoolOpenSimLibrary/3DDCInventoryItems.xml"/>
 +
</Section>
 +
* Edit the opensim assets library reference file
 +
nano /opt/opensim/production/bin/assets/AssetSets.xml
 +
* Add the asset reference
 +
<Section Name="OpenSim Custom Asset Set">
 +
  <Key Name="file" Value="MyCoolOpenSimAssetSet/3DDCAssetSet.xml"/>
 +
</Section>
  
===Libraries.xml===
 
Folders and items which will appear in the standard common library for all avatars can be configured here.  The root folder (currently called OpenSim Library) is hardcoded, but you can add your own configuration of folders and items directly beneath this, in addition to (or instead of) the contents of the default OpenSim library.
 
 
 
To add a new library, edit Libraries.xml.  The entry in here needs to point to two further xml files, one which details your library inventory folders and another which details your library inventory items.  Each inventory item will need to be associated with an asset.  Assets are configured separately in the bin/assets directory. If you are running in grid mode, any library you add must be present in both your grid servers installation and in every region installation, otherwise library items will fail in the regions where the inventory configuration is not present.  The reasons for this are historical and will probably be lifted in a future revision.
 
 
 
Files in the attic directory are currently unused.
 
  
 
===Instructions===
 
===Instructions===

Revision as of 08:02, 20 February 2008

Contents

Adding textures to the OpenSim Library

  • Download the blender texture cd (as an example)
  • Create jpeg2000 files from regular jpg files, using a perl jp2 batch converter (based on Jasper)
  • Copy the jp2 files into the /opt/opensim/library directory
  • Create the appropriate xml storage files using the Asset Generator script
  • Edit the opensim inventory library reference file
nano /opt/opensim/production/bin/inventory/Libraries.xml
  • Add the inventory reference
<Section Name="OpenSim Custom Library">
 <Key Name="foldersFile" Value="MyCoolOpenSimLibrary/3DDCInventoryFolders.xml"/>
 <Key Name="itemsFile" Value="MyCoolOpenSimLibrary/3DDCInventoryItems.xml"/>
</Section> 
  • Edit the opensim assets library reference file
nano /opt/opensim/production/bin/assets/AssetSets.xml
  • Add the asset reference
<Section Name="OpenSim Custom Asset Set">
 <Key Name="file" Value="MyCoolOpenSimAssetSet/3DDCAssetSet.xml"/>
</Section>


Instructions

A link the mailing list entry describing the xml structure for including library scripts (and other items)

genassets.pl

Perl script that generates assetset, inventory folders, and inventory items files that can be used to create a custom library. Takes a directory tree of jp2 and lsl scripts and creates the mirrored structure in inventory under OpenSim Library. See usage instructions inside script.

Database Support

Library Collection

  • Free Assets - Free items, textures, heightmaps and scripts.
Personal tools
General
About This Wiki