WP7 Game: 3D shadow optimization - by Jaggred
I think it’s time to write about my problem with performance.
At the beginning I was just putting models to current map and drawing them. With 100 models on screen I’ve got 30 fps what was maximum fps for WP game.
Later I found way to draw realistic real-time shadows. (Matrix.CreateShadow()). It creates 2D object projected on plane, from 3D model. For shadows its needs transparency and change stencil state to draw binary (0 or 1) to prevent multilayered shadows. But this method required draw whole model again.
Read More from: Original Source
Post Contributed by: Kunal Chowdhury
Kunal is the Site Admin and Contributor of Silverlight-Zone. He is a Software Engineer, Microsoft Silverlight MVP, Code Project Mentor and a Code Project MVP. He is also an active Author in SilverlightShow.net and a speaker in various community events. He works on Microsoft Platform and very passionate about Silverlight technology. He started his career in 2007 and achieved various awards during his professional life.
He shares his findings in his personal blog: http://www.kunal-chowdhury.com and he also tweets at: @kunal2383.