<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.bundysoft.com/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.bundysoft.com/wiki/feed.php">
        <title>BundyWiki scripts</title>
        <description></description>
        <link>http://www.bundysoft.com/wiki/</link>
        <image rdf:resource="http://www.bundysoft.com/wiki/lib/images/favicon.ico" />
       <dc:date>2026-05-01T13:58:06+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:add_custom_volcano&amp;rev=1504158395&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:add_peak_overlay&amp;rev=1377130162&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:bakelightontotexture&amp;rev=1504158480&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:calculate_gradient&amp;rev=1504158418&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:clipdesignmap&amp;rev=1377130162&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:clipgeotiffandexportasbmp&amp;rev=1294897463&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:combine_wm_and_hf&amp;rev=1504164211&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:cone_overlay&amp;rev=1504158973&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:convert_am_to_byte&amp;rev=1377130164&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:countsloc&amp;rev=1294897464&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:cube_wrapped_heightfield&amp;rev=1504152864&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:export_fractal&amp;rev=1294897465&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:exportheightfieldasbitmap&amp;rev=1504158512&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:exportheightfieldastiles&amp;rev=1504156580&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:fileio&amp;rev=1504155479&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:fread_test&amp;rev=1504163389&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:fwrite_test&amp;rev=1504153174&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:getdesignmaplayer&amp;rev=1377130162&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:hello_world&amp;rev=1504163021&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:hf_clip&amp;rev=1504156081&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:hf_sinedemo&amp;rev=1504163420&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:ideas&amp;rev=1377130162&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:import_heightfield&amp;rev=1504158649&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:import_heightmap_tile&amp;rev=1294897468&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:import_opensim_raw_file&amp;rev=1504156197&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:re-calculate_texture_area&amp;rev=1504159850&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:sapphire_debug_v2&amp;rev=1504161031&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:sapphirepanoramaavi&amp;rev=1294897469&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:setdesignmaplayer&amp;rev=1377130163&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=scripts:wang_tiles&amp;rev=1369145352&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.bundysoft.com/wiki/lib/images/favicon.ico">
        <title>BundyWiki</title>
        <link>http://www.bundysoft.com/wiki/</link>
        <url>http://www.bundysoft.com/wiki/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:add_custom_volcano&amp;rev=1504158395&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:46:35+00:00</dc:date>
        <title>scripts:add_custom_volcano</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:add_custom_volcano&amp;rev=1504158395&amp;do=diff</link>
        <description>Description  Add a custom volcano to the heightfield, with user-defined radius, height &amp;c.   Author  Aaron   Created  2010/05/24   Updated  2010/05/24   Requires  L3DT v2.9 beta 2 or later   Download  [add custom volcano.zs] 
Script contents


// exit immediately if HF is not initialised
hvar pHF
set pHF &lt;GetMap &quot;HF&quot;&gt;
assert &lt;map.GetWidth pHF&gt; &quot;Heightfield is not initialised!&quot;

// initiailise the settings
int ls.xpos
int ls.ypos
int ls.BaseRadius
int ls.RimRadius
int ls.CoreRadius
float ls.RimHe…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:add_peak_overlay&amp;rev=1377130162&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-08-22T00:09:22+00:00</dc:date>
        <title>scripts:add_peak_overlay</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:add_peak_overlay&amp;rev=1377130162&amp;do=diff</link>
        <description>Description  A script to add a peak overlay to the heightfield using a user-specified position, radius, height, etc.    Author  Aaron   Created  2010/05/24   Last modified  2016/05/12   Requires  L3DT v16.05   Download  [HF_PeakOverlay.zs] 
Script contents


// Author:  A. Torpy
// Updated: 12 May 2016

hvar hMap
set hMap &lt;GetMap &quot;HF&quot;&gt;
assert hMap &quot;Cannot get heightfield!&quot;


// get size
int nx ny
set nx &lt;map.GetWidth hMap&gt;
set ny &lt;map.GetHeight hMap&gt;

