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

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    222

    There might be ways, but I simply uploaded them...

    There might be ways, but I simply uploaded them all to a VBO.
    Perhaps you could use geometry / tessalation shaders, but I never worked with those so I cant help you.
  2. Replies
    13
    Views
    222

    I tested with VBO's. You can simply test for...

    I tested with VBO's. You can simply test for yourself and compare the performance on your own hardware, this shouldnt be too hard to do.
    If you just want the shader output you can also use offscreen...
  3. Replies
    13
    Views
    222

    The fragment shader will run for every fragment...

    The fragment shader will run for every fragment (not pixels, its not 100% the same). The vertex shader will run for every vertex.
    If you have 2 triangles spanning the whole screen then your vertex...
  4. Replies
    2
    Views
    379

    OpenGL is not software. It is implemented by your...

    OpenGL is not software. It is implemented by your graphics card and the drivers for your graphics card.
    Either your card supports OpenGL 2.1 or it does not. If it doesnt there is nothing you can do...
  5. I remember reading that you should always call...

    I remember reading that you should always call glClear at least once a frame or modern graphics cards would drop in performance. I cant quite remember the article, but it had to do with certain...
  6. Replies
    3
    Views
    477

    Yes of course, everything I found worked. Are you...

    Yes of course, everything I found worked. Are you sure its the example? Perhaps you have made a small mistake at some point? Are you reading the error logs of the compiler and are you using debug...
  7. Replies
    3
    Views
    477

    Just google for examples of Fragment Shaders for...

    Just google for examples of Fragment Shaders for greyscale or Hue-Change. There are plenty of tutorials and examples, I can remember how I was looking for this about a year ago.
  8. Replies
    2
    Views
    633

    I'd say this is definitely possible when you...

    I'd say this is definitely possible when you write your own shader.
    You can bind 2 textures, one with the color information, and one with the depth information.
    In your vertex shader you take the...
  9. Replies
    3
    Views
    473

    The simplest way is to put the text on a texture...

    The simplest way is to put the text on a texture and then render this texture to somewhere. All the other libraries are probably doing the same thing.
    The only difficulty is to get your text on the...
  10. Replies
    3
    Views
    719

    You should just upload the pixels to a texture...

    You should just upload the pixels to a texture and then render the texture.
    Rendering pixel by pixel would possible I think but not very good in terms of performance.
  11. Replies
    3
    Views
    744

    I am not a very advanced OpenGL-Programmer, so...

    I am not a very advanced OpenGL-Programmer, so what I say may not be a 100% correct.
    As far as I know VBO's / VAO's have hardly any overhead. Just having more of them is not a big deal.
    The problem...
  12. Did you enable depth testing and have you...

    Did you enable depth testing and have you selected an apropriate compare function?
  13. Replies
    3
    Views
    794

    Just quoting the "Common Mistakes"-Page: ...

    Just quoting the "Common Mistakes"-Page:

    Source: https://www.opengl.org/wiki/Common_Mistakes#Swap_Buffers
  14. Replies
    5
    Views
    1,074

    The Open Graphics Library does not have any...

    The Open Graphics Library does not have any capabilities for sounds.
    You should be looking for a different library for that.
  15. Replies
    6
    Views
    968

    With the blending provided by Brokenmind it will...

    With the blending provided by Brokenmind it will work too. If you want to do it without blending (because you really dont need blending if you only use alpha values of 1 and 0) then you can do:

    ...
  16. Replies
    6
    Views
    968

    What you want is probably disabled blending with...

    What you want is probably disabled blending with an Alpha-Test.
    Alpha-Test will cull all fragments where the alpha value does not satisfy the test.
  17. Replies
    6
    Views
    968

    I dont see any blending being done in that...

    I dont see any blending being done in that picture. You just draw image2 on top of image1.
  18. Replies
    3
    Views
    735

    Draw a colored quad over the entire screen. There...

    Draw a colored quad over the entire screen. There is no build in "clear to gradient" function.
  19. Replies
    2
    Views
    593

    Just draw quads (2 triangles) instead of lines...

    Just draw quads (2 triangles) instead of lines and you can have any width you like.
    As far as I know arbitrary line-width is not supported any more.
  20. This is not a problem with OpenGL, this is a...

    This is not a problem with OpenGL, this is a problem with VSync in general.
    This is just what it does. By definition.

    Read up on VSync some more, on wikipedia or somewhere, this effect is very...
  21. glTexImage2D and glTexSubImage2D do not render...

    glTexImage2D and glTexSubImage2D do not render anything. Read the documentation for these methods, they are used to transport texel data from client side memory to the graphics card.
    Rendering is...
  22. If you have several windows and they all try to...

    If you have several windows and they all try to synchronize with the screen they will enter a race and potentially slow each other down.
    Just try once without VSync and see if the problem still...
  23. Might it be that you are using VSync on those...

    Might it be that you are using VSync on those windows? Because if you do that would probably be the reason.
  24. Replies
    5
    Views
    1,293

    glTexImage / glTexStorage is creating a texture...

    glTexImage / glTexStorage is creating a texture image. The texture itself has already been created, its just an empty container at this point without any actual data.
  25. Replies
    1
    Views
    618

    OpenGL does not load anything. Its a protocol for...

    OpenGL does not load anything. Its a protocol for communicating with the graphics card. If you want to load files you have to do that on client side and then convert them into data that your graphics...
Results 1 to 25 of 85
Page 1 of 4 1 2 3 4