Why do Null objects get rendered?
BlitzMax Forums/MiniB3D Module/Why do Null objects get rendered?
| ||
If I set a mesh to Null, it continues to get rendered. Is this right? Do I have to call HideEntity before deleting the mesh? |
| ||
It gets rendered because a reference to it still exists in TEntity.entity_list, which is a global list of all entities. So the GC collecter never takes it away. Use FreeEntity to delete it properly. |
| ||
Ah, thanks. :) |
| ||
I've noticed that if I FreeEntity(camera) it still exists in TEntity.entity_list, causing the program to crash on the next UpdateWorld. I am missing something? |
| ||
you need atleast one camera to be able to render. and you need atleast 1 light to be able to see things as well unless you set the ambient light up |
| ||
I have 2 cameras though, and when I free the second one it crashes. No problem though, I can just make them both global entities. |