Transparent Mesh?

BlitzMax Forums/MiniB3D Module/Transparent Mesh?

siread(Posted 2007) [#1]
I have a sphere with an earthmap texture. Then I have a second slightly larger sphere with a cloud texture applied to it. I don't want the cloud sphere to block the light passing through it. Is there anyway to stop the cloud mesh from affecting light?

Even better, is there any way for the transparent areas of the cloud texture to allow light through, whilst the cloudy areas block light?


simonh(Posted 2007) [#2]
Lights just pass through objects - otherwise shadows would be created which unfortunately doesn't happen.

To create the cloud shadows the best way would be to fake it instead - i.e. create a black+alpha version of the clouds and apply it to the earth.


siread(Posted 2007) [#3]
I see, but my earth sphere texture is darker when I encase the earth with a cloud mesh depending on the cloud mesh alpha. Is there any way I can stop the outer mesh affecting the brightness of the mesh beneath?

2 cloud meshes, 0.5 and 0.1 alpha:


0 cloud meshes:



siread(Posted 2007) [#4]
Aha! Had I chat with Mongia and by using a combination of entityalpha and entityblend I can achieve the desired level of brightness. :)



Funny, I think I prefer the first pic now. Heheh. Still, I learnt something new. Cheers Mongia. :D