opengl
How to render depth linearly in modern OpenGL with gl_FragCoord.z in fragment shader?
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[详细]
2023-04-13 10:06 分类:问答Obtaining normal of vertices of torus mesh
I\'m trying to create my own torus with smooth shading.However, the normal seems to be wrong.Here is my code.[详细]
2023-04-13 09:08 分类:问答Getting the Mouse window coordinates in OpenTK (C#~.NET)
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.[详细]
2023-04-13 08:46 分类:问答Drawing Steiner's Roman Surface in OpenGL
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[详细]
2023-04-13 06:17 分类:问答OpenGL Transform Feedback got reverse-order result
I tried to use the transform feedback function, and I made 2 vertex shaders which only affects vertex position.[详细]
2023-04-13 05:08 分类:问答Rotating cube to show only one side
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,[详细]
2023-04-13 04:39 分类:问答OpenGL - Vertex Array inside a VBO and Index & Texture Array outside?
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[详细]
2023-04-13 04:25 分类:问答2D display looks weird in OpenGL
Currently I am writing a video player in OpenGL. I call gluOrtho2D like this: gluOrtho2D(0, w, 0, h); And output it with:[详细]
2023-04-13 04:11 分类:问答how to get relative x and y position from mouse click
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[详细]
2023-04-13 04:03 分类:问答OpenGL texture upload: UNSIGNED_BYTE vs UNSIGNED_INT_8_8_8_8
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?[详细]
2023-04-13 04:02 分类:问答