How come, no matter what I try, when I use CreateTexture it never has an alpha?
Here's an example..
Even adding in the Flag "1" doesn't help
Here's an example..
Graphics3D 640,480,32,2 SetBuffer BackBuffer() CreateLight() Global Camera = CreateCamera() PositionEntity Camera,0,2,-6 Global TextureAlpha = CreateTexture(512,512,2) SetBuffer TextureBuffer(TextureAlpha) Color 0,0,0 ; just to make sure there is a black background Rect 0,0,512,512 Color 255,255,255 Rect 128,128,256,256 Color 255,0,0 For c = 0 To 22;<Thickness Rect c,c,512-(c*2),512-(c*2),0 Next SetBuffer BackBuffer() Global TextureMasked = CreateTexture(512,512,4) SetBuffer TextureBuffer(TextureMasked) Color 0,0,0 ; just to make sure there is a black background Rect 0,0,512,512 Color 255,255,255 Rect 128,128,256,256 Color 255,0,0 For c = 0 To 22;<Thickness Rect c,c,512-(c*2),512-(c*2),0 Next SetBuffer BackBuffer() Global Ground = CreatePlane() EntityColor Ground,128,64,0 Global Cube1 = CreateCube() PositionEntity Cube1,2,1,1 EntityTexture Cube1,TextureAlpha Global Cube2 = CreateCube() PositionEntity Cube2,-2,1,1 EntityTexture Cube2,TextureMasked Color 255,255,255 While Not KeyDown(1) TranslateEntity Camera,(KeyDown(205)-KeyDown(203))*.5,(KeyDown(200)-KeyDown(208))*.5,(KeyDown(30)-KeyDown(44))*.5 UpdateWorld RenderWorld Text 0,0,"Arrow Keys to move up, down, left, right" Text 0,20,"A and Z to move forward and backward" Flip Wend End
Even adding in the Flag "1" doesn't help