I read lots of information about getting depth with fragment shader. such as http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=234519
I\'m trying to create my own torus with smooth shading.However, the normal seems to be wrong.Here is my code.
I\'m creating a GUI that has 1 to many OpenGL view forms. Now the basics are working, I have a list of Viewer Forms and each encapsulates an OpenTK.GLControl member in its designer class.
I\'m trying to draw Steiner\'s Roman Surface in OpenGL, and I\'m having some trouble getti开发者_开发知识库ng the right normals so that the surface lights up correctly. I used the parametric equation
I tried to use the transform feedback function, and I made 2 vertex shaders which only affects vertex position.
I have a 3D-cube made with opengl which rotates randomly and stopps occasionally showing up to 3 of its sides. I 开发者_如何学Cwould like to have the cube falling onto one of the sides (x, -x, y, -y,
Is it possible to place a set of Vertices into a VBO, but take the Index and Texture coor开发者_C百科d. Arrays from regular memory? If yes, which syntax to use?Yes, it is possible to do this. But you
Currently I am writing a video player in OpenGL. I call gluOrtho2D like this: gluOrtho2D(0, w, 0, h); And output it with:
In my mouse callback, i need to find out where the mosuebutton was clicked relative to the origin(so I need the -1 to 1 value) In the mosue calledback, the GLint is return the value 400 or whatever th
I\'m calling glTexSubImage2D. If my pixel format is GL_RGBA, then are the pixel types GL_UNSIGNED_BYTE and GL_UNSIGNED_INT_8_8_8_8 fully equivalent?