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

Page 1 of 20 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    2
    Views
    30

    Of course, since it is called for the...

    Of course, since it is called for the projection-matrix stack and after that annihilated by calling glLoadIdentity!
    After setting the projection, you should revert to Model-View matrix stack....
  2. And load new functions not exposed by windowing...

    And load new functions not exposed by windowing API, and make shaders for drawing, and make some shaders loading code, and make buffers for even the smallest primitives (or make them procedurally),...
  3. This is also fairly easy. Fixed functionality is...

    This is also fairly easy. Fixed functionality is easier (up to certain extent) but shader based approach is more flexible. If you are ready to learn, start with GL 3+, but be prepare to spend a long...
  4. Your project is extremely simple. If you want to...

    Your project is extremely simple. If you want to learn modern OpenGL, then and only then you should use OpenGL 3+. But the development would last very long. Using legacy (fixed function) OpenGL would...
  5. It sounds like z-fighting. What are z-depth, near...

    It sounds like z-fighting. What are z-depth, near and far clip distances, and values for the grid vertices. Also, you could post an image that illustrates the issue.


    I seems ridiculously small....
  6. Did you take a look at the specification of the...

    Did you take a look at the specification of the function glFrustum?

    With glVieport(0,0,1280,720) you have set viewport to a whole screen or window (probably), that is not a square, but a...
  7. The projection is wrong. glFrustum() has wrong...

    The projection is wrong. glFrustum() has wrong parameters. Both bottom and top values are 1. It is strange that you have any output.
  8. Replies
    6
    Views
    332

    You can't determine it! You have to set it....

    You can't determine it! You have to set it.
    Please, carefully read the following chapter, and take a look at fig.3-12.
    Up vector can be whatever you set. It should be perpendicular to Direction,...
  9. Your problem is in the for-loop, and the way you...

    Your problem is in the for-loop, and the way you are displaying triangles. Most of the normals are not correct, too.
    I really have no time to analyze what you are actually doing, but try to set
    ...
  10. Replies
    6
    Views
    332

    If the camera position is (0,500,0) and the...

    If the camera position is (0,500,0) and the target is at (0,0,0), there is an infinite number of Up vectors that can produce valid output.
    For example, if Up vector is (0,-1,0) you'll see the object...
  11. Replies
    6
    Views
    332

    No, it is not. If camera is looking down the...

    No, it is not. If camera is looking down the X-axis, you'll get zero-vector.
    Up vector should be the property of the camera. Or even better, use quaternions.
  12. I have no experience with Android platforms, but...

    I have no experience with Android platforms, but on desktops it works fine.
    And, of course, I hope you will not call 6000 times glTexSubImage2D() in each draw-call. Just when some "pixel" has...
  13. Before going any further, please read this...

    Before going any further, please read this.
    You should not call glOrtho while GL_MODELVIEW_MATRIX stack is selected.

    If you do that, matrix at the top of MODELVIEW stack is multiplied with...
  14. The Option 2 is simpler to implement and is...

    The Option 2 is simpler to implement and is faster AFAIK. Updating a small portion of a texture with glTexSubImage2D() is immensely fast. You could just call it in setPixel() defining offsets with x...
  15. Replies
    24
    Views
    1,336

    This qualifies you to be banned on this site...

    This qualifies you to be banned on this site also!


    This is the greatest nonsense I've recently heard. What operating systems are you using? Windows? Period!
    No other comments are necessary....
  16. Replies
    1
    Views
    332

    :biggrin-new: There is no such function! OpenGL...

    :biggrin-new: There is no such function!
    OpenGL cannot even read a bitmap, and you want "a function" to animate humans.
    It is a very advanced topic including loading mesh, skeletal animation,...
  17. Replies
    3
    Views
    498

    Support of double precision is hardware...

    Support of double precision is hardware dependent. AFAIK NV GT200 is the first GPU with DP support (IEEE 754-1985), but many GPUs released after it didn't have DP (for example Radeon HD 7670 released...
  18. Why then there is no way to retrieve some...

    Why then there is no way to retrieve some meaningful names for each ID?
    It is not a problem to have different counters in different hardware, but there should be a way to know what they mean.
  19. I completely agree that having a unified...

    I completely agree that having a unified performance monitoring API could be very useful. So, you have my vote.

    But, instead of reading AMD_performance_monitor, did you try to use it?
    Try and...
  20. Replies
    8
    Views
    566

    Thank you, arekkusu, a million times! :) This...

    Thank you, arekkusu, a million times! :)
    This works excellent!
  21. Replies
    8
    Views
    566

    Thanks for the suggestion, but glTexImage3D()...

    Thanks for the suggestion, but glTexImage3D() simply refuses to accept it as an internal format if I provide integer source data.
    Here is the corresponding code segment:


    m_nInternalFormat =...
  22. Replies
    8
    Views
    566

    Thank you for the suggestion, Osbios! ...

    Thank you for the suggestion, Osbios!

    Unfortunately, GL_ARB_texture_gather is not supported in GL3.x, or to be more precise in NV Cg gp4vp profile.
    That significantly limits the usage, but I'll...
  23. Replies
    8
    Views
    566

    Thank you very much for the answer, arekkusu! ...

    Thank you very much for the answer, arekkusu!

    That's exactly what I was afraid of. I've chosen GL_R16UI format because it gives me the best precision/size ratio. GL_R32F is twice the size of...
  24. Replies
    8
    Views
    566

    Integer Texture Filtering

    Hi all,

    This was a problem I've encountered several years ago, but since it could be neglected then I repressed it.
    Yesterday it appeared once again and now it is crucial to be solved. The...
  25. Replies
    4
    Views
    476

    That's something I asked for several years ago,...

    That's something I asked for several years ago, but there is no intent for the perf API to be unified in the foreseeable future.
    The only solution now is to make separate reading functions for each...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4