Light from inside

Light from inside

Postby erbsen » Wednesday, 11.July 2012, 18:06

Nothing fancy, just a sphere, light and shadows.

Light_from_inside.wz4
You do not have the required permissions to view the files attached to this post.
erbsen
Operator
Operator
 
Posts: 873
Joined: Thursday, 15.July 2004, 23:00
Location: Os

Re: Light from inside

Postby Skinnytorus » Friday, 13.July 2012, 07:48

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 ;)
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Light from inside

Postby erbsen » Friday, 13.July 2012, 08:10

Thanks.
Now I'm starting to understand the true purpose of Select 'by texture' mode ;)
Can you elaborate that?
erbsen
Operator
Operator
 
Posts: 873
Joined: Thursday, 15.July 2004, 23:00
Location: Os

Re: Light from inside

Postby Skinnytorus » Friday, 13.July 2012, 08:28

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)!
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Light from inside

Postby erbsen » Friday, 13.July 2012, 08:32

Ahh, now i get it, thanks. :)
erbsen
Operator
Operator
 
Posts: 873
Joined: Thursday, 15.July 2004, 23:00
Location: Os

Re: Light from inside

Postby Skinnytorus » Friday, 13.July 2012, 23:04

I've found a way to generate much more accurate alpha shadows.
Just use Kill op with alpha texture map! :)
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Light from inside

Postby erbsen » Saturday, 14.July 2012, 07:56

Sweet, that´s pretty clever, thanks Skinnytorus. :)
erbsen
Operator
Operator
 
Posts: 873
Joined: Thursday, 15.July 2004, 23:00
Location: Os

Re: Light from inside

Postby Skinnytorus » Saturday, 14.July 2012, 12:21

Yeah, it works but it's quite an impact on my GPU (Nvidia GTX 590) :shock:
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Light from inside

Postby erbsen » Saturday, 14.July 2012, 15:46

Yes but who cares? All that matters is how it looks. ;)
erbsen
Operator
Operator
 
Posts: 873
Joined: Thursday, 15.July 2004, 23:00
Location: Os

Re: Light from inside

Postby Skinnytorus » Saturday, 14.July 2012, 16:58

Can't help agreeing with you on this one... ;)
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46


Return to Snippets



Who is online

Users browsing this forum: No registered users and 3 guests

cron