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 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    48

    Is it true that VAO's are inefficient?

    Hi there,

    somebody told me recently that VAO's are inefficient (due to cache misses or something) and one should only use one global VAO for maximum efficiency. This sounds dubious to me and...
  2. Your code might be slow because you create lots...

    Your code might be slow because you create lots of java objects which need to be garbage collected.
    Could you show us the actual java code you use with your buffers? In general, when performance is...
  3. Replies
    6
    Views
    444

    What java library are you using for the OpenGL...

    What java library are you using for the OpenGL bindings?
    If it is LWJGL then your approach will not work as you need to set the buffers byte order and you also have to rewind it. If you are new to...
  4. Replies
    5
    Views
    446

    You can write your own shaders and use uniforms...

    You can write your own shaders and use uniforms for the alpha value.
  5. Thread: Simple question

    by Cornix
    Replies
    3
    Views
    374

    Because multiplication with matrices is not...

    Because multiplication with matrices is not commutative. Do internet research on commutativity and matrices and you may learn more.
  6. In general you want to have as few OpenGL calls...

    In general you want to have as few OpenGL calls as possible, and you want to do many things at once. If you have many sprites, and they are all moving, just update the VBO data for all of them at...
  7. Of course it will. Just think about it, old...

    Of course it will. Just think about it, old applications have to run on newer hardware as well. So if you write a new application using old techniques it will run on new hardware just as well as old...
  8. No. You use the fixed functionality pipeline. In...

    No.
    You use the fixed functionality pipeline. In the fixed function pipeline you will always take the fragment color from the highest enabled texture when rendering. The texcoords will be the last...
  9. Have you disabled textures before drawing the...

    Have you disabled textures before drawing the point? Otherwise you will try to sample texcoords from the texture, even when drawing a point or a line.
  10. Replies
    3
    Views
    719

    If you want good performance then immediate mode...

    If you want good performance then immediate mode (the glBegin ... glEnd stuff) is probably not what you want to do. It is old and deprecated, mainly because it is slow.
    If you want to improve...
  11. Thread: GLSL questions

    by Cornix
    Replies
    6
    Views
    779

    Why dont you just try it out? You have a...

    Why dont you just try it out? You have a compiler, just ask it what is allowed.
  12. Replies
    3
    Views
    475

    You can use the same shaders for various...

    You can use the same shaders for various rendering operations.
    If you want to show 1000 images but they all use the same kind of information you only need a single shader.

    You can also draw all...
  13. OpenGL is not responsible for creating windows....

    OpenGL is not responsible for creating windows. That is a platform dependent task which is usually done by a third party library. And just having multiple windows is not killing frame rates either....
  14. How about you just try it and see how the...

    How about you just try it and see how the performance is before making assumptions. You could even try different approaches and pick the one with the most promising results.
  15. How often do you need to remove these meshes? If...

    How often do you need to remove these meshes? If it isnt too often or you dont have too many meshes then simply rebuild the entire VBO from ground up.
    Uploading a few kb of data isnt that slow...
  16. Replies
    15
    Views
    1,265

    You could test if your depth testing is...

    You could test if your depth testing is initialized correctly by just drawing 2 lonely triangles over each other and see whether the correct one gets displayed.
  17. Replies
    7
    Views
    818

    Why should it not be? The developers make it for...

    Why should it not be?
    The developers make it for fun and their personal enjoyment and share their work with others. Not everybody wants to have money, some prefer personal satisfaction.
  18. Replies
    7
    Views
    818

    Perhaps you should instead look at a full blown...

    Perhaps you should instead look at a full blown engine like libGDX which will do these things for you. If you are a beginner it might be very though to do everything by scratch.
  19. Not everybody speaks english as their native...

    Not everybody speaks english as their native language, its a big world, it might very well be that you do not know what translation means.
  20. Maybe you should look up what the word...

    Maybe you should look up what the word "translation" means. Its movement. With glTranslate you can move your coordinate system on the x, y and z-axis. You are currently moving everything on the...
  21. Replies
    11
    Views
    1,715

    You can always use textures like an array.

    You can always use textures like an array.
  22. Replies
    4
    Views
    792

    You can always just try to see if the performance...

    You can always just try to see if the performance changes.
    By the way, shaders are compiled every time you start your application. This means that on different hardware the loop might not get...
  23. Replies
    4
    Views
    792

    My *guess* would be that a loop includes a...

    My *guess* would be that a loop includes a condition which needs to be evaluated. This can take its time and will be a lot of additional work to your GPU.
  24. Replies
    4
    Views
    798

    Or, alternatively, you could deactivate the...

    Or, alternatively, you could deactivate the culling of fron or back faces. This way your quads would be visible from either side.
  25. Replies
    19
    Views
    2,346

    Whoops, yes there actually IS not just one but...

    Whoops, yes there actually IS not just one but more typos in that sentence, I am sorry.
    This would be what I wanted to say:

    I cant understand how I could have screwed that up. I must have been...
Results 1 to 25 of 110
Page 1 of 5 1 2 3 4