// if heightfield is not initialised, exit
a…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:bakelightontotexture&amp;rev=1504158480&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:48:00+00:00</dc:date>
        <title>scripts:bakelightontotexture</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:bakelightontotexture&amp;rev=1504158480&amp;do=diff</link>
        <description>Description  A script to bake the light map onto the texture map.   Author  Aaron   Created  2010/05/24   Requires  L3DT v2.9 beta 2 or later.    Download  [BakeLightOntoTexture.zs] 
Script contents


// check lightmap
hvar hLM hTX
set hLM &lt;GetMap &quot;LM&quot;&gt;
set hTX &lt;GetMap &quot;TX&quot;&gt;

assert &lt;map.GetWidth hLM&gt; &quot;Light map is not initialised!&quot;
assert &lt;map.GetWidth hTX&gt; &quot;Texture map is not initialised!&quot;

// store a backup
L3DTio_Backup.ExtBackupMap &quot;TX&quot; &quot;Bake LM onto TX&quot; 0 &quot;view.ShowMap \&quot;TX\&quot;&quot;

// apply th…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:calculate_gradient&amp;rev=1504158418&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:46:58+00:00</dc:date>
        <title>scripts:calculate_gradient</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:calculate_gradient&amp;rev=1504158418&amp;do=diff</link>
        <description>Description  Calculate the gradient map of the heightfield.   Author  Aaron   Created  2012/03/19 06:20   Requires  L3DT v12.03   Download  [HF_CalcGradient.zs] 




Script contents


hvar pHF
set pHF &lt;project.GetMap &quot;HF&quot;&gt;
assert pHF &quot;Error: cannot get heightfield!&quot;
assert &lt;map.GetWidth pHF&gt; &quot;Error: heightfield not initialised!&quot;

hvar hOutput
set hOutput &lt;project.GetMap &quot;HF_Grad&quot;&gt;
if hOutput
  L3DTio_Backup.BackupMap &quot;HF_Grad&quot; &quot;HF_CalcGrad&quot; 0 &quot;view.ShowMap \&quot;HF_Grad\&quot;&quot;
  map.Free hOutput
else
  …</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:clipdesignmap&amp;rev=1377130162&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-08-22T00:09:22+00:00</dc:date>
        <title>scripts:clipdesignmap</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:clipdesignmap&amp;rev=1377130162&amp;do=diff</link>
        <description>Description  A script to clip the altitude range of the design map (maximum, minimum or both).   Author  Aaron   Created  2010/07/07   Requires  L3DT v2.9 beta or later   Download  [DM_Clip.zs] 



Script contents


//
//   Title | DM_Clip
// Purpose | A script to clip the altitude layer of the design map
//  Author | Aaron Torpy
//    Date | 7 July 2010
//


hvar hDM
set hDM &lt;GetMap &quot;DM&quot;&gt;
assert &lt;not &lt;iseq hDM NULL&gt;&gt; &quot;Error: Design map is not present&quot;
assert &lt;map.GetWidth hDM&gt; &quot;Error: Design ma…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:clipgeotiffandexportasbmp&amp;rev=1294897463&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-01-13T05:44:23+00:00</dc:date>
        <title>scripts:clipgeotiffandexportasbmp</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:clipgeotiffandexportasbmp&amp;rev=1294897463&amp;do=diff</link>
        <description>Description  A script to import a GeoTIFF heightfield, clip the altitude range, and then export as a greyscale bitmap.    Author  Aaron   Created  2010/05/24   Requires  L3DT 11.07 beta 2 or later   Download  [ClipGeotTiffAndExportAsBmp.zs] 
Script contents


// Author:  A. Torpy
// Updated: 14 Jul 2011


// create and initialise a file selector
filesel FS
filesel.Init &amp;FS true NULL &quot;GeoTIFF files (*.tif)|*.tif|All files (*.*)|*.*|&quot; &quot;tif&quot; NULL


