RenderWorld
BlitzMax Forums/MiniB3D Module/RenderWorld
| ||
I'm getting this on RenderWorld: Unhandled Exception: Attempt to index array element beyond array length What's are some possible reasons for this? |
| ||
I got that sort of error when i tried to use BIG skinned meshes with lots of bones. |
| ||
In this instance I'm just loading up some quads. I'm attempting to port Aerial Antics over to BMax and MiniB3D. This error is popping up on my little Story Screen. The main menu which consists of the same sort of stuff runs fine. Then it gets to this screen and dies. I'll say that the code behind this game is a mess as I created it 5 years ago. What that means is that the story screen is contained in it's own little subroutine with it's own separate RenderWorld. However, the game is still only calling one RenderWorld inside this While loop and there's nothing complex being rendered either. |
| ||
Hmmm perhaps I'm running out of texture space? Does ClearWorld() work? It's undocumented. Does it still free all textures and stuff? |
| ||
OK, it seems to have been caused by FreeTexture(). In Blitz3D you could free a texture after you applied it to an object and it would still be in video memory. |