How do I create a game that uses 3D?

Is it possible to create one of those games that use the 3d glasses? if so how

Oculus Rift support has been integrated so it is possible