2
votes
1answer
65 views

Total Texture memory size iOS / OpenGL ES

My team is running into an issue where the amount of texture memory allocated via the glTexImage2D is high enough that it crashes the app ( at about 400 MB for iPhone 5). We're taking steps to ...
0
votes
0answers
17 views

OpenGL ES 1.0 Create a Trapezoidal perspective scaling on a texture while using Ortho

I am using an Ortho projection to do most of my stuff and i am happy with it since i basically do everything on the same plane, now however i need to create a simple "flip card" effect on an object ...
6
votes
1answer
262 views

OpenGL 2.0 - Texture animation with 'pixelated' effect

I'm looking for a way to reproduce the effect I've tried to sketch in the image below with OpenGL ES 2.0. The idea is to let a drop of color fall over a cube which get filled with a kind of ...
2
votes
1answer
136 views

How do I apply a texture over a material in OpenGL ES?

How can I apply a texture over a material? I've set up an object with the following material: GLKBaseEffect *effect; effect.colorMaterialEnabled = false; effect.material.ambientColor = ...
3
votes
1answer
164 views

Texture mapping a complex object on openGL ES

I dont have much experience with openGL ES (or openGL), but i do get the general idea of texture mapping, which is each vertex should be mapped for the relevant UV coordinates of the texture we choose ...
0
votes
0answers
83 views

How to load all textures at startup in my game?

In my Android 2D game every level uses the same textures. Currently all my textures are loaded into memory in the onSurfaceCreated() method of my GLSurfaceView.Renderer when a level is choosen by ...
2
votes
2answers
664 views

OpenGL texture on sphere

