Tagged Questions
2
votes
0answers
43 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
104 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
52 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 ...
2
votes
1answer
249 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 ...
2
votes
0answers
462 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
337 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, ...
3
votes
2answers
651 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
363 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
149 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
94 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
1k 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 ...
2
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 ...
3
votes
1answer
1k 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
329 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
318 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 ...