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....
Type: Posts; User: chris_jan
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....
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):...
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...
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...
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...
Thanks for your advice, kRogue.
If the OpenGL functions are too slow, I'll install the Catalyst driver.
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...
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...
But why can SDL use OpenGL 2.0/2.1 functions when it doesn't use function pointers internally?
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...
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?...
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...
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...
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?
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...
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...
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.
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...