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

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Hard to give a meaningful answer with that amount...

    Hard to give a meaningful answer with that amount of information. For all I know your "arbitrary" values are not valid in the way I mentioned and therefore the texture creation, and subsequently the...
  2. Unsized formats are deprecated. Texture storage...

    Unsized formats are deprecated. Texture storage functions for example only takes sized formats.
  3. In older OpenGL you could set a texture flag that...

    In older OpenGL you could set a texture flag that tells the driver to auto generate the mipmaps when the texture data changed. That is not used anymore.
    Now you initiate the generating yourself...
  4. Replies
    10
    Views
    980

    Simple alpha blending that e.g. only uses...

    Simple alpha blending that e.g. only uses additive, subtract or multiplication, does not need to be sorted. Depending on how accurate the result has to be.
  5. Replies
    7
    Views
    683

    Considering glTextureStorage2D is fine with the...

    Considering glTextureStorage2D is fine with the value but glCompressedTextureSubImage2D is not, this looks like a driver fuck up to me...
  6. Replies
    8
    Views
    845

    Well... if you are a OpenGL historian then go for...

    Well... if you are a OpenGL historian then go for it, but otherwise I would stick to a minimum version of OpenGL. depending on what the hardware has you want to run it on.
  7. Replies
    8
    Views
    845

    I don't use any VAOs at all, except the one you...

    I don't use any VAOs at all, except the one you have to bind to be standard conform since, I think, 3.3 core. (Well it works without on nvidia, but there implementation is as standards conform as...
  8. Fount the older stuff. GLX_SGI_video_sync...

    Fount the older stuff. GLX_SGI_video_sync

    It come with this two functions.

    int glXGetVideoSyncSGI(uint *count);
    int glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count);
    ...
  9. https://www.opengl.org/wiki/Swap_Interval...

    https://www.opengl.org/wiki/Swap_Interval (specifically GLX_EXT_swap_control or GLX_MESA_swap_control)
    Or when using SDL2 there is SDL_GL_SetSwapInterval()

    You can set swap interval to 2. So it...
  10. We need some more context/information to be able...

    We need some more context/information to be able to help. What version of OpenGL are you targeting? What hardware is it supposed to run on? Any other limitations?

    Modern OpenGL does not support...
  11. Replies
    4
    Views
    619

    There is a lot of caching going on with OpenGL...

    There is a lot of caching going on with OpenGL calls. Use glFlush after you submitted all OpenGL calls and before you want to do the CPU stuff. Otherwise the swapbuffers command will cause a glFlush...
  12. Replies
    7
    Views
    1,904

    Valid point. I tested some more and to me it...

    Valid point.

    I tested some more and to me it looks like dxt3/5 + 7z(default compression settings) has a slightly better image quality then a jpg at the same file size. (Using gimp + dds plugin)...
  13. Replies
    7
    Views
    1,904

    Never really used compressed textures because so...

    Never really used compressed textures because so far I hat no need for them in my projects.

    I could imagine that you still can compress raw DXT very well with some default compression algorithms....
  14. Just a guess from how compressed textures work...

    Just a guess from how compressed textures work with there block size:



    static inline int align(int value, int alignment)
    {
    return value + ((value % alignment) ? (alignment - (value %...
  15. Well, drivers cache a lot of the commands before...

    Well, drivers cache a lot of the commands before they actually do anything.
    Changing the FBO normally is the most expensive action. And then you often switch between many shaders during rendering to...
  16. Well there is GL_ARB_depth_clamp (Core since...

    Well there is GL_ARB_depth_clamp (Core since 3.2). So maybe a simple glDisable(GL_DEPTH_CLAMP) could do the trick? Never used that one and have no idea how it interacts with clip_control.
    But maybe...
  17. To make this more useful for future google...

    To make this more useful for future google archeologists here is my solution.

    The projection matrix is the same for both variants:

    With GL_ARB_clip_control:


    glDepthFunc(GL_GREATER);...
  18. Replies
    15
    Views
    3,096

    Isn't repeatedly mapping/unmapping one of the...

    Isn't repeatedly mapping/unmapping one of the extreme performance killers that you should not use it in any case?
  19. Replies
    15
    Views
    3,096

    SDL2 for example comes directly with shared GL...

    SDL2 for example comes directly with shared GL contexts. If you don't use SDL2 you can take a look at there code.

    The things you would update/create in a separate threads would be buffers and...
  20. Well depending on how glDepthRange(-1.0, 1.0)...

    Well depending on how glDepthRange(-1.0, 1.0) actually acts in GL Core >= 4.3, you also could use that. Sure that also is not supported by MacOS right now, but that is not my target at the moment....
  21. Yes glClipControl(GL_LOWER_LEFT, GL_ZERO_TO_ONE)...

    Yes glClipControl(GL_LOWER_LEFT, GL_ZERO_TO_ONE) combined with glDepthRange(1.0,0.0) is marginally better but not what I was locking for.

    I got a working projection matrix for...
  22. Replies
    4
    Views
    1,612

    When your vertex calculation are expensive you...

    When your vertex calculation are expensive you should use https://www.opengl.org/wiki/Transform_Feedback

    You basically calculate all the vertex data once and write them into a buffer, and then use...
  23. Well, the whole point about reversed float depth...

    Well, the whole point about reversed float depth buffer is to use of the precision around 0 of floating point numbers.
    ...
  24. How to setup projectionMatrix/worldMatrix for use with inverted float depth buffer?

    So I try to get the luxury of a decent depth buffer resolution but so far only see the horrors of z fighting.

    Here is what I "understand":

    First I need GL_NV_depth_buffer_float with...
  25. Replies
    4
    Views
    946

    @lambage: What you posted is ok, the problem...

    @lambage:
    What you posted is ok, the problem must be somewhere else. Is the shader active (glUseProgram(program)) when you call glUniform1iv?
Results 1 to 25 of 110
Page 1 of 5 1 2 3 4