What i want to say is, that my card can normaly all direct-x things. (ok, it can't bumpmapping and thant kind, but basic-things (and transparence background IS a basic thing) should be no problem. I can run Warcraft3 with no problems (ok, the fps is about 10, but it runs!)
And this small example
Code: Select all
If InitSprite()=0 Or InitSprite3D()=0
MessageRequester("Init-Problem","Can't init")
EndIf
If OpenScreen(320,200,32,"test")=0
MessageRequester("Screen-Problem","Can't open")
EndIf
LoadSprite(1,"pic_black.bmp",#PB_Sprite_Texture)
LoadSprite(2,"pic_pink.bmp",#PB_Sprite_Texture)
TransparentSpriteColor(2,255,0,255)
CreateSprite3D(1,1)
CreateSprite3D(2,2)
x1=Random(320):y1=Random(200):t1=Random(100)+155
x2=Random(320):y2=Random(200):t2=Random(100)+155
dx1=1:dy1=1:dt1=1
dx2=-1:dy2=-1:dt2=-1
Repeat
ClearScreen(0,200,100)
x1+dx1:If x1>320-32:x1=320-32:dx1=-1:EndIf
If x1<0:x1=0:dx1=1:EndIf
y1+dy1:If y1>200-32:y1=200-32:dy1=-1:EndIf
If y1<0:y1=0:dy1=1:EndIf
t1+dt1:If t1>255:t1=255:dt1=-1:EndIf
If t1<0:t1=0:dt1=1:EndIf
x2+dx2:If x2>320-32:x2=320-32:dx2=-1:EndIf
If x2<0:x2=0:dx2=1:EndIf
y2+dy2:If y2>200-32:y2=200-32:dy2=-1:EndIf
If y2<0:y2=0:dy2=1:EndIf
t2+dt2:If t2>255:t2=255:dt2=-1:EndIf
If t2<0:t2=0:dt2=1:EndIf
StartDrawing(ScreenOutput())
Locate(100,100)
DrawText(Str(x1)+" "+Str(y1)+" "+Str(t1))
DrawText("/"+Str(x2)+" "+Str(y2)+" "+Str(t2))
StopDrawing()
Start3D()
DisplaySprite3D(1,x1,y1,t1)
DisplaySprite3D(1,x2,y2,t2)
Stop3D()
FlipBuffers()
Until getasynckeystate_(#vk_escape)&$FF00
End
shows me, that the transparence background is function! (The sourcecode of the Racer would be nice, but it seems, that that is imposible...)
(pic_black has a black background, pic_pink has a pink/lila background).
And when i remember right: I has with my Mosaik the problem, that TransparentSpriteColor() work with some backgroundcolors (i have change the color and then it works....) So maybe here is a problem.
Please Tomcat, when you can, make a little-test-file with a black tree-background.
@Dontmailme:
Please test the new Speed-Meter-File: Is the Speedmeter with a transparent background?