Android Question Distortion Effect

treehousefrog

Member
Licensed User
Longtime User
Hey guys!

I've made an Android tech demo for Oculus Rift which displays images, videos and camera streams in a way that makes them suitable for viewing on the headset.

The problem is that technically you're supposed to apply a slight barrel distortion to account for the pincushion distortion of the lenses in the Rift... I think the way to do this is by using the OpenGL library but I'm not sure how as that library looks tough! Alternatively I could edit each pixel of the bitmaps myself with an algorithm but that's also super tough.

I don't suppose anyone knows/could should me a good way to apply such a distortion to an image? Or better yet a panel containing an image and maybe other views?

Any help will be massively appreciated! Thanks :-D
 
Top