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 / memory failure advence terrain error?!

Author
Message
sovr
16
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 25th May 2012 02:03
Hello, I have been working with the advance terrain commands to build a nice terrain in my game. The problem is when I do build a terrain it keeps on telling me there is a memory failure and then crashes my game. Please if anyone knows what to do please post, thank you a lot, cheers!

sov the game creator!
sovr
16
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 25th May 2012 02:32
ohhh and here is the code:

make object terrain 1
set terrain heightmap 1,"map.bmp"
set terrain texture 1,1,1
set terrain scale 1,100,10,100
build terrain 1

sov the game creator!
Brendy boy
21
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 25th May 2012 02:45
whats the resolution of the map.bmp file

sovr
16
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 25th May 2012 03:39 Edited at: 25th May 2012 03:46
the bitmap is 256x256 and the texture to it is 3000x3000 (maybe the texture is too big?).


edit: ohhh! I got it to work! thanks for talking about the map.bmp because the directory for that image was slightly incorrect. Thank you

sov the game creator!

Login to post a reply

Server time is: 2026-07-22 00:35:54
Your offset time is: 2026-07-22 00:35:54