directx , delusion ,opengl 3

Started by
5 comments, last by V-man 14 years, 8 months ago
Hy. I programming on directx 10 for 1 year, but now i'm fascinated by linux and the open source . Directx 10 is very nice , but difficult without a some good graphics artist i can done somtings of good then i take care the portability also in the future i can wrote a scentific program(with my friend that aren't graphics artist but are graduate in chemical) that also for work in linux if i use opengl. But i would use it for games now , where can i start ? there is a good book? I see on this pages a little more advanced opengl book but i don't remember the name. ps a quesition: Exist a shader approach for opengl? like the directx10 or is all diverse Thanks.
Advertisement
There aren't many books on OpenGL 3.x yet, because that was only released about a year ago. Since then we also got OpenGL 3.1 and OpenGL 3.2. Basically the Red Book (about OpenGL) and the Orange Book (about GLSL, the OpenGL shading language) are often recommended. The newest version of the red book is about OpenGL 3.1 if I'm correct (not sure though).

Another great book is the OpenGL superbible (covers both OpenGL and GLSL). I have this book myself and it is absolutely great. Unfortunately the newest version is about OpenGL 2.1, so it is somewhat outdated.

OpenGL 3.x should give you about the same functionality as DirectX 10 by the way. So basically you can do the same things in OpenGL as in DirectX 10. Keep in mind that only AMD and nVidia currently provide OpenGL 3.x drivers and for OpenGL 3.x you will need DirectX 10 class hardware.
but is possible in opengl to avoid use pipline and use always shaders like the dx 10?
Thanks.
Of course. You just bind a shader with glUseProgram(shaderID).
Shaders have been available since GL 2.0 in the form of GLSL and even before that as various extensions.

If you want more info about GL 2.0, which is not that different from 3.0, you can see here
http://www.lighthouse3d.com
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
i dont think OGL 3.2 is good enough to rival against DX10.1 and DX11 in terms of general computing (and next-gen rendering).
And there is a good tool for debug shaders?like pix for dx ?
Thanks.
Pix. I never used it.

These are some debugging tools
http://www.opengl.org/wiki/Debugging_Tools

there are other tools like RenderMonkey and FXComposer that helps write shaders and view the results. Search at
http://developer.amd.com
http://developer.nvidia.com

and the knowledgebase for everything opengl is here
http://www.opengl.org/wiki

Quote:i dont think OGL 3.2 is good enough to rival against DX10.1 and DX11 in terms of general computing (and next-gen rendering).


You must use OpenCL instead.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement