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

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. glMultiDrawElements.

    glMultiDrawElements.
  2. Replies
    9
    Views
    335

    No. You can use up to MAX_VERTEX_ATTRIBS...

    No. You can use up to MAX_VERTEX_ATTRIBS locations in your vertex shader. Attributes which are enabled will be read from your vertex arrays. Attributes which are not enabled will read from the...
  3. Replies
    8
    Views
    302

    That's true in a core profile GL context, or in...

    That's true in a core profile GL context, or in ES2, ES3, or WebGL.
    But it's not true in a compatibility profile GL context, or in ES1.

    So, what context profile are you using? And do your...
  4. Replies
    8
    Views
    302

    Read the documentation...

    Read the documentation, specifically the GLSL specification that defines gl_PointCoord:



    Next question: do you understand how to enable point sprites?
  5. Replies
    8
    Views
    302

    Do you understand when gl_PointCoord is undefined?

    Do you understand when gl_PointCoord is undefined?
  6. Replies
    9
    Views
    335

    Uniforms are initialized to zero by...

    Uniforms are initialized to zero by glLinkProgram. Zero matches glActiveTexture(GL_TEXTURE0).
  7. Replies
    9
    Views
    335

    Do you understand what...

    Do you understand what glEnableVertexAttribArray() does? What happens to attributes that aren't enabled?
  8. Replies
    9
    Views
    571

    Anytime your program crashes, you need to learn...

    Anytime your program crashes, you need to learn to debug the crash.

    Read the documentation for your debugger, and learn how to examine your image1, image2 pointers.
    For example you should be able...
  9. Sounds similar to this paper...

    Sounds similar to this paper.
  10. Computing the stipple phase offset across line...

    Computing the stipple phase offset across line segments is a serialized problem; you need the length of segment N before you can draw segment N+1. If you're already computing per-point data on the...
  11. Replies
    6
    Views
    657

    Did you read it? So: with std430, the...

    Did you read it?



    So: with std430, the rounding up to vec4 alignment doesn't happen. BUT the largest member in your structure is a vec4, so the rounding doesn't matter, the whole structure is...
  12. Search for "depth sprite".

    Search for "depth sprite".
  13. You should learn about scope of variables...

    You should learn about scope of variables.
    And also about setting breakpoints and examining memory.
  14. If you want to copy A to B, try...

    If you want to copy A to B, try glBlitFramebuffer.
    If you want to render A's content directly to B in the first place (and never create A), use glViewport. The viewport doesn't clip (#10), so you...
  15. Replies
    2
    Views
    300

    You need a debugger...

    You need a debugger where you can set breakpoints and view variables.
  16. How are you ensuring...

    How are you ensuring that your VBO modifications on the worker thread are visible to the main thread?
  17. Replies
    19
    Views
    12,514

    4.1 actually, if the app figures out how to...

    4.1 actually, if the app figures out how to request core profile.
  18. Replies
    19
    Views
    3,531

    You could set a breakpoint on all of the API that...

    You could set a breakpoint on all of the API that can modify the VAO.
  19. Replies
    2
    Views
    505

    The semantics are spelled out in recent versions...

    The semantics are spelled out in recent versions of the specification. See "Determining Completion of changes to an object" in GL4.5.

    TLDR; you don't need sync objects, the producer must flush,...
  20. Yeah, that looks broken. Update to whichever...

    Yeah, that looks broken.

    Update to whichever newest OSX version your Hackintosh can run...?
  21. Show your code. For example: GLint...

    Show your code. For example:

    GLint maxCombinedUnits, activeUnit;
    glGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, &maxCombinedUnits);
    printf("%s %s: %d\n",...
  22. Replies
    8
    Views
    906

    It's not implied. It's explicitly documented as...

    It's not implied. It's explicitly documented as such, in the specification's state tables for TEXTURE_BINDING_xD.

    It's legal to bind a texture of every target to the same unit. Prior to shaders,...
  23. Replies
    5
    Views
    1,078

    But if you use glGetError() you'll see that your...

    But if you use glGetError() you'll see that your draw call is broken in your new code. Because you changed it to draw GL_LINES, but your geometry shader expects GL_POINTS. Mismatched primitive...
  24. Replies
    5
    Views
    1,078

    A few different problems: 1) you're using...

    A few different problems:

    1) you're using constants that are only valid in GL3, in a GL2 context.
    GL_GEOMETRY_INPUT_TYPE != GL_GEOMETRY_INPUT_TYPE_EXT
    GL_GEOMETRY_OUTPUT_TYPE !=...
  25. What Alfonse means is: the ES3 GLSL spec says...

    What Alfonse means is: the ES3 GLSL spec says that sampler2D defaults to "lowp" precision, so unless you explicitly declare it "highp", you shouldn't expect to get a 32-bit float.

    (And if you're...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4