Draw3D (by hectic)

Blitz3D Forums/Blitz3D Programming/Draw3D (by hectic)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks for the update!

And one request: is it possible to have maybe a way to set individually the draw order on each drawn sprite or text? maybe not for 3.1 but for a future version?

For now (unless a lot has changed since 3.0) you should be able to get the mesh associated with an image like this:

image3D=LoadImage3D("image.png",2,2,0)
imageMesh=PeekInt(GDrawBank,image3D+DRAWBANKMESH)

Then you can use Blitz's EntityOrder command on the mesh. Note that if you have several images grabbed from a single image using GrabImage3D this won't work because they share the same mesh. I think this is correct anyway.

EDIT: @jhocking - I just spotted your comment. Thanks! That was just a quick test to see if the technique would work. There's a much more impressive demo on its way... :)