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: V-man

Page 1 of 20 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    6
    Views
    1,706

    Looks to me like you disabled...

    Looks to me like you disabled glLoadIdentity().//glLoadIdentity();

    in your Resize(int w, int h)

    Also, you might want to merge these 2 calls
    glClear(GL_COLOR_BUFFER_BIT);...
  2. Replies
    2
    Views
    1,046

    Yes, state sorting boosts performance. You can...

    Yes, state sorting boosts performance. You can sort by shader, then texture (for example texture0).
  3. Replies
    9
    Views
    3,588

    That's ok. Choose one of the cards and it will...

    That's ok. Choose one of the cards and it will probably work because it is a unified driver. It will auto detect your card and install the right driver.
    The GL version would be 1.5 after...
  4. Replies
    5
    Views
    3,012

    I would do zoom on the projection matrix. If you...

    I would do zoom on the projection matrix. If you want a perspective matrix, use glFrustum. If you want a orthogonal matrix, use glOrtho.
    In both cases, the idea is the same. To zoom in, lower the...
  5. Replies
    3
    Views
    1,601

    You are using glTexSubImage2D correctly. I don't...

    You are using glTexSubImage2D correctly. I don't know if /proc/meminfo reports driver memory usage but it is possible. How much is the memory leak every time you call it?
    2048x2048x3 or 2048x2048x4?
  6. Such information is platform specific in OpenGL....

    Such information is platform specific in OpenGL. It is probably the same for OpenGL ES.
    For GL, there is GL_ATI_meminfo on ATI and there was another one for nVidia.
    You would have to check you...
  7. Replies
    1
    Views
    596

    If you want to use the png format, people tend to...

    If you want to use the png format, people tend to use libpng or a higher level library that uses libpng under the hood.
    Links for such libraries are here
    http://www.opengl.org/wiki/Image_Libraries...
  8. Replies
    10
    Views
    2,159

    Are you using a VAO? You don't need to bind the...

    Are you using a VAO? You don't need to bind the VBO and IBO while rendering. Just bind the VAO and call glDrawElements.
    Also, try using unsigned short instead of unsigned byte for the indices.
  9. Replies
    5
    Views
    1,133

    The parameters in the form? I'm assuming you...

    The parameters in the form?
    I'm assuming you mean you want the source code for gluCylinder. You can download the Mesa3D library which has OpenGL code and also GLU. Just take the GLU project and...
  10. OpenGL is an API, it is used to communicate with...

    OpenGL is an API, it is used to communicate with the graphics card, for rendering 3D things.
    For smartphones and PDA, there is another version called OpenGL ES. The first version was 1.0, then 1.1,...
  11. Replies
    13
    Views
    2,827

    gluCylinder does have vertices but there isn't an...

    gluCylinder does have vertices but there isn't an easy way to get the vertices.
    1. You could get the source code (mesa3d.org has it along with the mesa opengl implementation)
    2. Use a 3rd party...
  12. Thread: How to use GLUT

    by V-man
    Replies
    5
    Views
    2,016

    If you just need to draw a sphere, then you can...

    If you just need to draw a sphere, then you can use glutSphere but why don't you use GLU instead?

    Call glPolygonMode(GL_FRONT_AND_BACK, GL_POINT) to set point mode.
  13. If you want an open source application, try...

    If you want an open source application, try Blender. It is for designing 3D objects for games.
    If you want an actual game there is Quake 2, Quake 3, Quake 4, Doom 3, Wolfenstein 3D from...
  14. Replies
    2
    Views
    886

    In old OpenGL, there is a setting called...

    In old OpenGL, there is a setting called GL_LIGHT_MODEL_AMBIENT which is by default 0.2, 0.2, 0.2, 1.0.
    You can set it to zero if you want with glLightModel.
  15. Replies
    2
    Views
    1,309

    In this glColor3f(255,0,255); Your value is too...

    In this
    glColor3f(255,0,255);
    Your value is too high. Floating point color should be between 0.0 and 1.0. 255 gets clamped to 1.0.
    Use glColor3ub or glColor4ub.

    In this
    glRotated(0, 0, 0.5,...
  16. Why don't you perform the calculation as soon as...

    Why don't you perform the calculation as soon as the keyboard button is pressed?
  17. Replies
    2
    Views
    1,165

    Go to nvidia.com and look for drivers. In the...

    Go to nvidia.com and look for drivers.
    In the drop down list that says PRODCT TYPE, select Legacy.
    You'll see the ForceWare Release 90 drivers.
  18. Replies
    8
    Views
    8,547

    In your code, try making a GL 4.3 context. If it...

    In your code, try making a GL 4.3 context. If it fails, try a lower version. Whatever version you get, that is what your driver supports.
  19. Replies
    1
    Views
    853

    #1 looks pixel perfect. There is no aliasing. #2...

    #1 looks pixel perfect. There is no aliasing.
    #2 and #3 look like they have aliasing, probably due to texture filter settings (GL_LINEAR?)
  20. Replies
    1
    Views
    1,838

    GL is implemented at the driver level. If your...

    GL is implemented at the driver level. If your software requires GL 2.1, then you must query it and the rest is explained here
    See...
  21. You would already need to re-render the scene on...

    You would already need to re-render the scene on mouse move even if you are using the main window.
    Usually, SwapBuffer invalidates the backbuffer.
    On Windows, for the pixelformat descriptor, you...
  22. So, you are using glReadPixels to read the depth...

    So, you are using glReadPixels to read the depth buffer?
    It looks like the depth buffer is stretched started from the middle. Is it causing a problem with the output to your window or is it just a...
  23. Thread: Texture Problem

    by V-man
    Replies
    5
    Views
    1,156

    glGetError()

    glGetError()
  24. There are 2 ways to do it. 1. Using a 2D texture...

    There are 2 ways to do it.
    1. Using a 2D texture
    2. Using a cubemap

    Neither method require shaders but using shaders is always a good idea.

    This isn't a tutorial but it explains both methods...
  25. glCheckFramebufferStatus is for FBO, not for the...

    glCheckFramebufferStatus is for FBO, not for the main surface.

    Are you refreshing the window before using glReadPixels?
    The usual pattern of calls is
    glClear(...);
    RenderStuff();...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4