Object Pick Selection Using Framebuffer and Picking Box - flexigame.com Technical Blog

Object Pick Selection Using Framebuffer and Picking Box

Pick selection (or mouse picking) is a way of selecting objects in 3D scene. It can be very useful for strategy games or any kind of 3D editors. There are different methods to achieve this. Most of them require ray casting (projecting 3D ray from mouse position, through the camera and into the scene) and converting mouse click position from viewport space to worldspace position. With ray origin position...
Layer Masking Effect - flexigame.com Technical Blog

Layers masking effect using OpenGL ES shader with libGDX

In this article I will explain the basics of using texture alpha masks with multiple layers and how to create complex effects using this neat trick. The source code will be based on the libGDX framework and written in Java. Recently I’ve used this code for intro and menu effect in my last Android game. Custom pixel shader used with SpriteBatch will be required for this effect to work....