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

Design advice for OpenGL ES 2 / iOS GLKit

I'd like to build an app using the new GLKit framework, and I'm in need of some design advice. I'd like to create an app that will present up to a couple thousand "bricks" (objects with very simple geometry). Most will have identical texture, but…
danh
  • 62,181
  • 10
  • 95
  • 136
2
votes
1 answer

Camera position in orthographic projection

I'm trying to understand how to use camera with usesOrthographicProjection = true. I need to set it up so when we first see the scene, the object should be viewable in full. I used the Xcode's SceneKit template, adjust a little bit about the camera…
Eddie
  • 1,903
  • 2
  • 21
  • 46
2
votes
2 answers

Is GLKit available for Mac Catalyst?

According to Apple's documentation GLKit is in beta for Mac Catalyst. However, when attempting to run our iPad app with Mac selected as the device, we get: GLKit is deprecated and is not available when building for Mac Catalyst. Consider migrating…
tomblah
  • 791
  • 3
  • 9
  • 21
2
votes
1 answer

How to convert Euler angles and altitude of drone camera to coordinates of image center?

I'm trying to calculate the real world 3D-coordinate of the center pixel of image taken with a drone. I have the longitude, latitude, altitude, and Euler angles (yaw, pitch and roll) of the drone. The ground is assumed to be flat (sea level, since…
JVarga
  • 31
  • 4
2
votes
0 answers

How to convert YUV data to CVPixelBufferRef?

I have the Yuv data below : @property(nonatomic, readonly) int chromaWidth; @property(nonatomic, readonly) int chromaHeight; @property(nonatomic, readonly) const uint8_t *dataY; @property(nonatomic, readonly) const uint8_t…
zeus
  • 12,173
  • 9
  • 63
  • 184
2
votes
2 answers

Your app called glInvalidateFramebuffer before presenting renderbuffer

"Your app called glInvalidateFramebuffer before presenting renderbuffer" is an error message I get in the line: int retVal = UIApplicationMain(argc, argv, nil, @"myAppDelegate"); of my main.m file. There is not a single call to the…
Greg
  • 442
  • 4
  • 16
2
votes
1 answer

Copy OpenGL texture from one target to another

I have a IOSurface backed texture which is limited to GL_TEXTURE_RECTANGLE_ARB and doesn't support mipmapping. I'm trying to copy this texture to another texture bound to GL_TEXTURE_2D and then perform mipmapping on that one instead. But I'm having…
Oskar
  • 3,625
  • 2
  • 29
  • 37
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

GLKQuaternionMakeWithAngleAndVector3Axis wrongly handles positive angle as clockwise

I am using GLKit quaternion to rotate a unit vector by 90 degrees around z-axis. Here is my code: let q = GLKQuaternionMakeWithAngleAndVector3Axis(Float(M_PI_2), GLKVector3Make(0,0,-1)) let result = GLKQuaternionRotateVector3(q,…
Ryoji
  • 155
  • 7
2
votes
0 answers

Could not build module GLKit

I have an iOS application , after upgrading my ipad4 from 7.1 to 8.3 and xcode 6.2 to 6.3.2 i started to get build error for GLKit . I get an error 'Definition of builtin function' for following functions…
Alper Cinar
  • 861
  • 5
  • 12
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
1 answer

GLKQuaternion in Swift

Trying to re-write Objective-C code written for the Myo I came across the GLKQuaternion class which is a union and doesn't seem to be supported in Swift (Using GLKMath from GLKit in Swift). What I am looking for is a workaround to get this to work.…
Michael Yagudaev
  • 6,049
  • 3
  • 48
  • 53
2
votes
1 answer

Porting C++ OpenGL from windows to mac. What to do with GLKMatrix4MakePerspective?

I am trying to port a c++ program that uses SFML and OpenGL I wrote from Windows to Mac OS X. I am using g++ to compile on both platforms. Here is my current code for calculating the projection matrix: void perspectiveCalculate (int width, int…
DXsmiley
  • 529
  • 5
  • 17
2
votes
0 answers

GLKIT and GLM Nate Robins

First of all I want to thank you for looking at my problem. Now to Describe. My problem is that whenever I use nate robins GLM library I am unable to load my textures. However, seeing as I was unable to load textures I chose to next create arrays…
2
votes
1 answer

Using projection matrix on GLKMatrixStack

Given this setup: GLKMatrixStackRef transformHierarchy = GLKMatrixStackCreate (kCFAllocatorDefault); float aspect = (float)self.drawableWidth / (float)self.drawableHeight; float fov = PI * 0.125; float height = 10.0f; float cameraOffset = -height /…
4bar
  • 531
  • 2
  • 14