Page 1 of 1
Render to image/sprite?
Posted: Sun Dec 22, 2013 1:36 am
by Poshu
Hello, while toying with the new sprite functions (such an improvement over the previous ones! GG to the team!), I feel that a way to render to an image or, even better, a sprite is missing. Is there any (fast?) solution?
Re: Render to image/sprite?
Posted: Sun Mar 16, 2014 9:23 pm
by Lebostein
No, this functionality was removed with PB 5.20. So far you could use the command UseBuffer(). A very powerful and useful command.
I do not understand why there is no alternative for it!

Re: Render to image/sprite?
Posted: Thu Apr 10, 2014 4:12 am
by fsw
Browsing the help I found this:
Code: Select all
StartDrawing(SpriteOutput(#Sprite))
; do some drawing stuff here...
StopDrawing()
Isn't this what you need to draw on sprites?
Therefore there is an alternative...
Re: Render to image/sprite?
Posted: Thu Apr 10, 2014 8:37 am
by Fig
We can draw but previously, it was possible to display sprites directly on an other sprite. It's not possible anymore, i think, because sprite in pb are all "3d sprite" now.
Re: Render to image/sprite?
Posted: Thu Apr 10, 2014 1:21 pm
by PMV
UseBuffer() was only supported on spritelib with DirectX7. As of
DirectX9 subsystem and later the default one, UserBuffer() never
worked with that and so Fred has decided to remove the command
completely.
Btw. yes, it was a really nice feature.
MFG PMV
Re: Render to image/sprite?
Posted: Sat Apr 12, 2014 6:10 am
by Poshu
fsw wrote:Browsing the help I found this:
Code: Select all
StartDrawing(SpriteOutput(#Sprite))
; do some drawing stuff here...
StopDrawing()
Isn't this what you need to draw on sprites?
Therefore there is an alternative...
cpu drawing isn't an alternative.