View previous topic :: View next topic |
Author |
Message |
zea Member
Joined: 08 Feb 2006 Posts: 6
|
Posted: Wed Sep 20, 2006 7:13 pm Post subject: Light Through Transparency? |
|
|
Is there a way for light to travel through a transparent block? I have the block with a transparent .tga file, and that works fine. However, when I shine a directional light through it, the other side (inside the room) is still dark. How can I achieve this? Thanks,
Zea |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Thu Sep 21, 2006 6:21 am Post subject: |
|
|
Hi Zea,
Here is a little test I did:
1. Draw rectangle. Assign white texture.
2. Draw cube. Assign transparent TGA texture (make sure to set material blendmode to alphablend).
3. Add directional light. Set intensity to 200 (the light is at an angle to the floor which makes it less bright, hence I boosted it a bit)
Here is there result (the 'double' shadow of the characters is caused by the lightmapper taking the logo on both the front and back of the cube into consideration):
Hope that helps!
If not, could you provide a little bit more info on your particular problem? Am I doing something slightly different? Was your light bright enough? Was the texture transparent enough? |
|
Back to top |
|
|
|