Render a Sprite3D onto a sprite or image

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Render a Sprite3D onto a sprite or image

Post by netmaestro »

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.
Last edited by netmaestro on Fri Apr 21, 2006 8:32 am, edited 2 times in total.
BERESHEIT
THCM
Enthusiast
Enthusiast
Posts: 276
Joined: Fri Apr 25, 2003 5:06 pm
Location: Gummersbach - Germany
Contact:

Post by THCM »

Very good request! Thumbs up!
The Human Code Machine / Masters' Design Group
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

I second that request!
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

I third that request
Post Reply