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

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    291

    It does not have to be your code that generates...

    It does not have to be your code that generates the garbage. If you are using some kind of library, framework or binding that maybe that is generating garbage too (although a good one shouldnt). Use...
  2. Replies
    4
    Views
    291

    In case you are using a programming language with...

    In case you are using a programming language with built in garbage collection it could also be that you are generating lots of garbage and the spikes are moments when the garbage collector has to...
  3. May it be possible that you have VSync enabled?...

    May it be possible that you have VSync enabled? In that case all the windows will try to synchronize and slow each other down.
  4. Replies
    2
    Views
    301

    It also depends heavily on how you use your...

    It also depends heavily on how you use your ByteBuffer. Individual puts are rather slow, especially for off-JVM memory. You achieve the best ByteBuffer performance by working on a primitive float...
  5. With floats you shouldnt be testing for exact...

    With floats you shouldnt be testing for exact equality. There can always be rounding errors. Just check for a reasonably small epsilon around 1.0.
  6. Replies
    5
    Views
    796

    OpenGL is not really designed for graphical user...

    OpenGL is not really designed for graphical user interfaces. OpenGL is a state machine and every action depends on the current state which in turn depends on all the actions that have taken place...
  7. Replies
    5
    Views
    796

    It sounds to me like OpenGL is not the right...

    It sounds to me like OpenGL is not the right choice for you. It is not exactly an easy to use library, in fact, I would say it requires an advanced understanding of programming and software...
  8. This number of triangles is so trivially low,...

    This number of triangles is so trivially low, that it will probably not really matter with todays hardware. Especially if your triangles dont overlap. What is way more important than the number of...
  9. Replies
    4
    Views
    380

    I can echo the advice of mgagain. Although the...

    I can echo the advice of mgagain. Although the math behind it is very important and I would definitely recommend learning it for doing "proper work" with OpenGL, I think that you can get very far...
  10. Replies
    4
    Views
    402

    Depends on what you want to do with it. If the...

    Depends on what you want to do with it.
    If the text is changing all the time, like dynamically updated UI's, then your 2) option would probably not be the best idea and you should favor the 1). If...
  11. Move all of your code except for the...

    Move all of your code except for the glUniformMatrix3fv call outside of the loop.

    Buffers you create with glGenBuffers are permanent until you release them with glDeleteBuffers. The data you...
  12. What programming language are you planning to...

    What programming language are you planning to use?
    For Android for example you would need to program in java. On other mobile phones you might need a different programming language. There are,...
  13. Replies
    7
    Views
    758

    Adding to what the others have said: You can do...

    Adding to what the others have said:
    You can do all of those things very easily in java too. There is JOGL and LWJGL which both give you very low level access to OpenGL. I have personally never used...
  14. Replies
    6
    Views
    744

    What kind of Matrix package from LWJGL are you...

    What kind of Matrix package from LWJGL are you using? It sounds like you are not using the JOML packages as they definitely have support for quaternions. This is the current official matrix package...
  15. Replies
    6
    Views
    744

    From your descriptions its save to assume that...

    From your descriptions its save to assume that your matrix and vector implementations are just wrong. If it worked with the other version but doesnt with yours then you made a mistake somewhere....
  16. Replies
    5
    Views
    897

    There is no such thing as a "Panel" in OpenGL....

    There is no such thing as a "Panel" in OpenGL. OpenGL is a low level rendering API. All (well, most) you can do is draw primitive shapes. There isnt even any support for rendering text.

    It sounds...
  17. Replies
    4
    Views
    557

    I was thinking of using render-to-texture for the...

    I was thinking of using render-to-texture for the entire GUI tree, all components at once. I wouldnt do it for individual components. With my current concept I may end up needing several draw calls...
  18. Replies
    4
    Views
    557

    The GUI library is already calculating bounding...

    The GUI library is already calculating bounding boxes up the ancestor tree, components which are completely occluded arent even passed to the rendering function.


    That was my question. Is it a...
  19. Replies
    4
    Views
    557

    GUI implementation; is this a good idea?

    Hi there,

    I am porting an application with a graphical user interface. The new implementation will use GLFW for windowing and input and OpenGL for rendering. I was looking at the requirements...
  20. Replies
    7
    Views
    1,120

    I would suggest stripping your program down bit...

    I would suggest stripping your program down bit by bit until you are left with the smallest possible program which still shows the problem. Finding the source of leaks in big development code can be...
  21. The number of triangles is not that important....

    The number of triangles is not that important. The size of your triangles matters far more. My crappy laptop can draw many millions of triangles if each triangle is only a single pixel in size if not...
  22. OpenGL was not originally designed the way it is...

    OpenGL was not originally designed the way it is right now. it slowly grew over many many years. There are a lot of features which are no longer needed because we found a better way of doing things....
  23. Programming languages are not religions, they are...

    Programming languages are not religions, they are tools. You choose the right tool for the job. Dont choose the tool first and then look for the task; instead, focus on the task and then choose the...
  24. Low-Level and Object-Oriented is kind of a...

    Low-Level and Object-Oriented is kind of a contradiction with OpenGL.
    In java there is LWJGL (the Light Weight Java Gaming Library) which is a low-level binding for OpenGL but with a little bit less...
  25. Here is one way of doing this: - Create a...

    Here is one way of doing this:
    - Create a FrameBufferObject
    - Attach a texture with only 1 color component. This will be used to test for your "occluders".
    - Render your occluders to this FBO....
Results 1 to 25 of 184
Page 1 of 8 1 2 3 4