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

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. // Stick the data for the vertices and indices in...

    // Stick the data for the vertices and indices in their respective buffers
    glNamedBufferDataEXT(m_vertexBuffer, sizeof(vertices[0]) * vertices.size(), &vertices[0], GL_STATIC_DRAW);...
  2. Are you creating the buffer using glGenBuffers or...

    Are you creating the buffer using glGenBuffers or glCreateBuffers? Note that in the former case (i.e with glGenBuffers) the buffer object does not exist; all that glGenBuffers gives you is a name,...
  3. Thread: Regex

    by mhagain
    Replies
    1
    Views
    106

    This is absolutely nothing to do with OpenGL.

    This is absolutely nothing to do with OpenGL.
  4. For fully dynamic data (i.e that changes each...

    For fully dynamic data (i.e that changes each time it's used) immediate mode can be just as fast as using buffer objects, but this depends on the type of objects you're drawing and other factors.
    ...
  5. I would suspect that the Mesa driver only...

    I would suspect that the Mesa driver only supports GL3.3 but the OP's hardware is actually capable of GL 4.x, hence asking if a Windows VM would be able to access that capability. I've no experience...
  6. Replies
    6
    Views
    359

    Why do you want to avoid using glViewport? ...

    Why do you want to avoid using glViewport? glViewport is much more efficient than multiple contexts for this kind of division of the scene.

    I'm not personally familiar with qt but I am aware that...
  7. Hmmm, my reading of the spec is that "uniform...

    Hmmm, my reading of the spec is that "uniform flow control" essentially equates to "no flow control at all", but the statement that "This is similarly defined for other shader stages, based on the...
  8. That's not what non-uniform flow control means.

    That's not what non-uniform flow control means.
  9. Replies
    5
    Views
    1,826

    And it can continue to serve you well for the...

    And it can continue to serve you well for the next few decades if you wish. Here's a thing that people always seem to get confused about during this kind of evolution: this is not a zero-sum game. ...
  10. glVertexAttribPointer...

    glVertexAttribPointer:
    This is legal in legacy OpenGL, so set up the state, make the call and check for errors.
  11. I don't know Java, but in other languages it can...

    I don't know Java, but in other languages it can add an extra degree of type-safety that may not be there otherwise.
  12. Replies
    15
    Views
    745

    The only thing I can think of is overlapping...

    The only thing I can think of is overlapping ranges, but that's more a case of me looking for excuses for why it might fail rather than a serious objection to it.
  13. Replies
    15
    Views
    745

    I haven't tested this, but I think it may be...

    I haven't tested this, but I think it may be possible to glBindBufferRange two different ranges of the same UBO to two different binding points. The man page text for glBindBufferRange certainly...
  14. Replies
    15
    Views
    745

    OK, some confusion here. For skinning on the...

    OK, some confusion here.

    For skinning on the GPU you use an array of bone matrices (which are friendlier for GPUs than quaternions) - one per bone in the model. I'll use standalone uniforms here...
  15. Replies
    3
    Views
    721

    Your problem is that the Mobile Intel 4 Series is...

    Your problem is that the Mobile Intel 4 Series is just a very very old chip, and wasn't particularly good even in it's day. The highest OpenGL version it supports is, IIRC, OpenGL 2.1, so even the...
  16. D3D resolves this by attaching semantics to the...

    D3D resolves this by attaching semantics to the input/output and instead of matching by name it matches by semantic:
    // vertex shader output
    vec3 outposition : POSITION;

    // fragment shader input...
  17. For SAFESEH you can find the setting under...

    For SAFESEH you can find the setting under Project Properties, Linker, Advanced, then set "Image has Safe Exception Handlers" to "No".

    Either way I second Alfonse's advice to just use something...
  18. Replies
    3
    Views
    344

    The order you change state in generally doesn't...

    The order you change state in generally doesn't matter (I say "generally" because non-DSA OpenGL will have interactions between bind-to-modify and bind-to-use) - instead what most drivers/hardware...
  19. Replies
    5
    Views
    431

    glGetTexImage...

    glGetTexImage will get you the texture data which you can then save out; I suggest using TGA instead of BMP or JPG because the returned pointer from glGetTexImage can be written immediately after the...
  20. You can call glBufferData with NULL to do the...

    You can call glBufferData with NULL to do the initial fill. On modern OpenGL it's better to use glBufferStorage because stock glBufferData allows you to change the size of the buffer with another...
  21. Replies
    13
    Views
    1,002

    I'm not sure where you get the "herd following"...

    I'm not sure where you get the "herd following" thing from any of this.

    The thing is, D3D 10/11 was a good API design in it's day. But today it's an almost 10 year old API design, and meantime...
  22. Replies
    13
    Views
    1,002

    I'll add to this that at the very least the...

    I'll add to this that at the very least the behaviour and performance becomes predictable.

    Hidden costs of a potentially hardware-mismatched state change go away, you wind up knowing that if you...
  23. Replies
    13
    Views
    1,002

    The following description of D3D12 states is...

    The following description of D3D12 states is probably relevant here: https://software.intel.com/en-us/blogs/2014/07/23/direct3d-12-overview-part-2-pipeline-state-object

    Under this model there is a...
  24. Thread: Need Help

    by mhagain
    Replies
    7
    Views
    1,119

    No, it's "what are you trying to do?", not "how...

    No, it's "what are you trying to do?", not "how are you trying to do it?"

    So, what's your intended end result? What are you trying to achieve by drawing 8 windows? Because there may be a way to...
  25. Replies
    7
    Views
    567

    Wrong attrib location. You're not using...

    Wrong attrib location.

    You're not using explicit attrib locations so you should be calling glBindAttribLocation and remembering to do so before linking your program.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4