This content has been marked as final. Show 3 replies
Suppose the name of the texture in question is "alpha3", and your 3D world is called "3D world". Here's a line of code that should make the texture appear transparent around the edges:
member("3D world").texture("alpha3").renderFormat = #rgba8888
These will also work, but may give less satisfactory results:
member("3D world").texture("alpha3").renderFormat = #rgba5551
member("3D world").texture("alpha3").renderFormat = #rgba4444
Note that the numbers indicate how many bits are used for each channel (Red, Green, Blue, Alpha).
What I will do..
1. Separate colored texture
2. Make alpha texture
3. Use blendSourceList = #alpha
You will have more control on the alpha intensity.
Your problem comes from the following:
Your source image has premultiplied alpha channel (I presume
premultiplied with white) while you shuld use straight alpha channel.
Anyway - the best way to import transparency to Direcyop is Photocaster