Resources and Support
 Pixel Joint Forum : The Lounge : Resources and Support
Message Icon Topic: correct shadow technique Post Reply Post New Topic
Author Message
davethecross
Seaman
Seaman
Avatar

Joined: 26 November 2010
Online Status: Offline
Posts: 16
Quote davethecross Replybullet Topic: correct shadow technique
    Posted: 18 December 2010 at 10:29am
Hey guys,
I've known for awhile now that shadows are never black and they are usually some shade of purple, but so far I've just been winging it not knowing exactly what I was doing. Sometimes it turns out and sometimes it doesn't. The result is just random because I'm just guessing at the colors and position.

So what I'm asking to all you pros: What is the formula/algorithm/whatever for knowing what color the shadow should be and where/how bright etc. I'm sure there are many factors that would affect this, but I'm just looking for some general rules. I'm ready to take the next step. Enlighten me!

Thanks
IP IP Logged
theguy
Commander
Commander
Avatar

Joined: 03 November 2023
Online Status: Offline
Posts: 417
Quote theguy Replybullet Posted: 18 December 2010 at 10:38am
Shadows aren't purple, they're a darker version of whatever surface they're on, if they're on grass it's dark green. They also can be black, on very dark surfaces. You can also use black shadows as a stylistic option too. For a darker atmosphere. Shadows are just what happens when there is a lack of light. There are only two factors, the colour of the surface the shadow is on and the direction of the light source. If your light it coming from the top left, you would have the shadow in the bottom right. It's far more simple than you think.
IP IP Logged
DawnBringer
Commander
Commander
Avatar

Joined: 11 August 2024
Online Status: Offline
Posts: 568
Quote DawnBringer Replybullet Posted: 18 December 2010 at 12:21pm
The perceived hue of a shadow on a neutral area would be close to the complementary color of the light. In case of yellowish sunlight this would be moving towards a shade of blue (if you ever painted with oil you'd know what amazing depth and realism a dab of ultramarine can give your shades). And I hear classic painters often shifted their shadows towards purple...so you're not really wrong. Besides, dark purple is a very useful color in a limited palette since it can ramp nicely to almost every hue. (The four darkest colors of my Iso-ology palette are all blue and purple-ish)

The darkness/contrast of a shadow "simply" depends on how much ambient light (or additional lightsources and reflections) you have. With one lightsource, no ambient light or reflections the shadow would be pitch black.

For your average scene the shadow would generally be a darker version of the surface it falls on...just remember to put a little blue in there and it will look a lot better :D
IP IP Logged
davethecross
Seaman
Seaman
Avatar

Joined: 26 November 2010
Online Status: Offline
Posts: 16
Quote davethecross Replybullet Posted: 18 December 2010 at 1:50pm
Thanks guys. So, for example, we've all seen this screenshot:

I see that it's blue, but why does it go from dark to light? almost the opposite of what you would expect. What is lighting it like that? is it just a method to trick the mind or is that how it looks in real life? Why is there a "normal" shadow on the grass and the blue in the trees? what's the difference?
IP IP Logged
DawnBringer
Commander
Commander
Avatar

Joined: 11 August 2024
Online Status: Offline
Posts: 568
Quote DawnBringer Replybullet Posted: 18 December 2010 at 2:37pm
Not much realism about that, looks more like there's a secondary blue lightsource. I think it's just a way to get some variance from all the greens and an attempt to separate the trees from the grass a bit.
IP IP Logged
Finoli
Midshipman
Midshipman


Joined: 13 December 2010
Online Status: Offline
Posts: 48
Quote Finoli Replybullet Posted: 18 December 2010 at 3:21pm
I actually haven't seen that screenshot :P
IP IP Logged
theguy
Commander
Commander
Avatar

Joined: 03 November 2023
Online Status: Offline
Posts: 417
Quote theguy Replybullet Posted: 18 December 2010 at 6:35pm
Well it's a good job you've seen it now! You get banned for not seeing that screenshot on here. Just hope it doesn't still happen!

Edited by theguy - 18 December 2010 at 6:50pm
IP IP Logged
Finoli
Midshipman
Midshipman


Joined: 13 December 2010
Online Status: Offline
Posts: 48
Quote Finoli Replybullet Posted: 19 December 2010 at 5:46am
I apologize for any inconvenience, master..
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum