shadows in 2d

Started by
1 comment, last by BeerNutts 10 years, 3 months ago

Is there some ways to implement 2d shadows?

For example, how to draw the shadow of a dragon flying in the sky?

how to compute the location of the shadow?

how to create and animate the shadow?

Advertisement

I guess it depends on the type of game you are working on (i.e. where is the camera and the relative positions of lights and objects) but it can be done. For example, this article on gamedev explains a technique to implement soft shadows in 2D.

Is there some ways to implement 2d shadows?

For example, how to draw the shadow of a dragon flying in the sky?

how to compute the location of the shadow?

how to create and animate the shadow?

For a simple solution, using a semi-transparent circle/oval, that gets smaller the "higher" an object is, and gets bigger it comes lower to the ground. As to where it would show up on the ground, I would keep it at the same location under the object; meaning, if the object immediately dropped onto the ground, the shadow would be right under it. That would keep it simple at least.

I do something like this, but my objects stay at the same height in this image:

SmokeTrails.png

My Gamedev Journal: 2D Game Making, the Easy Way

---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)

This topic is closed to new replies.

Advertisement