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
Post a Comment