Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Problem with arrays

Author
Message
Madehra
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: Portugal
Posted: 20th Oct 2002 17:54
Made a 4096x2048 array by taking altitude values from a height bitmap, but the array doesnt seem to work, data not stored correctly or something.

Is this a bug or limitation (memory or something)?
Same code with a 3000x1500 array works fine.
The One Ring
21
Years of Service
User Offline
Joined: 15th Sep 2002
Location: United States
Posted: 21st Oct 2002 04:38
This worked for me...



Maybe low on memory??

AMD Athlon 900 768MB DDR
ATI Radeon 64MB DDR All-In-Wonder 7500, ATI XPert 128 16MB
Sound Blaster Audigy Gamer w/FireWire Support
Madehra
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: Portugal
Posted: 21st Oct 2002 21:23
well, does it still work if you create a for next to give a value to each array coordinate?
Madehra
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: Portugal
Posted: 21st Oct 2002 21:25
or perhaps i have to include the "as integer", didnt do that, are array values real numbers by default? does that take more memory?
Madehra
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: Portugal
Posted: 23rd Oct 2002 01:22
Ok, i figured out what the problem was, it wasnt the array, it was the bitmap I was taking the data from, its too big (4096x2048), split it in two and it worked, data from both halves succesfully stored in a single array.

One other thing that doesnt seem to work, RGBR and RGBG failed to extract the 0-255 color value from the number resulted from the POINT command. But RGBB worked
May it have anything to do with the bitmap being grey scale? It worked before patch 2.

Login to post a reply

Server time is: 2024-04-19 06:12:12
Your offset time is: 2024-04-19 06:12:12