[Opensim-users] A Couple Of Not Important Questions About Megaregions

Ken Grunke kenearlg at gmail.com
Tue May 15 20:20:49 UTC 2012


On 5/15/2012 1:51 PM, Robert Martin wrote:
> Pardon the semi-hijack of the thread but is there a fairly simple
> method to create the terrain heightmap and then split it into the
> needed set of tiles??
>
> So you can create the "map" for a 3X3 mega region and then be able to
> upload all nine region tiles without doing a buncha Voodoo.
Here's a nifty way of slicing up an image into tiles on a Linux server 
using a simple terminal command, assuming ImageMagick is installed (most 
likely is, or easily is if not).

Given for example a 768 x 768 px png image, cd to the folder containing 
it (what better place but your /opensim/bin/ directory?)  and use this 
command:

convert -crop 256x256 big-image.png -depth 8 tile.png

The result will be nine tile images named successively: tile-1.png, 
tile-2.png, tile-3.png, etc.

Handy on a Linux desktop also--by the time Gimp is fired up, your image 
will be all sliced and ready.

If you have a general need for ImageMagick in Windows, you can do the 
same trick in the DOS environment. But IM is a network server batch 
processing tool so you probably won't be installing it on your desktop 
just for this. Further reading at http://www.imagemagick.org/Usage/windows/

Ken aka Key Gruin @OSGrid



More information about the Opensim-users mailing list