Ok so I'm busy coding an SL clone for my school for a project, and suddenly all of the sudden, mid way of making Land editing work, I get a weird error message saying RenderWorld has done an memory access violation! To top it off, I even put renderworld in the loop of when it makes sprites for the landediting and it freezes after making 31*512 (so it seems to not like making more than 15872 sprites or what ever). Anyways, here's the code (I just got started on this project):
The sprite can be anything you want (it doesn't really matter). Can someone tell me what's going on?
-Flame The Great
Graphics3D 640,480,32,3 SetBuffer(BackBuffer()) client_name$="Flame" client_password$="" Dim land(10) land(0)=CreateTerrain(1024) TerrainDetail land(0),4000,True ScaleEntity land(0),1,25,1 main_camera=CreateCamera() MoveEntity main_camera,512,10,0 UpdateWorld landedit_spr_main=LoadSprite("data\sprites\land edit.bmp") Dim landedit(512,512) For y=0 To 512 For x=0 To 512 landedit(x,y)=CopyEntity(landedit_spr_main) EntityAlpha landedit(x,y),.5 PositionEntity landedit(x,y),x*2,TerrainHeight(land(0),x*2,y*2),y*2 Next DebugLog "Round "+y+" completed!" Next While Not KeyHit(1) Cls UpdateWorld RenderWorld Flip Wend
The sprite can be anything you want (it doesn't really matter). Can someone tell me what's going on?
-Flame The Great