Math3DView - Specular light


Math3DView Specular is the first 3D engine I've made for Palm OS, mainly designed for mathematics and sciences. The goal was to easily draw complex 3D curves. This first version includes a lot of options, one of them is the specular light rendering.

Because the Phong interpolation implies interpolation of normal vector that is computationally expensive, I use instead a polynomial function for rendering specular light that decreases quickly the light intensity that is not in front of the eyes (the camera). The visual effect is not exactly the same but quite sufficient to simulate the reflexion model.