// ask user for input filename using file selector…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:combine_wm_and_hf&amp;rev=1504164211&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:23:31+00:00</dc:date>
        <title>scripts:combine_wm_and_hf</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:combine_wm_and_hf&amp;rev=1504164211&amp;do=diff</link>
        <description>Description  Combine the height in the water map with the heightfield, so that the heightfield has flat areas for the surface of the water bodies.    Author  Aaron   Created  2011/03/02   Requires  L3DT v2.9 build 12 or later   Download  [Combine WM and HF.zs]</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:cone_overlay&amp;rev=1504158973&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:56:13+00:00</dc:date>
        <title>scripts:cone_overlay</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:cone_overlay&amp;rev=1504158973&amp;do=diff</link>
        <description>Description  Add a cone to the heightfield at a user-specified position, with user-specified radius and height.    Author  Aaron   Created  2011/01/04   Updated  2011/01/04   Requires  L3DT v2.9 build 4 or later   Download  [cone overlay.zs] 
Script contents


// Author:  A. Torpy
// Created: 04 Jan 2011

// exit immediately if HF is not initialised
hvar pHF
set pHF &lt;GetMap &quot;HF&quot;&gt;
assert &lt;map.GetWidth pHF&gt; &quot;Heightfield is not initialised!&quot;

// initiailise the settings
int ls.x_pos_px
int ls.y_pos…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:convert_am_to_byte&amp;rev=1377130164&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-08-22T00:09:24+00:00</dc:date>
        <title>scripts:convert_am_to_byte</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:convert_am_to_byte&amp;rev=1377130164&amp;do=diff</link>
        <description>Description  Generates an 8-bit representation of the attributes map and saves it as a bitmap or RAW file.    Author  Aaron.   Created  2012/09/12 07:28   Requires  L3DT v12.09 (specifically, ZeoWrap 12.09)   Download  [AM_ConvertToByte.zs] 
About


Please see this forum thread for more information.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:countsloc&amp;rev=1294897464&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-01-13T05:44:24+00:00</dc:date>
        <title>scripts:countsloc</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:countsloc&amp;rev=1294897464&amp;do=diff</link>
        <description>Description  A script to count the number of source lines of code in a C/C++/ZeoScript project. This script demonstrates recursive directory searching and basic string parsing using ZeoScript.   Author  Aaron   Created  2010/05/24   Requires  L3DT 11.07 beta 2 or later.   Download  [countsloc.zs] 
Script contents


// Author:  A. Torpy
// Updated: 14 Jul 2011

// select directory to scan
dirsel DS
dirsel.Init &amp;DS NULL
if &lt;not &lt;EditUI &amp;DS &quot;Select directory&quot;&gt;&gt;
  return 0
endif

string DirName
set …</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:cube_wrapped_heightfield&amp;rev=1504152864&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:14:24+00:00</dc:date>
        <title>scripts:cube_wrapped_heightfield</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:cube_wrapped_heightfield&amp;rev=1504152864&amp;do=diff</link>
        <description>Description  Apply various wrapping and blending operations to generate a heightfield that may be wrapped onto a cube (nearly) seamlessly.   Author  Aaron   Created  2012/03/09   Updated  2012/03/14 --- new images with better blending.   Requires  L3DT v12.03 build 1 or later   Download  [cube_mapped_heightfield.zs] 
About


This script converts 4×3 aspect heightfields like this...</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:export_fractal&amp;rev=1294897465&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-01-13T05:44:25+00:00</dc:date>
        <title>scripts:export_fractal</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:export_fractal&amp;rev=1294897465&amp;do=diff</link>
        <description>Description  A script to generate a fractal map, and export it as a PNG image.   Author  Aaron   Created  2010/05/24   Requires  L3DT 11.07 beta 2 or later   Download  [Export fractal.zs] 
Script contents


// Author:  A. Torpy
// Updated: 14 Jul 2011

// create settings list 'ls'
varlist ls
int ls.PowerOfTwo
float ls.AltRange
float ls.Roughness
bool ls.WrapFlag

set ls.PowerOfTwo 10 // 8 = 256x256, 9 = 512x512, 10 = 1024x1024
set ls.Roughness 0.55
set ls.AltRange 100
set ls.WrapFlag false

// e…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:exportheightfieldasbitmap&amp;rev=1504158512&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:48:32+00:00</dc:date>
        <title>scripts:exportheightfieldasbitmap</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:exportheightfieldasbitmap&amp;rev=1504158512&amp;do=diff</link>
        <description>Description  An example script for exporting the heightfield as a bitmap.   Author  Aaron   Created  2010/05/24   Requires  L3DT v2.9 beta 2 or later   Download  [ExportHeightfieldAsBitmap.zs] 
