Render a Sprite3D onto a sprite or image
Posted: Fri Apr 14, 2006 11:02 am
Afaik, PureBasic doesn't currently allow for any output of a Sprite3D to anything but a DX screen. It would be very useful if the UseBuffer() command would allow for a Sprite3D to be displayed to another sprite, same as you can do with a 2D sprite. The displayed image on the 2D sprite would no more be usable as a 3D sprite, but who cares? I just want the rotated/zoomed/transformed image. Something like a SaveSprite3d() command would also be quite useful.
It is possible to accomplish the task now, you just have to go a slightly roundabout way with DisplaySprite3D() and GrabSprite(), followed by SaveSprite() and it all takes place on the backbuffer where nobody sees it if you don't FlipBuffers(). But a couple direct commands would wrap it all up nice and neat.
It is possible to accomplish the task now, you just have to go a slightly roundabout way with DisplaySprite3D() and GrabSprite(), followed by SaveSprite() and it all takes place on the backbuffer where nobody sees it if you don't FlipBuffers(). But a couple direct commands would wrap it all up nice and neat.