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

Search: Search took 0.00 seconds.

  1. Why not use an orthographic projection matrix?

    Why not use an orthographic projection matrix?
  2. 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?
  3. Replies
    1
    Views
    878

    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,...
  4. Replies
    4
    Views
    1,489

    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?
  5. Replies
    4
    Views
    1,489

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

    No, I need to crop the texture before rendering so I can get mipmaps.
  6. Replies
    4
    Views
    1,489

    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?
  7. Replies
    3
    Views
    897

    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.
  8. Replies
    3
    Views
    897

    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?
  9. Replies
    2
    Views
    885

    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...
  10. Replies
    16
    Views
    3,871

    Are you using 1000 draw calls?

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

    How do I calculate the rotation matrix?
  12. 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?
  13. Replies
    14
    Views
    2,007

    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.
  14. Replies
    3
    Views
    1,292

    glTexParameteri(GL_TEXTURE_2D,...

    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
  15. Replies
    14
    Views
    2,007

    They're spheres. Can they really be rotated?

    They're spheres. Can they really be rotated?
  16. Replies
    14
    Views
    2,007

    I'm googling how to calculate the view matrix,...

    I'm googling how to calculate the view matrix, but it seems nontrivial.
  17. Replies
    14
    Views
    2,007

    I subtracted the light position from the camera...

    I subtracted the light position from the camera and now it looks better from some angles but not others.
  18. Replies
    14
    Views
    2,007

    My lighting shader looks something like this one,...

    My lighting shader looks something like this one, but the comments say the light position needs to be in eye coords. ...
  19. Replies
    14
    Views
    2,007

    It appears to be calculating in eye space and I'm...

    It appears to be calculating in eye space and I'm not sure how to avoid doing that.
  20. Replies
    14
    Views
    2,007

    I tried that too and it didn't work. It looks as...

    I tried that too and it didn't work. It looks as if the light is coming from the camera, not from the red dot.
  21. Replies
    6
    Views
    4,380

    Why are you passing color as an attribute instead...

    Why are you passing color as an attribute instead of a uniform?

    Can you post your vertex shader?
  22. Replies
    14
    Views
    2,007

    My lighting is way off

    imgur.com/hWE1vxS.png


    dot(
    normalize( Light1Position - vec3(modelViewProjectionMatrix * position) ),
    normalize( normalMatrix * normal )
    )


    Light1Position is the location of the red dot...
Results 1 to 22 of 22