Script contents


map.SaveFile2 &lt;GetMap &quot;HF&quot;&gt; &lt;file.SaveDlg &quot;bmp&quot; NULL &quot;Bitmap images (*.bmp)|*.bmp|&quot;&gt; false true</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:exportheightfieldastiles&amp;rev=1504156580&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:16:20+00:00</dc:date>
        <title>scripts:exportheightfieldastiles</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:exportheightfieldastiles&amp;rev=1504156580&amp;do=diff</link>
        <description>Description  Exports the heightfield as a set of HF2 tile files. This script has better memory management for very large tile sizes (&gt;4096) than the usual mosaic export option.   Author  Aaron   Created  2010/02/03   Requires  L3DT v2.8 build 7 or later.   Download  [ExportHeightfieldAsTiles.zs] 
Script contents


hvar hMap
set hMap &lt;GetMap &quot;HF&quot;&gt;

int nx ny
set nx &lt;map.GetWidth hMap&gt;
set ny &lt;map.GetHeight hMap&gt;

assert nx &quot;Map not initialised!&quot;

string FileName
set FileName &lt;file.SaveDlg &quot;hf2&quot; N…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:fileio&amp;rev=1504155479&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:57:59+00:00</dc:date>
        <title>scripts:fileio</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:fileio&amp;rev=1504155479&amp;do=diff</link>
        <description>Please see the scripts index for file I/O scripts.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:fread_test&amp;rev=1504163389&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:09:49+00:00</dc:date>
        <title>scripts:fread_test</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:fread_test&amp;rev=1504163389&amp;do=diff</link>
        <description>Description  An example script demonstrating how to use the fopen, fread and fclose script functions.   Author  Aaron   Created  2010/05/24   Requires  L3DT v2.9 beta 2 or later   Download  [fread test.zs] 
Script contents


//
// Ask user for filename
//

string FileName
set FileName &lt;file.OpenDlg &quot;txt&quot; NULL &quot;Text files (*.txt)|*.txt|All files (*.*)|*.*|&quot;&gt;
if &lt;iseq 0 &lt;strlen FileName&gt;&gt;
  return 0
endif

//
// Open file
//

voidptr fp
set fp &lt;fopen FileName &quot;r&quot;&gt;
assert fp &quot;Cannot open file!&quot;

//…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:fwrite_test&amp;rev=1504153174&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:19:34+00:00</dc:date>
        <title>scripts:fwrite_test</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:fwrite_test&amp;rev=1504153174&amp;do=diff</link>
        <description>Description  An example script to demonstrate how to use the fopen, fwrite and fclose script functions.   Author  Aaron   Created  2010/05/24   Requires  L3DT v2.9 beta 2 or later.   Download  [fwrite test.zs] 
Script contents


//
// ask user for filename
//

string FileName
set FileName &lt;file.SaveDlg &quot;txt&quot; NULL &quot;Text files (*.txt)|*.txt|All files (*.*)|*.*|&quot;&gt;
if &lt;iseq 0 &lt;strlen FileName&gt;&gt;
  return 0
endif

//
// Ask user for text to write to file
//

string s
if &lt;not &lt;EditUI &amp;s &quot;Enter file tex…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:getdesignmaplayer&amp;rev=1377130162&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-08-22T00:09:22+00:00</dc:date>
        <title>scripts:getdesignmaplayer</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:getdesignmaplayer&amp;rev=1377130162&amp;do=diff</link>
        <description>Description  A script to extract a layer from the design map, so that it may be separately viewed, edited, exported, etc.   Author  Aaron   Created  2010/05/24    Updated  2016/05/12    Requires  L3DT v2.9 beta 2 or later   Download  [DM_GetLayer.zs] 
Script contents


// Author:  A. Torpy
// Updated: 16 May 2016

hvar hDM
set hDM &lt;GetMap &quot;DM&quot;&gt;
assert &lt;cast bool &lt;map.GetWidth hDM&gt;&gt; &quot;Design map not initialised!&quot;

