terraformerNoise.cc exception error
by Jason Bertles · in Torque Game Engine · 10/14/2001 (10:40 pm) · 1 replies
I'm experiencing a problem in the Terraformer module of the World Editor. I can successfully load bitmaps, play with them to my heart's content, but as soon as I attempt to add Turbulence I get an exception error and am kicked, rather forcibly I might add, out of the engine.
I followed the debug option and found the code stopped in terraformerNoise.cc in the F32 Noise2D::getValue code, see below for the exact line.
// Make sure the box corners fall within the interval
// so that the final output will wrap on itself
bx0 = bx0 % interval;
bx1 = bx1 % interval;
by0 = by0 % interval;
by1 = by1 % interval;
S32 i = mPermutation[ bx0 ];
S32 j = mPermutation[ bx1 ];
---> S32 b00 = mPermutation[ i + by0 ]; <--- just here
S32 b10 = mPermutation[ j + by0 ];
S32 b01 = mPermutation[ i + by1 ];
S32 b11 = mPermutation[ j + by1 ];
// Next, calculate the dropoff component about the point p0.
F32 sx = curve(rx0);
F32 sy = curve(ry0);
I was experiencing this problem with Windows 2000-SP2 with the v12 1.0.0 engine and the latest drivers and bits installed. My machine was due for a rebuild anyway so I took the opportunity to rebuild it to Windows XP Professional (Retail), Torque 1.1.0 engine and all the latest bits and pieces installed. Still the problem persisted.
Anyone got any ideas?
"Oh, the humanity!"
-Jason
I followed the debug option and found the code stopped in terraformerNoise.cc in the F32 Noise2D::getValue code, see below for the exact line.
// Make sure the box corners fall within the interval
// so that the final output will wrap on itself
bx0 = bx0 % interval;
bx1 = bx1 % interval;
by0 = by0 % interval;
by1 = by1 % interval;
S32 i = mPermutation[ bx0 ];
S32 j = mPermutation[ bx1 ];
---> S32 b00 = mPermutation[ i + by0 ]; <--- just here
S32 b10 = mPermutation[ j + by0 ];
S32 b01 = mPermutation[ i + by1 ];
S32 b11 = mPermutation[ j + by1 ];
// Next, calculate the dropoff component about the point p0.
F32 sx = curve(rx0);
F32 sy = curve(ry0);
I was experiencing this problem with Windows 2000-SP2 with the v12 1.0.0 engine and the latest drivers and bits installed. My machine was due for a rebuild anyway so I took the opportunity to rebuild it to Windows XP Professional (Retail), Torque 1.1.0 engine and all the latest bits and pieces installed. Still the problem persisted.
Anyone got any ideas?
"Oh, the humanity!"
-Jason
About the author
Torque 3D Owner Phil Carlisle
Phil.