![]() ![]() In this tutorial I don't cover the basics of OpenGL, OpenGL ES 2.0 and Android development. Fabian Sanglard's website: (Shadow Mapping, PCF, VSM)Ĭredit also goes to Shayan Javed - Getting started with OpenGL ES 2.0 shaders on Android.Good tutorials can be found that I also used as source in this demo application: There are much more possible variations of shadow mapping algorithms so feel free to play around and mix them as you like. ![]() PCF results in a smooth shadow as it computes the shadow value as average of the pixels arounds, but it turns out many times to be too slow to produce real time shadows. The simple algorithm is much faster but it has two outputs for each pixel (shadow / no shadow), so the edges are usually aliased. In this tutorial I show basic shadow mapping and PCF (Percentage Close Filtering) with adjustable shadow map size and bias type so you can see how they perform on Android. Many times they are computationally too expensive, especially for mobile phones, so it can be useful to see how they perform in simple cases. Shadow mapping is a solution for dynamic shadows. The application itself (apk) you can download from here: The source code of this tutorial you can find here: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |