It is currently Sat Oct 19, 2019 6:23 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Render to image/sprite?
PostPosted: Sun Dec 22, 2013 1:36 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Jan 25, 2005 7:01 pm
Posts: 460
Location: Canada
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Render to image/sprite?
PostPosted: Sun Mar 16, 2014 9:23 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 11, 2004 7:07 am
Posts: 600
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! :(


Top
 Profile  
Reply with quote  
 Post subject: Re: Render to image/sprite?
PostPosted: Thu Apr 10, 2014 4:12 am 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1459
Location: North by Northwest
Browsing the help I found this:
Code:
  StartDrawing(SpriteOutput(#Sprite))
    ; do some drawing stuff here...
  StopDrawing()

Isn't this what you need to draw on sprites?

Therefore there is an alternative...

_________________

I am to provide the public with beneficial shocks.
Alfred Hitshock


Top
 Profile  
Reply with quote  
 Post subject: Re: Render to image/sprite?
PostPosted: Thu Apr 10, 2014 8:37 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Apr 30, 2009 5:23 pm
Posts: 306
Location: Côtes d'Azur, France
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.

_________________
There are 2 methods to program bugless.
But only the third works fine.

Win10, Pb x64 5.70 LTS


Top
 Profile  
Reply with quote  
 Post subject: Re: Render to image/sprite?
PostPosted: Thu Apr 10, 2014 1:21 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Feb 24, 2007 3:15 pm
Posts: 728
Location: Germany
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Render to image/sprite?
PostPosted: Sat Apr 12, 2014 6:10 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Jan 25, 2005 7:01 pm
Posts: 460
Location: Canada
fsw wrote:
Browsing the help I found this:
Code:
  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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye