Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: Rakehell

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    234

    I'm just copying one 32-bit buffer to the next so...

    I'm just copying one 32-bit buffer to the next so I'm not surprised it works.


    I'm in iOS creating a an OpenGL texture from a CVPixelBuffer. This is the setup that currently works:

    ...
  2. Replies
    8
    Views
    234

    I tried GL_R32UI and the texture just shows up...

    I tried GL_R32UI and the texture just shows up blank. The only thing that works is an internal format of GL_RGBA with a type of GL_FLOAT and the integers are copied correctly except I'm getting one...
  3. Replies
    8
    Views
    234

    I can't have a 1-channel texture? That's what I...

    I can't have a 1-channel texture? That's what I want.
  4. Replies
    8
    Views
    234

    Reading integer textures in GLSL

    I declare the texture as a highp usampler2D. When I sample it, the red, green, and blue channels are 0 but the alpha channel is some huge number.

    I've tried GL_LUMINANCE, GL_RED, and GL_RGBA32I...
  5. It's the vertex shader. There are no precision...

    It's the vertex shader. There are no precision qualifiers.


    But I got it working on my iPad. My iPhone gives the precision error. Could be either a hardware or software issue or maybe it's...
  6. Ok, I set up a 32-bit floating point texture and...

    Ok, I set up a 32-bit floating point texture and it's still reading it as a half float.

    Input: 0.001000, 0.000100, 0.000010, 0.000001
    Output: 0.000999, 0.000100, 0.000000, 0.000000

    So I'm...
  7. ES 3.0 on iOS.

    ES 3.0 on iOS.
  8. I'm using a uniform buffer ofbject and now it...

    I'm using a uniform buffer ofbject and now it seems I'm limited to 1024 vec4s.


    layout (std140) uniform Data
    {
    vec4 data[1024];
    };
  9. I managed to send a few values to the shader as a...

    I managed to send a few values to the shader as a




    uniform vec4 data[255];


    But the shader crashes if I declare the array to have more than 255 values. Any hints?
  10. Is there a better way to send data to a shader?

    I'm using transform feedback to perform physics calculations on a set of thousands of particles. I'm sending particle data to the shader in the form of a 256x256 texture but my platform only supports...
  11. Replies
    1
    Views
    181

    Transform feedback crashes

    const GLchar* vertexShaderSrc = "in float inValue; out float outValue; void main() { outValue = sqrt(inValue); } );";

    GLuint shader = glCreateShader(GL_VERTEX_SHADER);
    ...
  12. Why not use an orthographic projection matrix?

    Why not use an orthographic projection matrix?
  13. Can't bind past texture unit 7 in OpenGL ES for iOS?

    glActiveTexture(GL_TEXTURE8) results in GL_INVALID_ENUM. Shouldn't I have access to 32 texture units on the iPhone?
  14. Replies
    1
    Views
    1,186

    Texture map isn't created?

    glGenTextures(1, &textures[8]);
    glActiveTexture(GL_TEXTURE8);
    glBindTexture(GL_TEXTURE_2D, textures[8]);
    glBindFramebuffer(GL_FRAMEBUFFER, frameBuffer);
    glFramebufferTexture2D(GL_FRAMEBUFFER,...
  15. Replies
    4
    Views
    2,230

    I'm not sure how glPixelStore is used. Is there a...

    I'm not sure how glPixelStore is used. Is there a tutorial on the site?
  16. Replies
    4
    Views
    2,230

    No, I need to crop the texture before rendering...

    No, I need to crop the texture before rendering so I can get mipmaps.
  17. Replies
    4
    Views
    2,230

    Is there a way to crop a texture?

    I have a video stream coming in at 1920x1080 that I want to crop to 2048x1024 with black borders so I can have mipmaps. Is there a command that will do this for me automatically?
  18. Replies
    3
    Views
    1,654

    How do you do that? Right now I'm just making a...

    How do you do that? Right now I'm just making a copy of the texture.
  19. Replies
    3
    Views
    1,654

    Render buffer to texture

    I'm using glFramebufferTexture2D() to render a buffer to a texture, but that causes it not to display on the screen. How can I write to the texture and to the screen at the same time?
  20. Replies
    2
    Views
    2,810

    Help with iOS instancing

    I understand there's a way to instance by sending the modelview matrix as an attribute. I've got the sample code, but I don't understand it. Does anyone know how this works? I don't know how to send...
  21. Replies
    16
    Views
    5,696

    Are you using 1000 draw calls?

    Are you using 1000 draw calls?
  22. How do I calculate the rotation matrix?

    How do I calculate the rotation matrix?
  23. How can I make an object face a certain direction?

    I have an object at x,y,z and I want it to point toward another object in space at x2,y2,z2. Is there an easy way to do this in the vertex shader?
  24. Replies
    14
    Views
    3,138

    Well, duh. I did ask for tutorials in the first...

    Well, duh. I did ask for tutorials in the first post, so I'll check that one out. Thanks.
  25. Replies
    3
    Views
    1,800

    glTexParameteri(GL_TEXTURE_2D,...

    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
Results 1 to 25 of 33
Page 1 of 2 1 2