Setting transparency on to an instanced object with a partially transparent texture does not have the desired effect.
It seems that the fully transparent parts work ok but the parts with partial transparency show through to the background UNLESS there is another object between them.
You will need an image with partial transparency to run the code. Click the download button to use the one that I have used.
`Transparency with instanced objects Bug Report
autocam off
`Load image with trasparency
load image "A.png", 1
`Create an image to use as a backdrop
create bitmap 1, 1024, 1024
box 0, 0, 1024, 1024, rgb( 255, 0, 0 ), rgb( 0, 255, 0 ), rgb( 255, 255, 0 ), rgb( 0, 0, 255 )
get image 2, 0, 0, 1024, 1024, 1
delete bitmap 1
`Create a plain and texture it with the transparent image
make object plain 1, 256, 256
texture object 1, 1
set object transparency 1, 2
set object light 1, 0
`Make an instance of the object
instance object 2, 1
set object transparency 2, 2
`Clone the object
clone object 3, 1
set object transparency 3, 2
`Make a background image
make object plain 5, 1700, 1700
texture object 5, 2
set object light 5, 0
`Make a sphere that passes behinf the transparent object
make object sphere 4, 250
`Position the objects
position object 1, 0, 0, 0
position object 2, -350, 0, 0
position object 3, 350, 0, 0
position object 5, 0, 0, 300
`position the camera
position camera 0, 0, -750
point camera 0, 0, 0
sync on
sync rate 60
tmode = 2
do
text 0, 0, "Transparency Mode: " + str$( tmode )
text 70, 325, "Instanced object"
text 260, 325, "Original object"
text 450, 325, "Cloned object"
position object 4, sin(x) * 600, 0, 200
inc x
for k = 2 to 7
if keystate( k )
for j = 1 to 3
set object transparency j, k - 1
tMode = k - 1
next j
endif
next k
sync
loop
You Tube Video