Planet, moon and shadows!

Post your own tutorials, guides and demos.

Post » Wed Feb 04, 2009 7:36 pm

[quote="David":29m2f8bv]You could just put your shadows on a new layer, make the shadows 100% opacity, and then make the layer itself 20% opacity...that will give you semitransparent shadows.[/quote:29m2f8bv]

and with that, David pwned the noobs. the end.



lol jk :mrgreen: , nice solution dav, had'nt thought of that.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Wed Feb 04, 2009 9:00 pm

I don't understand... aren't shadows semi-transparents already? That is settable as Light property.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Wed Feb 04, 2009 10:06 pm

Hot damn, that's a good solution.

Shadows are semitransparent already, yes. But it's at an object level, so if two shadows overlap, the effect adds. (Note: probably abusing terminology).

David's saying that instead of making the shadows semitransparent, you can put the shadowcasters on a new layer and make the whole layer semitransparent.

Because layer transparency is done at a whole-layer level, the shadows won't add to each other.
B
5
S
2
G
4
Posts: 113
Reputation: 2,101

Post » Thu Feb 05, 2009 8:16 am

Oh.

(A minute later)

Oh!

I feel so silly. :lol:

100% opacity shadows add to 100% opacity when overlapping, so it is not quite visible, while layer opacity works uniformly. Brilliant.

Edit: An updated cap has been attached.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Thu Feb 05, 2009 9:31 am

That's looking good!

I'd recommend moving the shadows layer below the objects layer, though - that way the shadows trail after the object instead of starting in the middle.
B
5
S
2
G
4
Posts: 113
Reputation: 2,101

Post » Thu Feb 05, 2009 10:19 am

No, I intentionally moved shadows above objects - that way it gives the '3d ball' feel. Planets cast shadows that way :)
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Thu Feb 05, 2009 11:59 am

I wondered if that might be intentional! But it doesn't look quite right to me; shadows are usually soft on planets which have an atmosphere:

http://antwrp.gsfc.nasa.gov/apod/image/ ... esa_c1.jpg

...and the dividing line isn't totally clean even on airless bodies (because of variations in terrain height):

http://www.astromax.org/planets/images/ ... -Moon5.jpg

You could replicate the former effect by putting a sprite over each planet (with a gradient sphere, filled black and white, and an effect like Lighten). Then you could adjust opacity of the lighting effect with distance from sun.

Or you could keep the clean and simple art style. I'll butt out. :)
B
5
S
2
G
4
Posts: 113
Reputation: 2,101

Previous

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests