I want to create and save a huge skybox texture, but I noticed that for heights > 1024px bmap_fill crashes and bmap_save doesn't save the bitmap. With the following example code you can reproduce it:
Code:
int main ()
{
wait(3);
int w = 2048; // works for 1024 and less!
BMAP* b = bmap_createblack(w * 6, w, 8888); // or 24, format doesn't matter here
if (b != NULL)
{
// bmap_fill(b, COLOR_BLUE, 100); // error: "Script crash in main"
bmap_save(b, "bigblue.tga"); // nothing is saved
}
}
Last edited by HeelX; 04/08/1317:08.
Entire Thread
Subject
Posted By
Posted
bmap_fill crashes on- and bmap_save doesnt save huge bitmaps