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.07 seconds.

  1. This is all normal, expected behaviour with this...

    This is all normal, expected behaviour with this kind of setup.

    You should use a texture array instead.
  2. As a general rule, if you encounter behaviour...

    As a general rule, if you encounter behaviour like this then you've either (rarely) found a driver bug, or (probably) have something wrong in your code.

    In your case it's your code. Look at your...
  3. An interesting quirk of OpenGL vs D3D is that in...

    An interesting quirk of OpenGL vs D3D is that in OpenGL if you specify a stride 0 it means that the data is tightly packed, whereas in D3D stride 0 means literally 0 and the data will repeat for each...
  4. Replies
    4
    Views
    218

    It's possible that your hardware doesn't support...

    It's possible that your hardware doesn't support any pixelformats which meet these requirements. You can do a loop over a DescribePixelFormat call (remembering that pixel formats are 1-based)...
  5. This is coming in Windows Server 2016, and is...

    This is coming in Windows Server 2016, and is available in the current preview version although I haven't personally tested it. See...
  6. Replies
    3
    Views
    253

    I don't see this happening. As Alfonse...

    I don't see this happening.

    As Alfonse suggests, the hardware would have to support it, otherwise the driver would punt you back to a software emulated mode, and becaue it's the depth buffer that...
  7. Replies
    1
    Views
    352

    Any particular reason why you're doing this...

    Any particular reason why you're doing this rather than using the builtin opengl32.lib?
  8. With GL 1.4 or the GL_ARB_texture_env_combine...

    With GL 1.4 or the GL_ARB_texture_env_combine extension (there's also an _EXT version but I'm ignoring that because _ARB is ubiquitous) you can set an RGB scaling factor of 1, 2 or 4 which is applied...
  9. Replies
    7
    Views
    435

    That's where the scissor test comes in - glClear...

    That's where the scissor test comes in - glClear obeys the current scissor test options, so for your initial example:
    You can use:
    glEnable (GL_SCISSOR_TEST);
    glScissor (1000, 800, 4, 4);...
  10. This is more of a theoretical problem than a...

    This is more of a theoretical problem than a practical one. In reality you're going to find that with n features you're not going to need every single combination, and that many combinations don't...
  11. Replies
    7
    Views
    435

    Try first calling glClearDepth to select the...

    Try first calling glClearDepth to select the value to clear it to.

    Then enable scissor test and set a scissor rect to the area to be cleared.

    Finally glClear (GL_DEPTH_BUFFER_BIT), and when...
  12. Replies
    37
    Views
    1,820

    But we still don't know what your problem is. ...

    But we still don't know what your problem is.

    OK, let me try to put this as clear as I can. You say you want to clear a polygon on the screen, but you haven't said why. You haven't told us what...
  13. Replies
    4
    Views
    351

    Actually if you look at the documentatio for it:...

    Actually if you look at the documentatio for it: https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml you'll see that the generated matrix uses division by "right - left", "top - bottom" and "far -...
  14. Replies
    37
    Views
    1,820

    At this stage you need to be more specific about...

    At this stage you need to be more specific about exactly what it is you're trying to do. Don't even focus on clearing stuff, forget about glScissor, forget about how you'd like to solve the problem,...
  15. Replies
    37
    Views
    1,820

    This is something that comes up regularly enough,...

    This is something that comes up regularly enough, although it's been a while since I've seen it.

    Typically somebody only wants to change a small part of the scene (maybe they're implementing an...
  16. Replies
    4
    Views
    351

    glOrtho ( Left , Left , 10.0 , 10.0 , ..... ...

    glOrtho ( Left , Left , 10.0 , 10.0 , .....
    This is almost certainly not what you want; see https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
  17. Replies
    5
    Views
    299

    They look fine; I wouldn't worry about...

    They look fine; I wouldn't worry about deprecation in this case since glTexGen itself is also deprecated, so at least you've satisfied the condition that your calculations are going to be consistent.
  18. Replies
    5
    Views
    299

    You can use the GL specification to source the...

    You can use the GL specification to source the formulas used for texcoord auto-generation and recalculate them yourself from the retrieved vertex position value.
  19. Unfortunately OpenGL complicates things a little...

    Unfortunately OpenGL complicates things a little because the internalFormat you request is not necessarily what the driver itself will use.

    The classic example of this is that a GL_RGB...
  20. The driver will convert the format during the...

    The driver will convert the format during the transfer operation. Which could be slow.
  21. They're just different names for the same thing....

    They're just different names for the same thing.

    Modelling programs and D3D tend to use (u, v) whereas OpenGL tends to use (s, t) but it's just a naming convention. You could name them (x, y) or...
  22. Replies
    5
    Views
    381

    It's not necessarily going to perform faster if...

    It's not necessarily going to perform faster if you selectively update individual vector components like this. It may even perform slower.

    GPUs like reading each vertex as a contiguous chunk of...
  23. Replies
    1
    Views
    207

    This has absolutely nothing to do with OpenGL.

    This has absolutely nothing to do with OpenGL.
  24. // 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);...
  25. 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,...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4