Game Development Community

How can I make a trasparent texture that cast shadows? (T3D)

by Oscar Velzi · in Artist Corner · 01/30/2010 (5:15 pm) · 6 replies

I'm working on some isometric 3D rpgs and I'm having a small issue with shadows. Basically, in our games, when you enter a building, the roof disappears so you can see your character inside. Since the roof is gone, the sun lighting goes through and shows that there is no roof.

http://img35.imageshack.us/img35/5786/interiorvx.jpg

The idea is to have the lighting not to affect the interiors. So one idea I had was to place a transparent plane that cast shadows in the place the roof is, not allowing sunlight to get through but being able to see the interior. There will be interior lighting provided by some point lights. Any other solution that does not involve changes to the model structure are welcome. Thanks!

#1
01/30/2010 (5:38 pm)
why don't you tonemap your interiors and turn off shadows at all? Have you heard of Purelight? Not sure if this will help you.
#2
01/30/2010 (5:45 pm)
Thanks, but turning off all shadows is not a good solution for me. The mood they give to the exteriors is something I don't want to lose. Also, I prefer not to use lightmaps.
#3
01/30/2010 (6:55 pm)
Have a canopy floating above the camera?
#4
01/30/2010 (7:03 pm)
I don't think it would work, as the camera is not fixed, you can rotate it, and tilt it from 45º to 90º. Also, wouldn't it cast shadows outside buildings too? Thanks for the suggestion, anyway =)
#5
01/31/2010 (8:29 am)
The best possible effect would be achieved with PureLight. If you don't want to use lightmaps, you could use the new 1.1 "cookies" feature or fake the shadow with a decal.

Edit: It just downed on me what you exactly need. :) Cookies might not be fit afterall.. I'm not sure you can do this without modifying some code.

#6
01/31/2010 (2:31 pm)
Well, I'll ask our programmer to do some magic, then ;)

Thanks!