Disable z-sorting?

Blitz3D Forums/Blitz3D Programming/Disable z-sorting?

_33(Posted 2008) [#1]
Is there a way, any possible way, to disable z-sorting?

For example:
- render the background 3D scene
- disable z-sorting
- render some entities
- enable z-sorting
- Loop

It's something I would find useful for huds, sprites, and so on.... Currently using fastImage for this, but only 2D sprites with that tool.


Ross C(Posted 2008) [#2]
So, your wanting the entities to appear between the backround 3d scene and the entities in front?

If so:

Set the cameraclsmode to clear the z-buffer, but not the colour buffer.
Render the backround scene.
Hide backround scene
Render your entities.
Hide your entities.
Render whatever else you need.

This way, what you render, won't be cleared upon the next renderworld. It basically causes the render to become printed onto the backbuffer as a bitmap image.