Library Preparation

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Create a terrain heightmap: Provide link instead of duplicating content)
Line 12: Line 12:
 
==Terrains==
 
==Terrains==
 
===Create a terrain heightmap===
 
===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>
+
* [[Using_L3DT|Creating custom terrains with L3DT]]
* 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>
+

Revision as of 00:14, 14 August 2010


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 Linux script or 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 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

Personal tools
General
About This Wiki