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

  1. 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...
  2. Replies
    6
    Views
    397

    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...
  3. Replies
    5
    Views
    415

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

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

    by Cornix
    Replies
    3
    Views
    356

    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.
  5. 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...
  6. 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...
  7. 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...
  8. 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.
  9. Replies
    3
    Views
    667

    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...
  10. Thread: GLSL questions

    by Cornix
    Replies
    6
    Views
    718

    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.
  11. Replies
    3
    Views
    445

    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...
  12. 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....
  13. 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.
  14. 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...
  15. Replies
    15
    Views
    1,226

    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.
  16. Replies
    7
    Views
    775

    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.
  17. Replies
    7
    Views
    775

    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.
  18. 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.
  19. 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...
  20. Replies
    11
    Views
    1,672

    You can always use textures like an array.

    You can always use textures like an array.
  21. Replies
    4
    Views
    776

    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...
  22. Replies
    4
    Views
    776

    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.
  23. Replies
    4
    Views
    774

    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.
  24. Replies
    19
    Views
    2,270

    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...
  25. Replies
    19
    Views
    2,270

    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.
Results 1 to 25 of 109
Page 1 of 5 1 2 3 4