All Questions

44
votes
1answers
9026 views

Rendering meshes with multiple indices

I have some vertex data. Positions, normals, texture coordinates. I probably loaded it from a .obj file or some other format. But each piece of vertex data has its own index. Can I render this mesh da...
4
votes
1answers
1417 views

OpenGL - vertex normals in OBJ

I want to know how can I use the vertex normals for lightning effect? Currently what I have is I can send both vertex and texture coords to the shader and use them but with normals, I don't know how t...
62
votes
2answers
32485 views

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

Is there any faster way to access the frame buffer than using glReadPixels? I would need read-only access to a small rectangular rendering area in the frame buffer to process the data further in CPU. ...
13
votes
3answers
19297 views

OpenGL Texture Coordinates in Pixel Space

I'm working on an iPhone app that uses OpenGL ES 2 for its drawing. I know that typically texture coordinates are defined in the 0-1 range, but ideally I'd like to map them from 0-1023 (the size of my...
113
votes
12answers
98492 views

Draw text in OpenGL ES

I'm currently developing a small OpenGL game for the Android platform and I wonder if there's an easy way to render text on top of the rendered frame (like a HUD with the player´s score etc). The tex...
24
votes
4answers
12195 views

CADisplayLink OpenGL rendering breaks UIScrollView behaviour

There are a few similar questions out there on SO (links at end), but none of them has allowed me to fix my problem, so here goes: I'm using OpenGL rendering to make an image tiling and caching libra...
12
votes
2answers
13250 views

Rendering to non-power-of-two texture on iPhone

Is it possible to render to texture with OpenGL ES 1.1 on the iPhone (2G and older)? If I bind a texture as a render buffer, it has to be the size of the render buffer, which isn't POT-sized. But Open...
54
votes
8answers
56377 views

Want to display a 3D model on the iPhone: how to get started?

I want to display and rotate a single 3D model, preferably textured, on the iPhone. Doesn't have to zoom in and out, or have a background, or anything. I have the following: an iPhone a MacBook th...
15
votes
2answers
6009 views

GLES10.glGetIntegerv returns 0 in Lollipop only

This piece of code used to work in my Nexus 7 2012 KitKat: int[] maxSize = new int[1]; GLES10.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, maxSize, 0); In KitKat I can obtain the max pixel value correct...
47
votes
23answers
24721 views

OpenGL extensions available on different Android devices

I'm in the process of writing an OpenGL ES powered framework for my next Android game(s). Currently I'm supporting three different techniques of drawing sprites: the basic way: using vertex arrays...

Previous Next