Questions tagged [glkview]

The GLKView class simplifies the effort required to create an OpenGL ES application by providing a default implementation of an OpenGL ES-aware view in iOS 5.0 and later.

GLKView class simplifies the effort required to create an OpenGL ES application by providing a default implementation of an OpenGL ES-aware view. A GLKView directly manages a framebuffer object on developer application’s behalf; developer's application simply needs to draw into the framebuffer when the contents need to be updated.

79 questions
2
votes
1 answer

Freezes when scrolling UICollectionView

I'm developing photo editor app, but I have a problem with render filtered images in UICollectionView. I'm using Operation and OperationQueue. When I start scrolling the collectionView, filtered images are being updated. How can I fix…
nik3212
  • 392
  • 1
  • 6
  • 18
2
votes
2 answers

How to resolve GLKView viewport issue in iOS

I am trying to display an image using OpenGL ES in iOS. But image is covering only one quadrant of the screen. How can I show it to full screen?
R. Jari
  • 305
  • 3
  • 13
2
votes
0 answers

CIContext drawImage does not work

I am not really aware of CI libraries and only functions descriptions in Apple's documentation is not enough for a person that never worked with graphics or image processing. I need to be able to process each frame (coming from camera) and put an…
Fawkes
  • 3,831
  • 3
  • 22
  • 37
2
votes
0 answers

GLKView snapshot returning bad colors

I'm doing some fun shader stuff, but when I call snapshot I get some strange coloring artifacts. In particular, it seems that the red channel is...stuck high, maybe? UIImage* image = [(GLKView*)self.view snapshot]; Not sure what other code to show,…
Kaolin Fire
  • 2,521
  • 28
  • 43
2
votes
0 answers

GLKView snapshot returning an empty image only on ipad 3

I have a GLKView that have a camera stream displaying. When I try to take a snapshot of that view in ipad 3 by making [_glkView snapshot]; the UIImage generated have the correct size but the content is empty. However, if I run the same code on…
ruimas
  • 41
  • 2
1
vote
0 answers

CIFIlter Apply to animationImages of UIImageView

Using CIFIlter I want to apply same filter to multiple images I have multiple animationImages of UIImageView let sepiaFilter = CIFilter(name:"CIColorControls") let brightness = 0.8 for image in imageView.animationImages { …
Developer
  • 760
  • 3
  • 15
1
vote
1 answer

Core Image slow rendering

I created test application with ViewController, GLKView and UISlider. Slider change value in selected filter. Rendering image very slow. What's wrong with my code? Test class of GLKview: import UIKit import CoreImage import GLKit class…
Metman
  • 336
  • 3
  • 14
1
vote
1 answer

connectionWithMediaType return nil

I try to implement video feed using glkview but always getting return nil from connectionWithMediaType when i try to rotate the rotation. here are my setup override public func viewDidLoad() { super.viewDidLoad() // Do any additional setup…
1
vote
0 answers

drawImage() different on iPad and iPhone?

I have a glView which is 51x51px like this. ... glContext = EAGLContext(API: .OpenGLES2) glView = GLKView() glView.context = glContext ciContext = CIContext(EAGLContext: glContext) glView.layer.borderColor =…
Chris
  • 1,231
  • 2
  • 10
  • 20
1
vote
2 answers

How to implement contentMode for GLKView displaying a CIImage?

I have make a GLKView subclass to display CIImage for better performance displaying the output image for a chain of CIFilters. However, it seem that I need to implement to contentMode logic in order to have a correct inRect for drawImage(image:…
Morty Choi
  • 2,466
  • 1
  • 18
  • 26
1
vote
0 answers

Accessibility Id's for GLKView

I'm trying to write some integration tests for iOS Swift using Appium. There's a part of my app that uses a GLKView (PPSSignatureView specifically) to capture user signatures (they would swipe on screen to create a signature), but I don't see an…
vlin
  • 825
  • 1
  • 6
  • 13
1
vote
0 answers

GLKView snapshot returns distorted image

I am using CIFunHouse apple demo for my project to applying filter effects, When I try to take a snapshot of GLKView on iPad Air by making UIImage* imageCaptured = [(GLKView*)_videoPreviewView snapshot]; the UIImage generated have distortion. see…
Jayesh Lathiya
  • 788
  • 6
  • 18
1
vote
0 answers

Location wrong in touchesBegan

So I am using GLKViewController and GLKView. I am debugging my app on iPhone 5s and if I view the drawableHeight and drawableWidth for the view it shows as 1136 and 640 which is correct for iphone 5s. However when I check the following…
nishant
  • 736
  • 1
  • 12
  • 22
1
vote
1 answer

GLKViewController and GLKView - Rendering nothing the second time created

I have a MainMenuViewController and a GameViewController which is a GLKViewConrtroller. The first time I go from the main menu to the GameViewController everything is rendered fine. If I go back to the main menu, the GameViewController and its view…
Max
  • 2,699
  • 2
  • 27
  • 50
1
vote
1 answer

how to set contentScaleFactor iOS

Following is not working. GLKView *view = (GLKView *)self.view; view.contentScaleFactor=1.0; logging the view and [UIScreen mainScreen] objects:
Martin
  • 1,752
  • 2
  • 13
  • 21