I have a small project with Advanced Terrain (200 lines), and it works fine. When I put the advanced terrain source code into another larger project (9000+ lines), it crashes the program. Any help with this one is appreciated, the code is below...
objTerrain = 200
load image "media/terrain6_colour.bmp", 201
load image "media/terrain6_colour.bmp", 202
make object terrain objTerrain
set terrain heightmap objTerrain, "media/terrain6.bmp"
set terrain scale objTerrain, 2, 0.4, 2
set terrain split objTerrain, 8
set terrain tiling objTerrain, 512
set terrain light objTerrain, 1, -0.25, 0, 1, 1, 0.78, 1.0
set terrain texture objTerrain, 201, 202
build terrain objTerrain
The important thing is that it works fine in one project, but not the other. he object and image numbers are all avalable. It is the
BUILD TERRAIN command that crashes it.
BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply