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

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    663

    Re: Problem with declaring vertex normals

    I've checked the winding of the vertices; it seems that I always used clockwise winding instead of counter clockwise winding.
    I've corrected that and did what you said:

    Now it seems to work OK....
  2. Replies
    7
    Views
    663

    Re: Problem with declaring vertex normals

    I've tried it with reversed normals but it didn't seem to help ( here you can see the results (the right picture uses vAB, vAC and the left picture vAC, vAB):...
  3. Replies
    7
    Views
    663

    Re: Problem with declaring vertex normals

    Yes, the code seems to work (with some small corrections). But the faces seem to be drawn in a wrong way (only the faces inside seem to be drawn).
    But it doesn't seem to help to to put a minus sign...
  4. Replies
    7
    Views
    663

    Re: Problem with declaring vertex normals

    OK, I've just noticed that I misunderstood what vertex normals are ( http://www.opengl.org/discussion_boards/...;gonew=1#UNREAD : "for the normal at a vertex, sum the normals for all the triangles...
  5. Replies
    7
    Views
    663

    Problem with declaring vertex normals

    Hello,
    I'm programming a small game with BulletPhysics and OpenGL (2.1).
    Yesterday I added lighting to the game, so I needed normals for the objects, too.
    But I've got a problem with that:
    I'm...
  6. Replies
    20
    Views
    8,742

    Re: Creating OpenGL Context with SDL

    Thanks for your advice, kRogue.
    If the OpenGL functions are too slow, I'll install the Catalyst driver.
  7. Replies
    20
    Views
    8,742

    Re: Creating OpenGL Context with SDL

    Thank you very much for your answer!
    Maybe, for my next project, I'll use glew additonal to SDL so that I don't have to check if an extension is available on this platform.
    But for this project I...
  8. Replies
    20
    Views
    8,742

    Re: Creating OpenGL Context with SDL

    OK, thank you.
    I don't really need OpenGL 3.x so I won't change my system.
    Did I understand this correctly: I can also use OpenGL functions of version > 1.2 when I have the latest glext.h header...
  9. Replies
    20
    Views
    8,742

    Re: Creating OpenGL Context with SDL

    But why can SDL use OpenGL 2.0/2.1 functions when it doesn't use function pointers internally?
  10. Replies
    20
    Views
    8,742

    Re: Creating OpenGL Context with SDL

    Thank you for your answer!
    One last thing:
    In http://www.opengl.org/wiki/Getting_started (OpenGL 2.0+ and extensions) is mentioned that, without function pointers, you can't use functions of OpenGL...
  11. Replies
    20
    Views
    8,742

    Re: Creating OpenGL Context with SDL

    Thank you for your answer!
    I can't find a link to gl.h (only to glext.h, glxext.h and wglext.h) in http://www.opengl.org/registry/#headers.
    So my question is: Where can I get this header file from?...
  12. Replies
    20
    Views
    8,742

    Re: Creating OpenGL Context with SDL

    OK, I'll try if it works.
    Thanks for your answer.
    For faster computers, would it be better to use SDL_GL_LoadLibrary or SDL 1.3 so that contexts for OpenGL > 2.1 can be created? Or is it all the...
  13. Replies
    20
    Views
    8,742

    Re: Creating OpenGL Context with SDL

    I had already installed the ATI-fglrx driver, but I had to replace it with the open source driver because it caused a memory leak (when calling SDL_Flip). Now I don't use SDL_Flip any more so this...
  14. Replies
    20
    Views
    8,742

    Re: Creating OpenGL Context with SDL

    I looked at /usr/lib/libGL.so and it's a link to "mesa/libGL.so" and not to the radeon libGL.so. How can I solve this problem/why doesn't the link lead to the radeon library?
  15. Replies
    20
    Views
    8,742

    Re: Creating OpenGL Context with SDL

    By the way, I wanted to see why it uses Mesa 2.1 and not Radeon 2.1 and I saw (with glxinfo) that my system only has Mesa:

    OpenGL renderer string: Mesa DRI R600 (RV730 9480) 20090101 x86/MMX/SSE2...
  16. Replies
    20
    Views
    8,742

    Creating OpenGL Context with SDL

    I'm developing an OpenGL Game with SDL 1.2 creating a context (on Linux/Ubuntu 10.10; GPU: ATI Mobility Radeon HD 4650; GPU driver: radeon (open source); Laptop bought: end of 2009).

    But I think...
  17. Re: OpenGL error 1281 caused by glTexSubImage2D

    kyle_: Thank you for your answer!
    You were right: 'pFontSurface->w' and 'MyMath->power_of_two(GetTextureW())' didn't match.
    GetTextureW() returned the Texture coordinates and not the pixel size.
  18. OpenGL error 1281 caused by glTexSubImage2D

    I've got a problem with glTexSubImage2D:
    First I used SDL for Graphics output, but now I use OpenGL (with SDL creating a context).
    But I still wanted to use for example SDL_ttf.
    But when I use...
Results 1 to 18 of 18