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: cooky451

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    409

    Well at least the fragment shader has to more or...

    Well at least the fragment shader has to more or less know something like a "pixel", since that's what it generates, isn't it? So I thought maybe I could kinda "avoid" the vertex shader, but that...
  2. Replies
    3
    Views
    409

    Pixel exact text rendering

    Hi, I wrote a bitmap glyph renderer for text. It generates texture and screen coordinates for a given text, that I can then render. Okay. Now the shader looks like this:
    float x = (text_pos.x +...
  3. Thread: glut issues

    by cooky451
    Replies
    4
    Views
    861

    Re: glut issues

    LOL, I didn't expect this. So to summarize: GLUT just has a horrible design. I'll go use something else, thanks.
  4. Thread: glut issues

    by cooky451
    Replies
    4
    Views
    861

    glut issues

    Hi,

    Typically when using glut, one will create a window, set callbacks, and then call glutMainLoop(). (As far as I understand the specs.)

    But how am I supposed to perform initialization...
  5. Replies
    2
    Views
    3,422

    GLSL manage multiple lights

    Hi,

    since every light in a scene could possibly effect any object, all lights of a scene have to be set before rendering the objects. So the solution here are arrays, UBOs or Textures. But even if...
  6. Replies
    5
    Views
    1,723

    Re: Instanced Drawing

    Thanks for the fast anwers! I probably need a bit to read those articles.

    Just for more information: I'm currently rendering simple cubes. One cube is described by 24 vertices (f32) and 36 indices...
  7. Replies
    5
    Views
    1,723

    Instanced Drawing

    Hi,

    since I have a very high performance lack when I'm rendering many objects, I want to use instancing. (The "bad" functions are glUseProgram/glUniform**/glDrawElements. With instancing I could...
  8. Replies
    0
    Views
    608

    GLSL confusion

    Edit: My fault, used getAttributeLocation instead of getUniformLocation.



    Hi,

    actually I'm very confused. I'm trying to make some simple 3D shader. So when my vertex-shader looks like this,...
  9. Thread: glGetShaderiv

    by cooky451
    Replies
    2
    Views
    1,226

    Re: glGetShaderiv

    Oh, that's a simple answer. :o
    Thank you!

    Edit:
    Wow, your Tutorial is huge! I'm sure I will enjoy it. :)
  10. Thread: glGetShaderiv

    by cooky451
    Replies
    2
    Views
    1,226

    glGetShaderiv

    Hi,

    I just began to learn OpenGL with this Tutorial. I came across glGetShaderiv, which I cannot find in the current OpenGL 4.2 Reference. It seems deprecated to me. What would be an...
Results 1 to 10 of 10