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

Page 1 of 15 1 2 3 4

Search: Search took 0.03 seconds.

  1. Yep, ARB_bindless_texture, a non-core extension...

    Yep, ARB_bindless_texture, a non-core extension released at the same time as GL4.4, provides UBO support for texture handles.

    As an aside, you can also put the texture handle in an SSBO but some...
  2. Replies
    36
    Views
    62,382

    Sticky: The Core profile of OpenGL drops support for all...

    The Core profile of OpenGL drops support for all the deprecated 1.x and 2.x features. Some vendors support the Compatibility profile, which allows you to use the deprecated features. If you don't...
  3. Replies
    9
    Views
    985

    Ok. Try fp16 or normalized-int16 formats for the...

    Ok. Try fp16 or normalized-int16 formats for the vertex arrays, depending on your coord system. If vertices is bounded by [0,1], you can use norm-int16 for vertices; fp16 can be used for 2D values on...
  4. Replies
    9
    Views
    985

    If you're using triangle strips, you probably...

    If you're using triangle strips, you probably don't need indexed rendering unless those strips are part of a larger connected mesh (in which case indexed drawing with GL_TRIANGLES is probably easier...
  5. What OpenGL version are you targeting? Writing to...

    What OpenGL version are you targeting? Writing to two SSBOs (shared storage buffer objects) and two atomic counters is one way, if you have GL4.3 support. You could also use a compute shader for...
  6. Replies
    20
    Views
    2,677

    You don't need to delay the frame data at all...

    You don't need to delay the frame data at all with double buffering. What it means is to write to two different VBOs, one every other frame, and draw with the VBO you just filled. If you write to the...
  7. Replies
    10
    Views
    1,280

    Perhaps you could try clearing the viewport to a...

    Perhaps you could try clearing the viewport to a different color (like red) to see if the triangle is drawing black (SSBO data upload issue?) or not at all (shader problem?). Nothing jumps out at me...
  8. Replies
    10
    Views
    1,280

    Can you post more of your code, including how you...

    Can you post more of your code, including how you draw the triangle and bind the shader?
  9. Replies
    10
    Views
    1,280

    gl_FragColor doesn't exist in 430. You can try...

    gl_FragColor doesn't exist in 430. You can try #version 430 Compatibility, or replace gl_FragColor with 'out vec4 color_out;'.
  10. glValidateProgram() is meant to be called...

    glValidateProgram() is meant to be called directly before a draw call with that shader bound and all the bindings (VAO, textures) set. Its purpose is to ensure that the shader can execute given the...
  11. Replies
    10
    Views
    2,137

    Might be due to the fact that OpenGL allows...

    Might be due to the fact that OpenGL allows multiple textures to be bound to the same unit if they're of different texture types. In that case, validate may pass because it looks at the 2D binding...
  12. Replies
    10
    Views
    2,137

    You can run glValidateProgram() when debugging,...

    You can run glValidateProgram() when debugging, just before the draw call to check for problems like this. It should report that your sampler type and bound texture type do not match.
  13. Replies
    15
    Views
    2,441

    You could, but for a single character you likely...

    You could, but for a single character you likely don't have to, as passing such a small number of matrices is unlikely to be the bottleneck.

    If you were animating dozens of characters in a crowd...
  14. Replies
    15
    Views
    2,441

    You don't want linear interpolation as done by a...

    You don't want linear interpolation as done by a texture sampler - you need to do that yourself. Generally you have a list of bones and a list of weights per vertex, and you look up the matrix for...
  15. Replies
    1
    Views
    602

    Use polygon offset to push the polygons backwards...

    Use polygon offset to push the polygons backwards in Z:


    glEnable(GL_POLYGON_OFFSET_FILL);
    glPolygonOffset(2,2);
    //draw surfaces
    glDisable(GL_POLYGON_OFFSET_FILL);

    You can adjust the...
  16. Replies
    3
    Views
    826

    You need a Kepler- or Maxwell-based Nvidia GPU to...

    You need a Kepler- or Maxwell-based Nvidia GPU to use bindless textures (GK or GM GPUs), which is generally the 600 series and up. However, the low-end 600 series still has some Fermi-based GPUs...
  17. Yes, you need a core profile to use GLSL 330 on...

    Yes, you need a core profile to use GLSL 330 on OSX.
  18. Replies
    4
    Views
    878

    You're missing the binding of the buffer that...

    You're missing the binding of the buffer that contains the data in initShaders():


    glBindBuffer(GL_ARRAY_BUFFER, vertex_data_buffer_id);

    before the calls to the glVertexAttribPointer(). Pull...
  19. Replies
    2
    Views
    527

    You'll need to convex the shape first by,...

    You'll need to convex the shape first by, dividing it into triangles or quads. OpenGL implementations simply divide the polygon into triangles with no consideration for concave shapes. That...
  20. The simplest way is to use multiple texels, which...

    The simplest way is to use multiple texels, which you can do by allocating a larger texture by increasing its dimension by a factor of texels-per-value in one direction and then indexing the texture...
  21. Pixar is behind OpenSubDiv (opensubdiv.org). Part...

    Pixar is behind OpenSubDiv (opensubdiv.org). Part of the library is dedicated to hardware-accelerated adaptive subdivision. I suspect that's the reason for their interest in next-gen graphics APIs.
  22. You could create an RGBA32F 1D texture (or...

    You could create an RGBA32F 1D texture (or texture buffer) of size num_transforms *4, and pack the transform vectors into it. If you don't have shears, you can use a 3x4 matrix since the last column...
  23. Replies
    2
    Views
    872

    log(1) = 0, so it's probably to shift all the...

    log(1) = 0, so it's probably to shift all the depth values into non-negative values. Also, Z=0 without the +1 would result in a NAN or similar math error when you took the log.
  24. Replies
    17
    Views
    2,983

    Yes, and unfortunately some older Intel hardware...

    Yes, and unfortunately some older Intel hardware on OSX advertise GL3.3 support, even though it relies on Apple's software fallbacks to get there. The HD3000 and 2000 don't do geometry shaders, for...
  25. Replies
    19
    Views
    5,081

    It seems like an interesting proof of concept....

    It seems like an interesting proof of concept. But the fact that it requires bindless everything - textures, vertex arrays, uniform buffers - makes it unsuitable for folding into our existing...
Results 1 to 25 of 359
Page 1 of 15 1 2 3 4