Table of Contents

SphericalDistort

Plugin information

Authors Aaron and Tillot
Description Applies a spherical distortion to a heightfield and water map.
Menu option 'Extensions→SphericalDistort'
Download link SphericalDistort-bin.zip
Source code Over here

What does it do?

A picture tells a thousand words, so here's three thousand:

Before After (pos. radius) After (neg. radius)
Before distortion Positive radius Negative radius

As you can see, SphericalDistort distorts the heightfield as if it were on a sphere.

This plugin, and L3DT in general, cannot produce complete spherical worlds. This is due to some topological differences between planes and spheres.

Using SphericalDistort

When you select the 'Extensions→SphericalDistort→Apply spherical distortion' option, you will be asked to enter the sphere radius, which is measured in kilometres. Regarding the radius:

Extended clipping options (by Tillot)

I hacked the source for the SphericalDistort plugin to allow for limiting the curvature in the x,y, or at some specified radius. This allows for 'pieces' of a sphere to be generated kind of like a cookie cutter. The option is available using the 'Extensions→SphericalDistort→Apply spherical distortion (extended options)' menu option.

Here's the heightmap:

:projects:terrainsliceheightmap.jpg

Here's a terrain screenshot:

:projects:terrainslice.jpg

This plugin doesn't currently allow removing the surrounding terrain edges, but will some day (see to-do list).

If the terrain is converted into a poly mesh it would then be as simple as using poly editing tool like Maya, Max, Lightwave, or Blender to cut out the pieces and stitch them together into a sphere.

To-do list

Changes

2009/03/26

2008/12/03

2006/11/21

2006/11/16

2006/10/23

2006/10/22