Library Preparation
From OpenSimulator
(Difference between revisions)
(→Converting Textures) |
|||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
+ | {{Template:Quicklinks}} | ||
+ | <br /> | ||
+ | |||
==Textures== | ==Textures== | ||
===Converting Textures=== | ===Converting Textures=== |
Revision as of 14:14, 21 May 2009
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
To create a terrain for a single region:
- Create a NEW MAP by clicking on that icon in the title bar.
- Highlight Design/Inflate, and click Next.
- Make the size X=4, y=4. This will give you a 256x256 terrain, the same size as a region. Click Next.
- Play with the sliders in the parameters window. You can just leave the defaults to start with. Click Next.
- Check Design Map, and click OK.
- Now click the CALC icon in the menu bar, then click OK.
- You now have your terrain. If you don't like it, start over and play with the settings.
- To save it: File=>Export=>Export Map.
- Highlight Heightfield, and then click OK.
- Choose File Format R32, then click the Options button.
- Double click "Mode", and select "float (meters)", then click OK, and OK again.
- Name the file whatever you want, and click OK to save it.