ios - How to render GLKViewController with iphone camera -



ios - How to render GLKViewController with iphone camera -

i have glkviewcontroller renders cube , transformations class helps scaled, moved or rotated. view controller utilize device info rotate cube. want place cube on ios camera. please help.

use avcapture classes avfoundation framework video camera, , cvopenglestexturecache class photographic camera frames opengl es textures. 1 time have such texture, utilize other — phone call glbindtexture , issue draw call. photographic camera info comes in biplanar yuv format, you'll need shader programme reads y , uv textures , converts them rgb output while drawing.

apple's glcameraripple sample code project demonstrates of above.

ios iphone opengl-es-2.0 glkit

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -