I had a very interesting problem while I was experimenting around with texture transparency.
I tried to create texture with alpha channel and saved it as a TGA file. Then I try to create some sphere primitives and texture it with that TGA file.
It seems to me that the order of object creation affect the texture transparency, i.e. the object that created later cannot have transparency over the object that created earlier, BUT the reverse is opposite.
For example, in the following code snippet:
make object sphere 1, 50
make object sphere 2, 50
make object sphere 3, 50
make object sphere 4, 50
make object sphere 5, 50
All these spheres are texture mapped with the TGA file that has alpha channel (partially transparent). I position the sphere in a row by lining up them one after another. As I move my camera around, I observed that:
- I can see thru sphere 2 and get sphere 3 till sphere 5.
- I can't see thru sphere 2 to get sphere 1.
- I can see thru sphere 3 and get sphere 4 and sphere 5.
- I can't see thru sphere 3 to get sphere 1 and sphere 2.
- I can't see thru sphere 5 to get sphere 1 till sphere 4.
Funny eh? If anybody interested in getting the source code for this experiment, just tell me. I am wondering is this a bug in DBpro?
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.
http://www.badnose.com/