View Full Version : Need Help updating DEM importer: 'on buildmesh' infinite loop

11 November 2005, 03:34 AM
Hi Scripters ;)

I downloaded the DEM (DEM Digital Elevation Map) script from
Scriptspot :

the script was originally written for Max 3 by Stephen Leger, using the 'BinaryData.dlx' extentions, and is implemented as a simpleObject plugin.

I am trying to make it compatible with Max 7.
modifying the binary parsing is done, and seams to work,
but I face a problem:
the 'on BuildMesh' handler goes in an infinite loop, and I don't understand why...
If i interupt the script, during this loop, the model comes out fine, though...
It seams that once the mesh is built, the script goes back to the beginning of the buildmesh handler over and aver again ... :(

modified script is attached to this message

Could any gurus please take a look ?


if you want to test it, you will need at least 2 files:
the DEM file (add the .dem extention after extraction) (6Mo)
and the .hdr file: (34k)

thanks in advance for your attention


CGTalk Moderation
11 November 2005, 03:34 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.