Lighting Advice on a background

Started by Matt Frith, Wed 03/02/2010 23:30:30

Previous topic - Next topic

GarageGothic

#20
I'm really not sure about this. So if you had the sun in the rear middle of the screen and a character standing on either side of the foreground, their shadows would be pointing in opposite directions and have the (sun.x, horizon.y) as their vanishing point no matter the perspective of the rest of the room?

Edit: It does work in this background where we can consider the moon.x to be more or less identical to the vanishing point, but if that's not the case you would have to draw parallel lines from the light source transformed by the general perspective of the room. No?

Snarky


GarageGothic

#22
Got what you meant now: The parallel shadows have a common vanishing point - this will be identical to (sun.x, horizon.y) since that's where the direction the rays are emanating from. Interesting, looks like the "outdoors" mode for my shadow module needs a revision as I hadn't taken perspective into considereation, only sun angle and height.

SMF spam blocked by CleanTalk