Clearworld question

Blitz3D Forums/Blitz3D Programming/Clearworld question

XtwinstarX(Posted 2004) [#1]
My program calls other programs and then waits for the other app to end before continuing on. I call clearworld just before I run the app. It definintly cuts the memory usage by 2/3, but the 3d objects don't dissappear. I assumed that clearworld would do just that.. I added a
UpdateWorld : RenderWorld : Flip line after it, but still the objects remain in view. Is there a way, without calling graphics again to actually clear out the objects and just have a blank/black screen?


Zethrax(Posted 2004) [#2]
There's an undocumented 'EndGraphics' command. It may be what you're looking for, but I haven't tried it so I can't say for sure.

A simple 'Cls' should clear the screen.

Odd behaviour with ClearWorld! Are you sure you have its flags correctly set?


Perturbatio(Posted 2004) [#3]
EndGraphics


Rottbott(Posted 2004) [#4]
Did you Cls before RenderWorld?

Normally RenderWorld will overwrite everything on screen, but if no cameras exist (ClearWorld will kill cameras as well!) it won't do so. So whatever is on screen would stay there and appear when you Flip, which could make it look like it is still rendering your scene.


XtwinstarX(Posted 2004) [#5]
I think the cls will do it! I never even thought to look for a command like that. Thanks guys!