Library Preparation

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Redirecting to Custom Libraries)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
#Redirect [[Custom Libraries]]
{{Template:Quicklinks}}
+
<br />
+
 
+
==Textures==
+
===Converting Textures===
+
The jp2 files used by the Secondlife client, are actually j2k files. These can be encoded by image_to_j2k from openjpeg. There is a [[jp2_batch_converter|Linux script]] or [[Jp2_batch_converter_for_windows|Windows script]] in perl, that does all the work for you. It uses imageMagick and image_to_j2k to make valid input files and converts them to j2k fileformat. It then renames the j2k file to jp2 extension, so these can be used within the viewer.
+
* Download the [http://www.tellim.com/texture_cd.tar.gz blender texture cd] (as an example)
+
* Prepare your imagefiles (jp2 files with 16,32,64,128,256,512,1024 resolution and aspect ratio's 1:1,1:2,1:4,1:8,1:16,1:32,etc. are supported)
+
* Copy the jp2 files(including directory-structures) into the /opt/opensim/library directory
+
 
+
==Terrains==
+
===Create a terrain heightmap===
+
To create a terrain for a single region:
+
 
+
* Create a NEW MAP by clicking on that icon in the title bar.<br>
+
* Highlight Design/Inflate, and click Next.<br>
+
* Make the size X=4, y=4. This will give you a 256x256 terrain, the same size as a region. Click Next.<br>
+
* Play with the sliders in the parameters window. You can just leave the defaults to start with. Click Next.<br>
+
* Check Design Map, and click OK.<br>
+
* Now click the CALC icon in the menu bar, then click OK.<br>
+
* You now have your terrain. If you don't like it, start over and play with the settings.<br>
+
* To save it: File=>Export=>Export Map.<br>
+
* Highlight Heightfield, and then click OK.<br>
+
* Choose File Format R32, then click the Options button.<br>
+
* Double click "Mode", and select "float (meters)", then click OK, and OK again.<br>
+
* Name the file whatever you want, and click OK to save it.<br>
+

Latest revision as of 02:45, 3 May 2011

  1. Redirect Custom Libraries
Personal tools
General
About This Wiki