Questions tagged [glkit]

GLKit is a high-level framework for OS X and iOS that assists with development of OpenGL and OpenGL ES apps.

The GLKit framework provides four key feature areas making it easier to develop modern OpenGL and OpenGL ES apps on OS X and iOS:

  • The GLKView and GLKViewController classes in iOS provide a standard implementation of a UIKit view that draws its content using OpenGL ES and a view controller for managing animation in that view.
  • The GLKTextureLoader class allows your app to easily load textures from a variety of sources. Textures can even be loaded asynchronously in the background with just a few lines of code.
  • Effects, in GLKBaseEffect and related classes, provide shader-based versions of common rendering techniques, analogous to features of the fixed-function pipeline in legacy OpenGL and OpenGL ES.
  • Vector, matrix, and quaternion math libraries, optimized for fast performance on Apple devices, provide functions and data types useful for graphics programming and replace features found only in legacy OpenGL and OpenGL ES versions.

See the GLKit Framework Reference for details.

436 questions
3
votes
2 answers

How can I combine SceneKit with existing OpenGL using SCNRenderer?

I would like to use SceneKit’s SCNRenderer to draw a few models into my existing GLKit OpenGL ES 3.0 application and match my existing modelViewProjection transform. When I load a SceneKit scene and render it using SCNRenderer the SceneKit camera…
Pat Niemeyer
  • 5,930
  • 1
  • 31
  • 35
3
votes
1 answer

Background color for drawing CIImage

I use some of CIFilters to do some image processing. I've found UIImageView too slow to display output image in real-time. I've followed documentation and built GLKView. Now the performance is perfect, but image is rendered in black rect when…
Stanislav Smida
  • 1,565
  • 17
  • 23
3
votes
1 answer

What is the difference of shaders with extensions .Shader, .vsh, .fsh?

What is the difference between files named "name. Shader" & "name. vsh" & "name. fsh" in scene kit ?when i call some shaders in my project my model would be like a purple mask. What should i do?
iSibDev
  • 340
  • 5
  • 18
3
votes
2 answers

failed to bind EAGLDrawable in CADisplayLink render loop

i use CADisplayLink render-loop callback to render a serial of image textures with openGLes. after CADisplayLink's first callback called, i just get these error output Failed to bind EAGLDrawable: to GL_RENDERBUFFER 2 Failed…
user3682618
  • 87
  • 1
  • 8
3
votes
1 answer

GLKViewController: Setting up independent objects using GLKit

I'm working on an OpenGL project using GLKit for the iPhone and need to draw several different objects at once and rotate and translate them independently. Nearly every GLKit example I've seen places the vertex/color/texture data within the render…
Stuartsoft
  • 1,000
  • 1
  • 8
  • 20
3
votes
1 answer

Why am I getting the "for static data use buffer objects to store the indices warning"

I have an iPhone app in the making with GLKit. I load vertices in from a .obj file from Blender, and then I attempt to draw the vertices. It's the first time I've tried to do so using glDrawElements. I chose this because then I only need as many…
michaelsnowden
  • 6,031
  • 2
  • 38
  • 83
3
votes
1 answer

GLKit.framewok vs OpenGLES.framework vs QuartzCore.framework

I am adding a GLView to my app and along the way I have learned that I need to add the GLKit framework. So when I was adding this framework, I realised there is a very similarly named framework called OpenGLES.framework. I tried to look up the…
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
3
votes
1 answer

How to replace OpenGL ES 1.1 EAGLLayer view with OpenGL view from GLKit?

I have a simple game which uses EAGLLayer directly. I had to set up the runloop and all OpenGL ES boilerplate. Game sometimes crashes because of OpenGL backgrounding problems. I heard the GLKit has a robust boilerplate OpenGL view which takes care…
openfrog
  • 40,201
  • 65
  • 225
  • 373
3
votes
1 answer

GLKTextureLoader fails to load PVR (error 12 - preprocessing failure)

Background In our app, we use a PNG sprite sheet where each sprite is just used as a mask. These are successfully loaded using GLKTextureLoader. When iOS 7 reached the 5th/6th beta, something appeared to change in the way GLKTextureLoader works, as…
Stuart
  • 36,683
  • 19
  • 101
  • 139
3
votes
1 answer

In Xcode 5 in a GLKViewController in IB what are the Top/Bottom Layout guides for?

In Xcode 5 in a GLKViewController in IB what are the Top/Bottom Layout guides for? I've been reading through docs and can't seem to find it anywhere.
Matthew Clark
  • 571
  • 1
  • 9
  • 33
3
votes
0 answers

GLKView frame size animation causes GL to render only a portion of the screen

I have a GLKView contained in a UIView under a top, nav-like bar. The bar can be shown/hidden with an animation and the autolayout pinning causes the views to fill the portion of the screen under the bar (or the full screen if hidden). What's…
Hari Honor
  • 8,677
  • 8
  • 51
  • 54
3
votes
1 answer

NSUndoManager and GLKit

I'm trying to support undo/redo in an iOS app that uses GLKit. When I try the following: GLKVector3 currentTranslation = _panningObject.translation; [[self.undoManager prepareWithInvocationTarget:_panningObject]…
Tom Irving
  • 10,041
  • 6
  • 47
  • 63
3
votes
1 answer

GLKit Depth Testing Not Working

I'm using Ray Wenderlich's tutorials to make a simple OpenGlES 2 app using GLKit, and I've come across some problems. I changed the sample code to display two cubes by adding vertex and indices data to the existing vertex and indices data structs.…
Ethan Gill
  • 76
  • 1
  • 9
3
votes
1 answer

Black texture with OpenGL when image is too big

In my app (Tres) I'm loading an image from the image picker and putting it on a texture. It all worked fine in all my tests, but now that it's online people with iPads with retina display are complaining images come out black. I'm looking at…
Odrakir
  • 4,254
  • 1
  • 20
  • 52
3
votes
1 answer

add GLKViewController to subview - GLKView context causes crash

I have a pretty simple set up in mind, having a mainViewController that has a GLKViewController on top of it. The idea is having my GLKViewController in a box, that take sup 1/3 of the screen, on the mainViewController. This can be seen below: That…
John Riselvato
  • 12,854
  • 5
  • 62
  • 89