Comments on: How do I make a ball arcing through the air and it’s shadow traveling on the ground converge simultaneously on the ground?
http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-make-a-ball-arcing-through-the-air-and-its-shadow-traveling-on-the-ground-converge-simultaneously-on-the-ground/
Thu, 30 Mar 2017 02:55:51 +0000hourly1By: TomLiotta
http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-make-a-ball-arcing-through-the-air-and-its-shadow-traveling-on-the-ground-converge-simultaneously-on-the-ground/#comment-111353
Fri, 21 Sep 2012 23:27:03 +0000http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-make-a-ball-arcing-through-the-air-and-its-shadow-traveling-on-the-ground-converge-simultaneously-on-the-ground/#comment-111353Rats. I forget that was entered into FF and not IE. Sorry about the paragraphs. — Tom
]]>By: TomLiotta
http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-make-a-ball-arcing-through-the-air-and-its-shadow-traveling-on-the-ground-converge-simultaneously-on-the-ground/#comment-111352
Fri, 21 Sep 2012 23:25:24 +0000http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-make-a-ball-arcing-through-the-air-and-its-shadow-traveling-on-the-ground-converge-simultaneously-on-the-ground/#comment-111352(I assume you intend 3D.) There is a line that can be drawn from wherever the ball is to wherever the sun is. When extended to the ground, the line will mark the position of the shadow.The sun is so far away that angle of the line relative to the ground appears to be the same throughout the entire flight of the ball. So you can imagine that the line moves along with the ball and always points up/down at the exact same angle.A result is that a ‘realistic’ shadow can travel across the ground much farther than the ball. That is, assuming the ground is along the X and Y axes (and Z is vertical), a pop-up could show the ball going straight up with X & Y remaining constant and Z increasing then decreasing. At the same time, the shadow will be moving in the X and/or Y directions with Z remaining constant. At all times, you can imagine a line through the ball up to the sun and down to the ground. The angle of the line never changes.The height of the sun can always be computed as Z(ball) + 1. I.e., as the ball rises and falls, the {imaginary} sun moves in concert. And the sun’s X/Y coordinates will depend on what time of day you want the shadow to represent. Those coordinates will always also be relative to the ball’s X/Y coordinates. I.e., as the ball moves over the ground, the sun moves in the exact same way but at some angle off from the ball.The resulting line to the ground touches the shadow.If any of that makes sense, we might work out an efficient formula.Tom
]]>