texture

GLSL Shader multi-texture lookup with different texCoord (iPad)

I'm in GLSL texture hell: I load 4 different textures of the same size in uniform sampler2D variables in my fragment shader and try to access them with different texture coordinates: uniform sampler2D image0, image1, image2, image3; varying highp vec2 texCoord; void main() { highp vec2 tc = vec2(texCoord.x, mod(1.0-texCoord.y, 0.2) ...

C# opengl texture

Hi everyone... I want to use textures in opengl on my C# application. I'm using the Tao Framework and I used this code http://www.gamedev.net/community/for...opic_id=405453 (post #2) But I got this runtime error: An unhandled exception of type 'System.DllNotFoundException' occurred in WindowsFormsApplication1.exe Additional informat...

Changing texture on ActionScript 2/3

Does anybody knows if there is a simple way to change this var colorTransform:NewColorTransform; colorTransform = new NewColorTransform(); colorTransform.color = Config.ARRAY_COLOURS[1]; color.transform.colorTransform = colorTransform; That is changing colors (the ARRAY_COLOURS have [ 0xFF0000, 0x0000FF, 0xFFFF00 ]) I would like to h...

Android OpenGL - ES Texture bleeding

Hello! I am writing a small app that at the moment generates a random map of textures. I am drawing this map as a 10 x 15 group of "quads" which are infact all triangle strips. I use the "map" to grab an int which I then take as the location of the texture for this square in the textureAtlas. so for example 0 is the bottom left "tile"....

Are the texture buffers flushed when an OpenGL ES (iPhone) context gets deallocated?

Or I have to glDeleteTextures, glDeleteTextures one by one them? Or is there some kind of glDeleteAllTextures like function? ...

Android OpenGL - ES alpha transparency different for triangles in triangle strip?

I have a very odd problem, hopefully easily solved. I am drawing a quad as a triangle strip. It simply has 2 triangles in the strip and I apply a texture containing an alpha channel to it. For one of the triangles it seems the alpha is fine and exactly as I want it however for the first triangle it looks as though the alpha is either ...

iOS using GL_RGBA8

Is there a way to use GL_RGBA8 on the iPhone/iPad? My textures show up as blank when I try to use GL_RGBA8_OES instead. GL_RGBA is causing problem when using transparency. I haven't tried it on the real device, only in the simulator. ...