Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Dynamic Shadows on the iPhone

Loading...

Sign in or sign up now!
8,406
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 21, 2009

A quick demo of dynamic shadows in 2D running in our new engine for the iPhone. The game has not yet been announced, but stay tuned. Physics are provided by our own Chipmunk Physics engine.

Thanks to some nice tricks we came up with, this runs at nearly a solid 60fps on even a first generation iPod Touch with 5 lights and all the physics objects on the screen at once.

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (slembcke)

  • Very cool!

    I'm very interested in how you achieved the shadowing with multiple lights.

  • @Buxxy21 Basically you add all the lights together into a buffer. Before compositing each light into the buffer you generate a shadow mask for it. The tricky part is to make sure that you cut the drawing down to only the pixels that you need to draw as it uses a TON of fillrate.

see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • @slembcke That's nearly the exact idea I had in mind! Thanks for the information.

    My knowledge of shaders and math is limited, so it'll take me some time to finish this. I hope I can find the time.

  • cool

  • One word - awesome!

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more