Should this be a bug report?
I've been trying to set up 2 objects that are the same size and in the same location, and fade between them using SET OBJECT TRANSPARENCY and SET ALPHA MAPPING ON.
Through numerous experiments I've discovered that SET OBJECT TRANSPARENCY and/or SET ALPHA MAPPING ON breaks when you have more than 1 texture stage applied to the objects, which is my current issue since some of my objects have up to 5 textures.
Here is a quick proof to show what I'm talking about.
sync on : sync rate 30
make object sphere 1, 20
make object sphere 2, 20
create bitmap 1, 64, 64
cls rgb(255,0,0)
red = 1
get image red, 0, 0, 64, 64
cls rgb(0, 0, 255)
blue = 2
get image blue, 0, 0, 64, 64
cls rgb(128,128,128)
grey = 3
get image grey, 0, 0, 64, 64
delete bitmap 1
texture object 1, 0 ` Clear all texture stages
texture object 2, 0
set blend mapping on 1, 0, 1, 3, 4 ` Put our Red image on stage 0 of object 1
set blend mapping on 2, 0, 2, 3, 4 ` Put our Blue image on stage 0 of object 2
` Comment out these 2 lines, and it works.
` Leave them uncommented and it breaks SET OBJECT TRANSPARENCY
set blend mapping on 1, 1, 3, 3, 22 ` Flat bumpmap applied to stage 1
set blend mapping on 2, 1, 3, 3, 22 ` Flat bumpmap applied to stage 1
set object transparency 1, 0
set object transparency 2, 0
set alpha mapping on 1, 100
set alpha mapping on 2, 0
direction# = 0.25
while not escapekey()
text 10, 10, str$(x#,0)
text 10, 30, str$(y#,0)
inc x#, direction#
if x# >= 100 then direction# = -0.25
if x# <= 0 then direction# = 0.25
y# = 100 - x#
set alpha mapping on 1, y#
set alpha mapping on 2, x#
sync
endwhile
If you comment out the 2 lines indicated in the code, then the effect I was after works, but with only a single texture stage.
Should this go into a bug report, or is there another way I should be going about this?