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: Alfonse Reinheart

Page 1 of 20 1 2 3 4

Search: Search took 0.08 seconds.

  1. There's nothing confusing about that. A texture...

    There's nothing confusing about that. A texture must be complete in order for it to be used in pretty much any rendering operation. Immutable storage textures are always complete (that's about 40% of...
  2. Replies
    11
    Views
    255

    And, for what it's worth, multi-draw-indirect was...

    And, for what it's worth, multi-draw-indirect was core in 4.3.
  3. Replies
    11
    Views
    255

    Note that if you're talking specifically about...

    Note that if you're talking specifically about this technique, that's rather outdated. The asynchronous query isn't necessary; with multidraw indirect rendering, you can avoid it by making your...
  4. ... this is kind of a grey area. Well, that's...

    ... this is kind of a grey area. Well, that's assuming that you had a `#version 100` at the top of your shader, which would indicate that you want OpenGL ES 2.0's shading language.

    I say it's a...
  5. Replies
    1
    Views
    75

    The `shared` layout guarantees nothing about the...

    The `shared` layout guarantees nothing about the layout except that, if you define a uniform block with the same members in the same order (including their names), then the two blocks will have...
  6. When you say that you have "~50k unique...

    When you say that you have "~50k unique primitives," do you mean that you have 50K triangles or draw calls? Because when you say "I gues it's because of the number of glDraw calls (50k for the...
  7. Replies
    7
    Views
    217

    I'd say that your mistake is right there: the...

    I'd say that your mistake is right there: the part where you decided up front that image quality was irrelevant.

    I make no claim as to having done an image quality analysis on any of these...
  8. Also, note that glIntercept...

    Also, note that glIntercept is a pretty good tool for tracking these kinds of bugs down. It can spit out a list of all OpenGL calls your application makes. It would have been easy to find the...
  9. Hmm... that's telling. What happens if you set...

    Hmm... that's telling. What happens if you set the near/far range to [1, 100], then try [101, 200]. Because there's no way you should see the exact same thing with both ranges; they're mutually...
  10. Remember how vertex array specification works...

    Remember how vertex array specification works without the divisor. For each vertex in the range of vertices specified, the vertex fetching system will fetch a value from each enabled array. You have...
  11. Here's one more possibility....

    Here's one more possibility. GL_PRIMITIVE_RESTART_FIXED_INDEX uses a fixed index, but that index is not 0xFFFF. It is always the largest possible unsigned integer for whatever index size you're...
  12. Replies
    11
    Views
    255

    Why not use a compute shader to build the...

    Why not use a compute shader to build the instance data, then use an indirect rendering call to render the computed instance data?

    I see no need here for a specialized hardware feature. And CS's...
  13. Given the code you're using, glGetUniformLocation...

    Given the code you're using, glGetUniformLocation would probably be an improvement ;)

    The general idea is that you shouldn't be using string names for uniform look up per-frame, whether you're...
  14. If those shaders are the same shader (ie: you'd...

    If those shaders are the same shader (ie: you'd be building multiple copies of the same program), no. Changing which program is bound program object is far more expensive to OpenGL than changing...
  15. Replies
    6
    Views
    133

    Lots of things. First: you must make sure that...

    Lots of things.

    First: you must make sure that you actually have a stencil buffer. So you must use whatever tool you use to create an OpenGL context and get it to make one with a stencil buffer.
    ...
  16. Replies
    6
    Views
    133

    A better way to do this is with the stencil...

    A better way to do this is with the stencil buffer. You basically render the entrance to the TARDIS, but you use write masking so that you only update the stencil buffer (you should still use the...
  17. First, it's not clear if you're creating a...

    First, it's not clear if you're creating a compatibility context or not. If not, then you don't have access to glBegin/glEnd, or any of the other compatibility functionality.

    Second, if you're...
  18. Well, there's your problem: one of those...

    Well, there's your problem: one of those functions is not like the other.

    glColor and such were deprecated in OpenGL 3.0 and removed in 3.1. glViewport was not; that's still a thing you need to...
  19. Replies
    3
    Views
    138

    OK, before I answer your specific questions, let...

    OK, before I answer your specific questions, let me say this.

    That example code you found? Never do anything it does. Wipe the entire thing from your mind. If you're interested in doing text...
  20. Other than saving 8 bytes-per-pixel (and the...

    Other than saving 8 bytes-per-pixel (and the accompanying bandwidth), I see nothing to gain by this. Maybe it makes packed float-depth/stencil format more economical.

    Also, I rather doubt that...
  21. First, there is no GL_POLYGON_MODE enable, which...

    First, there is no GL_POLYGON_MODE enable, which is why that didn't affect anything.

    The rest sounds like exactly what should happen. glCullFace sets the face you want to cull. If you cull the...
  22. Sticky: I'm seeing the same thing on Firefox 38.0.5,...

    I'm seeing the same thing on Firefox 38.0.5, Windows 7.
  23. There are two problems with this. First, it only...

    There are two problems with this. First, it only works if your texture is a rectangle texture. Regular texture coordinates are normalized to the texture's resolution.

    If you want to offset your...
  24. Ambient lighting is something of a hack. In...

    Ambient lighting is something of a hack.

    In normal OpenGL rendering, lighting is computed by taking the sum of the light produced by a variety of light sources. However, in the real world, a lot...
  25. Um, is there any evidence that this form of...

    Um, is there any evidence that this form of sprite instancing improves performance in any meaningful way? Sure, it reduces the size of memory storage. But you're not talking about very much memory to...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4