Page 1 of 1

Light from inside

PostPosted: Wednesday, 11.July 2012, 18:06
by erbsen
Nothing fancy, just a sphere, light and shadows.

Light_from_inside.wz4

Re: Light from inside

PostPosted: Friday, 13.July 2012, 07:48
by Skinnytorus
Nice. Looks like a way out - wz4 does not support alpha shadows. Now I'm starting to understand the true purpose of Select 'by texture' mode ;)

Re: Light from inside

PostPosted: Friday, 13.July 2012, 08:10
by erbsen
Thanks.
Now I'm starting to understand the true purpose of Select 'by texture' mode ;)
Can you elaborate that?

Re: Light from inside

PostPosted: Friday, 13.July 2012, 08:28
by Skinnytorus
OK.
IMHO 'Alpha shadows' feature means ability of a mesh to cast shadow according to alpha channel of its material.
WZ4 can't do that. There is an example to that effect in example.wz4 with the comment that wz4 does not do that (you can find it by searching an Alpha op).

So, in order to fake alpha shadows, you have to delete faces that represent material's alpha channel (of course it's a rough alternative, but may work in some cases).
In order to delete them, you have to first select them. That's where select by texture comes into play :) So, you select faces by your alpha map, then delete them and pseudo alpha shadows should start to work (like they do in your example)!

Re: Light from inside

PostPosted: Friday, 13.July 2012, 08:32
by erbsen
Ahh, now i get it, thanks. :)

Re: Light from inside

PostPosted: Friday, 13.July 2012, 23:04
by Skinnytorus
I've found a way to generate much more accurate alpha shadows.
Just use Kill op with alpha texture map! :)

Re: Light from inside

PostPosted: Saturday, 14.July 2012, 07:56
by erbsen
Sweet, that´s pretty clever, thanks Skinnytorus. :)

Re: Light from inside

PostPosted: Saturday, 14.July 2012, 12:21
by Skinnytorus
Yeah, it works but it's quite an impact on my GPU (Nvidia GTX 590) :shock:

Re: Light from inside

PostPosted: Saturday, 14.July 2012, 15:46
by erbsen
Yes but who cares? All that matters is how it looks. ;)

Re: Light from inside

PostPosted: Saturday, 14.July 2012, 16:58
by Skinnytorus
Can't help agreeing with you on this one... ;)