Questions tagged [glktextureloader]
13 questions
4
votes
0 answers
Conversion of CIImage to CGImageRef which could be used to create a GLK texture
I have a CIImage which is the result/output image of a CIFilter. Now I want to create a texture of that image using GLKTextureLoader. I am using the following function which requires a CGImageRef to achieve that.
[GLKTextureLoader…

Anand
- 115
- 1
- 12
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
2
votes
1 answer
GLKTextureLoader -textureWithCGImage:options:queue:completionHandler: malloc error
I am using a GLKTextureLoader instance to asynchronously load a texture:
NSDictionary *options = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES]
…

Stuart
- 36,683
- 19
- 101
- 139
1
vote
0 answers
GLKTextureLoader memory pointer
I'm loading a texture atlas [XCode 5.1.1, IOS 6.1], using GLKTextureLoader, as per quite a few articles online, thus:
NSDictionary * options = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber…

Max
- 29
- 1
1
vote
1 answer
Issue using GLKTextureLoader and imageNamed: when loading same image multiple times
I get strange behaviour when I use the following code to load an image multiple times:
NSDictionary *options = @{GLKTextureLoaderOriginBottomLeft: @YES};
textureInfo = [GLKTextureLoader textureWithCGImage:[UIImage imageNamed:@"name"].CGImage
…

Anton Holmberg
- 1,113
- 12
- 15
1
vote
0 answers
How can I load portrait-oriented images from the photo roll with GLKTextureLoader at the proper orientation?
I'm using GLKTextureLoader to load images from the photo roll, but any time an image that was shot in portrait aspect ratio is loaded, it ends up being treated as a landscape aspect image, rotated 90 degrees off.
I believe the UIImage from the photo…

Aaron
- 11
- 1
1
vote
1 answer
glColor4f Stops Textures From Loading Using GLKTextureLoader
I'm currently using OpenGL ES 2.0 under GLKView on the new iPad. It seems, whenever I make the call to glColor4f, nothing happens (ie. it doesn't color the polygons I want it to) other than causing a GL_INVALID_OPERATION error. Then, as soon as I…

Basil Al-Dajane
- 427
- 6
- 16
0
votes
1 answer
GLKTextureLoader is only able to load one texture
I am having an issue loading in textures through a load texture method.
+(Texture*) loadTexture: (NSString*) name path: (NSString*) path{
CGImageRef imageReference = [[UIImage imageNamed:path] CGImage];
GLKTextureInfo* textureInfo =…

Austin Twining
- 7
- 4
0
votes
1 answer
How to use GLKTextureLoader to load a cubemap from a web url
Unsure how to use an image loaded from the web as an asset in a GLKit skybox (like the old apple/google maps streetview) There are 2 methods for loading cubemaps with GLKTextureLoader: cubeMapWithContentsOfFile and cubeMapWithContentsOfUrl
If I grab…

glued
- 2,579
- 1
- 25
- 40
0
votes
1 answer
Using GLKTextureLoader to load a texture atlas
I seem to be a little restricted by openGLs GLKTextureLoader. I'm trying to get sprite animation working so I'm trying to load a texture atlas. The texture loader doesn't seem to allow me to break the image into pieces.
This is the relevant code
…

user2577959
- 285
- 1
- 2
- 6
0
votes
1 answer
GLKTextureLoader loads transparent textures unexpectedly
I generate text as image using UIKit (simplified):
UIGraphicsBeginImageContextWithOptions(textureSize, NO, 0);
[variant.text drawInRect:CGRectIntegral(necessaryRect) withFont:textFont lineBreakMode:UILineBreakModeWordWrap…

kpower
- 3,871
- 4
- 42
- 62
0
votes
2 answers
GLKBaseEffect not loading texture (texture appears black on object)
I'm using GLKit in an OpenGL project. Everything is based on GLKView and GLKBaseEffect (no custom shaders). In my project I have several views that have GLKViews for showing 3D objects, and occasionally several of those view can be "open" at once…

Or Sharir
- 1,607
- 12
- 21
0
votes
1 answer
How does GLKTextureLoader loads cube-map from image-strip?
Is there a way to load cube-map using giant image-strip in OpenGL-ES? (or desktop GL or extension, anything)
For example, GLKTextureLoader class offers loading cube-map at once if they're sequenced vertically. I want to know there's some GL…

eonil
- 83,476
- 81
- 317
- 516