Sprites not transparent on some systems

Everything else that doesn't fall into one of the other PB categories.
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Sprites not transparent on some systems

Post by dige »

Could someone test please this litte calendar:

http://www.dbsthumb.de/Download/Kalender.exe [128KB]


Image

On some computers the Snowflaks are not drawed transparent.
What could be a reason?
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

Here are two screenshots ... I guess you'll see what I mean ;-)

Alpha OK

Image


Alpha Failed

Image

What can I do? I use this Bitmap-Image :

Image

16 Colors ... ColorIndex 0 is RGB(0, 0, 0)
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Post by Comtois »

work fine here with GEFORCE 6800
Please correct my english
http://purebasic.developpez.com/
heinz.goldbach
User
User
Posts: 25
Joined: Mon Dec 12, 2005 8:35 pm
Location: Neuss - Germany

Post by heinz.goldbach »

work also fine here with NVIDIA RIVA TNT 2 Model 64 (original MS Driver XP Prof. SP 2
Intel i3, 8 GB RAM, 2*200 GB HDD, Windows 7 64bit
SUSE LINUX 10.1
Mac G4, OSX 10.4.11, 80 GB HDD, 1,5 GB RAM
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Dige, another problem is that the mouse is captured within the program borders so I can't mouse the mouse anywhere else!!!
User avatar
Deeem2031
Enthusiast
Enthusiast
Posts: 216
Joined: Sat Sep 20, 2003 3:57 pm
Location: Germany
Contact:

Post by Deeem2031 »

no problems with 32bit and 16bit (GForce FX 5200)
irc://irc.freenode.org/#purebasic
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

No problems here, nVidia GeForce 7600 GS
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

I've got the problems here. S3 ProSavage DDR.

Is the sprite 64x64 or 32x32 pixels?
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

No problem here - integrated Intel graphics, i.e. 82945G Express (I think otherwise known as Intel Graphics Media Accelerator 950).
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

No problem here.
WinXP PRO SP2 spanish with a bad VGA (a SIS M760GX)
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

Works fine with my ATI 9600 Pro but I did have an ATI 9100 at one time that didn't display some things that had transparency correctly. I believe it was an error with the 9100 card itself though.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
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 »

How are you displaying it? DisplayTransparentSprite, DisplayAlphaSprite, DisplayTranslucentSprite, DisplaySprite3D, which? Could we see some code?
BERESHEIT
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

Thanks everybody for testing. And nice to read that is works fine.
Trond wrote:I've got the problems here. S3 ProSavage DDR.

Is the sprite 64x64 or 32x32 pixels?
Trond, know I know 2 users with problems, but both have a S3 graficsystem.
So, it might be only a S3 problem?

Could it be a problem of a 4-Bit Bitmap? I've created another
Demo with an 8Bit SnowFlake ... could you please test this too?

http://www.dbsthumb.de/Download/Kalender_8Bit.exe [135KB]


I use a 32x32 4Bit ( 16 Colors ) Bitmapfile und DisplaySprite3D() to
display the Sprites, because I need Zoom, Rotation and Alpha.

Guess only DisplaySprite3D() is able to do that job?

Here is the Display Part :

Code: Select all

Procedure   CAL_FX_Snow()
  
  If SLS_SnowCount And Start3D()
    For n = 0 To SLS_SnowCount
      With Snow(n)
        DisplaySprite3D( \SpriteID, \x, \y, \Alpha)
        \y + \Speed
        If \y > ScreenSizeY
          CAL_GetRandomSettings( @Snow(n) )
        EndIf  
      EndWith
    Next
    Stop3D()
  EndIf
EndProcedure
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 »

Your code looks good, I just wonder if a 4bit color graphic is appropriate for DisplaySprite3D, as the docs suggest a 32bit screen for using it. Is it possible to modify the snowflake in a graphics editor and try with a 32bit snowflake? It might solve it, not sure. Worth a try though, imho.
BERESHEIT
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

I've got the same problem with the new program. And the Sprite3D example. But not with Blitz programs.
Post Reply