I want to create a rolling, textured ball in OpenGL ES 1.0 for Android. With this function I can create a sphere: public Ball(GL10 gl, float radius) { ByteBuffer bb = ...
3
votes
1answer
711 views

Sprite sheet textures picking up edges of adjacent texture

I have a custom sprite routine (openGL 2.0) which uses a simple sprite sheet (my textures are arranged horizontally next to each other). So, for example, here is a test sprite sheet with 2 simple ...
0
votes
1answer
1k views

Rendering Texture Quad to Screen or FBO (OpenGL ES)

I need to render the texture on the iOS device's screen or a render-to-texture frame buffer object. But it does not show any texture. It's all black. (I am loading texture with image myself for ...
2
votes
0answers
85 views

OpenGL ES Single Bitplane Texture (or something close)

I'm looking to use a texture to store single bits (or a low number of bits, two or three). This in of itself isn't hard if you're using nearest neighbor sampling with some bit plane unpacking. The ...
1
vote
1answer
226 views

opengles display human face in iphone and animate it?

I need to make a human 2D face to 3D face. I used this link to load an ".obj" file and map the textures. This example is only for cube and pyramid. I loaded a human face ".obj" file. This loads the ...
1
vote
1answer
121 views

Does iOS support BC4 compressed texture?

I've been designing a new OpenGL image algorithm using BC4 textures at its core. It works well accross Windows and Mac, my main targets up to now. But today, the customer added a new requirement : it ...
4
votes
1answer
903 views

How to load a png file without alpha premultiplying in ios?

I am making a game in which I use the alpha value, in some cases for transparency, in others for occlusion, and for HDR in others. I'm loading the images like this (this is MonoTouch, but objective-c ...
3
votes
1answer
1k views

How do I generate mipmap .png and model .obj files for LibGDX?

I'm playing a bit with LibGDX (OpenGL ES 2.0 wrapper for Android). I found some sample code which used prepared files to load models and mipmap textures for them, e.g., at ...
3
votes
1answer
908 views

Z Order in 2D with orthographic projection and texture atlas

I am working with a 2D game in OpenGL ES and have a question about z-order together with a texture atlas. I am using an orthographic projection because I want pixel-perfect rendering of 2D sprites, ...
5
votes
2answers
1k views

OpenGL 3.0+ framebuffer to texture/images

I need a way to capture what is rendered on screen, i have read about glReadPixels but it looks really slow. Can you suggest a more efficient or just an alternative way for just copying what is ...
1
vote
2answers
783 views

Android OpenGL textures sometimes corrupted

Just trying to get some sprites (textured squares) to draw from a texture atlas and 50% of the time after the application is first launched/ reorientated/ brought from sleep these various graphical ...
1
vote
0answers
198 views

Remove “dots” noise (like from dot-matrix printer)

I have 2D array of floats. Using the floats, I generate image by doing proportional selection of color from between COLOR_MIN, COLOR_MAX – for maximal float value at given (x,y), I choose COLOR_MAX ...
1
vote
1answer
144 views

Drawing texture does not work anymore with a small amount of triangles

When i draw lines, the vertices are well connected. But when i draw the texture inside the triangles, it only works with i<4 in the for loop, otherwise with i<5 for example, there is a ...
0
votes
1answer
2k views

Texture displays on Android emulator but not on device

I have written a simple UI which takes an image (256x256) and maps it to a rectangle. This works perfectly on the emulator however on the phone the texture does not show, I see only a white ...
3
votes
1answer
2k views

Why do my sprites have a dark shadow/line/frame surrounding the texture?

I'm starting OpenGL with Apple's GLKit hand I'm having some trouble to get my sprites displayed properly. The Problem is that they all are surrounded with thin dark lines. The screen shot below shows ...
4
votes
2answers
3k views

Changing the color of some fragment of a texture using shaders

Declarative programming language QML allows to connect the elements, their properties with universal variables in shader programs description. For these purposes there is such elements as ...
3
votes
2answers
478 views

What is UVIndex and how do I use it on OpenGL?

I am a noob in OpenGL ES 2.0 (for WebGL) and I'm trying to draw a simple model I've made with a 3D tool and exported to .fbx format. I've been able to draw some models that only have: A vertex buffer, ...
4
votes
1answer
367 views

UVW: better explanation, and how to implement with GLES texture2D()

UVW texture coordinates, as opposed to UV texture coordinates, do not get very adequate explanation on the web. Many people offer the simple exlanation, "UV is for 2-dimensional textures and UVW are ...
2
votes
3answers
2k views

How can I convert an image from raw data in Android without any munging?

I have raw image data (may be .png, .jpg, ...) and I want it converted in Android without changing its pixel depth (bpp). In particular, when I load a grayscale (8 bpp) image that I want to use as ...
2
votes
1answer
2k views

OpenGLES 2.0: Rendering Multiple Sprites - Texel Corruption

I'm having a tremendous time getting the second (or additional) sprites in my game engine to render properly. The first one always works great: it is positioned and sized properly in screen coords, ...
1
vote
1answer
901 views

Android : Some textures not loading after resuming twice

This is an odd one. When I press home and then restart my game I reload all my textures (checking glIsTexture on the id's first). If I do this once, all textures load as expected, but if I do it ...
0
votes
1answer
911 views

OpenGL - resize texture when using cubemap

I want to resize my texture. I am using cubemap to compute reflection. I want to use this cubemap to draw skybox. Skybox is drawn but I want to resize texture down, because it is dilated. As I wrote ...
2
votes
2answers
3k views

How do I create a sky box with OpenGL ES 2.0?

Can you give me hint to any good sky box example in OpenGL ES 2.0? I have found only OpenGL and does not work for me. I am doing it this way: Initialization: glUseProgram(m_programSkyBox.Program); ...
4
votes
1answer
1k views

How do I render only part of a texture to a point sprite in OpenGL ES for Android?

Using the libgdx framework, I've figured out how to render a texture to a point sprite. The problem is, it renders the entire texture to the point sprite, where I only want a small part of it (since ...
2
votes
2answers
3k views

OpenGL-ES: clearing the alpha of the FrameBufferObject

This question is a follow-up to Texture artifacts on iPad How does one "clear the alpha of the render texture frameBufferObject"? I've searched around here, StackOverflow and various search engines ...
2
votes
2answers
3k views

how disable texture after drawing an object?

i try to make a textured object then draw other without (only colored). i had tried to play with glEnable/Disable(GL10.GL_TEXTURE_2D) , ...
3
votes
1answer
729 views

iPhone/OpenGL-ES partially texture mapping an object

I only have a basic understanding of OpenGL, so I'm probably showing my ignorance here. I'm looking for a great iPhone/OpenGL-ES example of applying a texture (preferably from a texture atlas, but ...