// allow user to select layer
combosel CS
combosel.Init &amp;CS &quot;Altitude|PeakNoise|Frac…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:hello_world&amp;rev=1504163021&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:03:41+00:00</dc:date>
        <title>scripts:hello_world</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:hello_world&amp;rev=1504163021&amp;do=diff</link>
        <description>Description  An example script to print 'Hello World!' to the event log.   Author  Aaron   Created  2010/05/24   Requires  L3DT v2.9 beta 2 or later   Download  [hello world.zs] 
Script contents


echo &quot;Hello World!&quot;


Comments


None.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:hf_clip&amp;rev=1504156081&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:08:01+00:00</dc:date>
        <title>scripts:hf_clip</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:hf_clip&amp;rev=1504156081&amp;do=diff</link>
        <description>Description  A script to clip heightifled pixels that are above or below a certain elevation, and set them to another given elevation.   Author  Aaron   Created  2017/08/17   Requires  L3DT v15+   Download  [hf_clip.zs] 
Script contents


//
//   Title | HF_clip
// Purpose | A script to force heightfield pixels above or below a certain level
//         | to be set to another level
//  Author | Aaron Torpy
//    Date | 17 Aug 2017


hvar hHF
set hHF &lt;GetMap &quot;HF&quot;&gt;
assert &lt;not &lt;iseq hHF NULL&gt;&gt; &quot;Err…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:hf_sinedemo&amp;rev=1504163420&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:10:20+00:00</dc:date>
        <title>scripts:hf_sinedemo</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:hf_sinedemo&amp;rev=1504163420&amp;do=diff</link>
        <description>Description  A script to generate a sinusoidal heightfield, demonstrating how to set map pixel values and perform algebra in ZeoScript.   Author  Aaron   Created  2016/05/12 04:31   Requires  L3DT v16.05   Download  [HF_SineDemo.zs] 



About


The 'HF_SineDemo' is a complex script that generates sinusoidal heightfields like this:</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:ideas&amp;rev=1377130162&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-08-22T00:09:22+00:00</dc:date>
        <title>scripts:ideas</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:ideas&amp;rev=1377130162&amp;do=diff</link>
        <description>2</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:import_heightfield&amp;rev=1504158649&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:50:49+00:00</dc:date>
        <title>scripts:import_heightfield</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:import_heightfield&amp;rev=1504158649&amp;do=diff</link>
        <description>Description  Import a heightfield.   Author  Aaron Torpy   Created  2014/02/22 03:58   Requires  L3DT v11.11   Download  [import_hf.zs] 
About


This script allows users to import a heightfield into an existing project without having to start a new project. It can be used to re-import a heightfield after editing in other software.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:import_heightmap_tile&amp;rev=1294897468&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-01-13T05:44:28+00:00</dc:date>
        <title>scripts:import_heightmap_tile</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:import_heightmap_tile&amp;rev=1294897468&amp;do=diff</link>
        <description>Description  A script to import an area of the heightfield from a file.   Author  Aaron   Created  2010/05/24   Requires  L3DT 11.07 beta 2 or later   Download  [import heightmap tile.zs] 
Script contents


// Author:  A. Torpy
// Updated: 14 Jul 2011

hvar hMap
set hMap &lt;GetMap &quot;HF&quot;&gt;
assert hMap &quot;Cannot get heightfield!&quot;

// exit immediately if HF is not initialised
assert &lt;map.GetWidth hMap&gt; &quot;Heightfield is not initialised!&quot;

// initialise and edit file selector
filesel FS
filesel.Init &amp;FS tru…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:import_opensim_raw_file&amp;rev=1504156197&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:09:57+00:00</dc:date>
        <title>scripts:import_opensim_raw_file</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:import_opensim_raw_file&amp;rev=1504156197&amp;do=diff</link>
        <description>Description  Import a heightmap from a 13-channel RAW file from OpenSim / Second Life.   Author  &lt;aaron@bundysoft.com&gt;   Created  2013/05/24    Requires  L3DT v11.11   Download  [import opensim raw file.zs]   Forum thread  &lt;http://www.bundysoft.com/phpBB2/viewtopic.php?f=4&amp;t=2718&gt; 
Script contents


