transparent sprites on sprite3d buffer

Just starting out? Need help? Post your questions and find answers here.
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

transparent sprites on sprite3d buffer

Post by coma »

Hi.
I try to draw some sprites with transparency into another sprite, but without success.

for example :

Code: Select all

      UseBuffer(0)
         displayTransparentSprite(4,0,0)   ; >>> not displayed
      usebuffer(-1)
sprite 0 is a 3d sprite.
with classic sprite buffer, it works, but when the buffer sprite is created with #PB_Sprite_Texture, no transparent sprites are displayed.

(I need to use a 3Dsprite buffer to zoom it, later, when I display it on the screen)

is there any way to do this ?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

It's been asked for iirc, but atm it's not supported afaik.
BERESHEIT
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

Post by coma »

thanks.

well, I found a solution, not very beautiful, I use an intermediate buffer :

I draw all my sprites on another classic sprite (here transparency works fine), then I draw it with displaysprite() on my sprite3d buffer.
Post Reply