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
0
votes
1 answer

How does Jeff Lamarches script binds the texture to objects

Possible Duplicate: Loading model using Jeff Lamarches script Guys this might sound very newbie question anyway i'm very new to GLKit and OpenGL I'm using the Jeff Lamarches scipt from here (https://github.com/jlamarche/iOS-OpenGLES-Stuff) to…
deimus
  • 9,565
  • 12
  • 63
  • 107
0
votes
1 answer

multiple GLKview snapshot cause crash. Memory issue?

My goal is to make a video out of a short sequence of opengl frames (around 200 frames). So in order to do this, I use the following code to create a array of images: NSMutableArray* images = [NSMutableArray array]; KTEngine* engine = [KTEngine…
Zerto
  • 41
  • 3
0
votes
1 answer

bad quality image in iOS in GLKit

i added sprite to scene by this tutorials : http://www.raywenderlich.com/9743/how-to-create-a-simple-2d-iphone-game-with-opengl-es-2-0-and-glkit-part-1 but i have bad quality of images files. how to fix problems ??
Moonlight
  • 37
  • 1
  • 5
0
votes
1 answer

IOS GLKit : Fading textures dynamically (OpenGL)

I am trying to dynamically fade items as they appear further away. I have this which works fine and textures display fine but does not fade. effect.texture2d0.enabled = GL_TRUE; effect.texture2d0.envMode = GLKTextureEnvModeReplace; …
Burf2000
  • 5,001
  • 14
  • 58
  • 117
0
votes
1 answer

UIScrollView Snapping with OpenGL GLKit

This has been a bit of a interesting one. So I have a OpenGl screen with a scrollview on top. I Use a CADisplay link to update the render when I scroll (code below) which works really well. However, I can't get it to snap to a point (animated). I…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
0
votes
1 answer

IOS GLKit : Turing GLKViewDrawableMultisample4X stops object picking

I am using pixel colour picking to work out which OpenGL object I have clicked on and it works brilliantly As soon as I turn GLKViewDrawableMultisample4X on in the view, the picking stops working? I have tried turning this on and off when I touch…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
0
votes
1 answer

When drawing a shape over my texture, OpenGL makes my texture semi-transparent

Overview I'm trying to build a graphic in my game by combining a few images and gradients. I started by using Core Graphics which worked wonderfully, but was abysmally slow. I've now tried to port it over to OpenGL using GLKit and I'm very close,…
Brent Traut
  • 5,614
  • 6
  • 29
  • 54
0
votes
1 answer

Is it possible to access binary image data in GLKTextureInfo?

Is raw image data available in GLKTextureInfo or in some related object? Is it possible to create textures in GLKit basing on such raw-data image buffers? Like in non-ES OpenGL, using the glTexImage2D()?
Calikin
  • 3
  • 1
0
votes
2 answers

Can't display VBO with simple cube, seems like issue with buffers

Trying to modify this OpenGL and GLKit tutorial at raywenderlich.com, I am trying to render a cube from a wavefront obj file, without the per vertex color information and with surface normals. But the thing that is rendered looks nothing like a…
KK.
  • 783
  • 8
  • 20
0
votes
1 answer

Set an initial size of GLKView with storyboard

I'm trying to set an initial size of GLKView (basically, I want it to be exactly the size of the screen, despite the presence of tabbar). Because I'm using storyboard, GLKView is created automatically within GLKViewController init method (not sure,…
dmirkitanov
  • 1,396
  • 1
  • 12
  • 29
0
votes
1 answer

Responding well to touches

I'm working on a music app, so I can't really approve any latancy. I'm using the beloved touchesBegan/Moved/Ended to process my touches. Everything is going well, and I managed to synthesize a tone(using AudioUnit) and to show up a glow under the…
user1055486
0
votes
1 answer

Is GLKMatrix4Translate correct?

I am not sure if I am misunderstanding things, or I am simply tired. Consider the two lines of code below. GLKMatrix4 projection = GLKMatrix4Translate(_perspective, 0, 0, -5); GLKMatrix4 projection = GLKMatrix4Multiply(_perspective,…
emp
  • 3,350
  • 1
  • 22
  • 19
0
votes
1 answer

Low performance with tiles-based game with OpenGL and GLKit

Im using openGL with GLKit to make a tiles-based game. In the game, around 1024 tiles are placed in the screen, the problem is that I'm rendering the tiles every time drawInRect is called, and I'm having a lost of performance very big. This is how I…
Antonio MG
  • 20,382
  • 3
  • 43
  • 62
0
votes
1 answer

How to use VBOs in GLKit for iOS?

I'm making a game for iOS using GLKit (OpenGL ES 2), and would like to use VBOs and VAOs as I think they would increase performance quite a lot (and Instruments is recommending it when I test my app in it). I have a lot of textured objects that…
Nick Duffell
  • 340
  • 1
  • 6
  • 17
0
votes
1 answer

GLKit: Drawing Points using GL_POINTS

I am picking up the opengl es 2.0 with GLKit. I can successfully draw shapes like squares, triangles, cube etc. I have problem drawing points, here is my code which isn't working on device (iPod 4), though I can see the Points/dots in retina…
Asymptote
  • 1,140
  • 2
  • 13
  • 29
1 2 3
29
30