Search code examples
androidopengl-estextures

How to render glass/ice material on Android smartphone using OpenGL


What is the best way to render glass/ice materials on Android devices with no ray tracing?

I have seen aplha+blending but even with proper lighting, the results just looked "plastic".

Can we do better?


Solution

  • You need proper reflection and refraction to draw good looking transparent materials.

    You basically need environment texture as a source of reflection/refraction. I recommend to render the scene without transparent material to make the environmental source texture. Cube-mapping is usually recommended.

    Visit here to see how to implement reflection and refraction.