//
//  Title | Import OpenSim RAW.zs
//  About | A script to import 13 channel 8-bit OpenSim / Second Life RAW files
// Author | Aaron Torpy (aaron@bundysoft.com)
//   Date | 24 May 2013
// 

filesel…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:re-calculate_texture_area&amp;rev=1504159850&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:10:50+00:00</dc:date>
        <title>scripts:re-calculate_texture_area</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:re-calculate_texture_area&amp;rev=1504159850&amp;do=diff</link>
        <description>Description  A script to re-calculate a rectangular area of the texture map.    Author  Aaron   Created  2010/05/24   Requires  L3DT v2.9 beta 2 or later.    Download  [Re-calculate texture area.zs] 
Script contents


hvar hTX
set hTX &lt;GetMap &quot;TX&quot;&gt;
assert hTX &quot;Cannot get texture map!&quot;

assert &lt;map.GetWidth hTX&gt; &quot;Texture map is not initialised!&quot;

// initiailise the settings
int ls.left ls.right ls.top ls.bottom
set ls.left 0
set ls.bottom 0
set ls.top 0
set ls.right 0

// edit settings UI, and ex…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:sapphire_debug_v2&amp;rev=1504161031&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:30:31+00:00</dc:date>
        <title>scripts:sapphire_debug_v2</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:sapphire_debug_v2&amp;rev=1504161031&amp;do=diff</link>
        <description>Description  A script to test the different rendering modules in Sapphire and log the frame render times.    Author  Aaron   Created  2014/09/10    Requires  L3DT v11.11 or later   Download  [sapphire_debug_v2.zs] 



About


This script is included with L3DT v14.09 or later. Prior releases of L3DT included an older version of this script, which did not include frame render time logging.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:sapphirepanoramaavi&amp;rev=1294897469&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-01-13T05:44:29+00:00</dc:date>
        <title>scripts:sapphirepanoramaavi</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:sapphirepanoramaavi&amp;rev=1294897469&amp;do=diff</link>
        <description>Description  A script to generate a panoramic AVI video file using the Sapphire 3D renderer.   Author  Aaron   Created  2010/05/09   Requires  L3DT 11.07 beta 2 or later   Download  [SapphirePanoramaAVI.zs] 
Comments


To use this script, first open Sapphire and move the camera to the vantage point from which you would like the panorama generated. Then, in the Sapphire menu, select the 'Scripts-&gt;Run script file' menu option, and select this script file.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:setdesignmaplayer&amp;rev=1377130163&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-08-22T00:09:23+00:00</dc:date>
        <title>scripts:setdesignmaplayer</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:setdesignmaplayer&amp;rev=1377130163&amp;do=diff</link>
        <description>Description  Set the contents of a layer of the design map, using another map layer in the project. To be used with the DM_GetLayer script.   Author  Aaron   Created  2010/05/24   Updated  2016/05/12   Requires  L3DT v2.9 beta 2 or later   Download  [DM_SetLayer.zs] 
Script contents


// Author:  A. Torpy
// Updated: 12 May 2016

hvar hDM
set hDM &lt;GetMap &quot;DM&quot;&gt;
assert &lt;cast bool &lt;map.GetWidth hDM&gt;&gt; &quot;Design map not initialised!&quot;

// allow user to select layer
combosel CS
combosel.Init &amp;CS &quot;Altitud…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=scripts:wang_tiles&amp;rev=1369145352&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-21T14:09:12+00:00</dc:date>
        <title>scripts:wang_tiles</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=scripts:wang_tiles&amp;rev=1369145352&amp;do=diff</link>
        <description>Description  This script generates a plane of Wang Tile indicies using the size of the design map.   Author  David Walters   Created  2009 / 05 / 30   Updated  2013 / 05 / 21   Requires  L3DT v2.9 or later   Download  [WangTiles_May2013.zs]  Forum thread  &lt;http://www.bundysoft.com/phpBB2/viewtopic.php?f=11&amp;t=1156&gt; 
Script contents


//
// Wang Tiling Generator
//
// by David Walters
//
// Requires L3DT v2.9 (or later).
//
// Based on: http://research.microsoft.com/en-us/um/people/cohen/WangFinal…</description>
    </item>
</rdf:RDF>
