depth-buffer
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 分类:问答Differences in the depth buffer between Android versions using OpenGL ES 1.1
I\'m writing a 2d game in OpenGL ES 1.0 (with casts to 1.1 Extensions where applicable). I\'m trying to keep this as generic as possible in case I\'ve missed something obvious.[详细]
2023-04-04 15:04 分类:问答Android OpenGL 3D picking
I\'m on Android OpenGL-ES 2.0 and after all the limitations that come with it, I can\'t figure out how to take 2D screen touches to the 3D points I have. I can\'t get the right results.[详细]
2023-03-20 05:08 分类:问答True depth values using OpenGL readPixels
I\'d like to retrieve the depth buffer from my camera view for a 3D filtering application. Currently, I\'m using glReadPixels to get the depth component. Instead of the [0,1] values, I need the true v[详细]
2023-03-20 01:57 分类:问答glReadPixels doesn't read depth buffer values on iOS
I can\'t seem to read the depth buffer values in OpenGL ES2 on iOS 4.3 afDepthPixels = (float*)malloc(sizeof(float) * iScreenWidth * iScreenHeight);[详细]
2023-03-17 12:39 分类:问答Writing the correct value in the depth buffer when using ray-casting
I am doing a ray-casting in a 3d texture until I hit a correct value. I am doing the ray-casting in a cube and the cube corners are already in world coordinates so I don\'t have to multiply the vertic[详细]
2023-03-14 17:27 分类:问答Frame Buffer Object (FBO) and Render & Depth Buffers Relation
I saw many examples on the web (for example) which do the following Create and Bind FBO Create and Bind BUFFERS (texture, render, depth, stencil)[详细]
2023-03-08 12:22 分类:问答opengl z-sorting transparency
im rendering png\'s on simple squares in opengl es 2.0, but when i try and draw something behind an square i have already drawn the transparent 开发者_如何学JAVAarea in my top square are rendered the[详细]
2023-03-05 18:48 分类:问答Matlab z buffer for simulating kinect
We are trying to simulate si开发者_StackOverflow中文版mple kinect output. I have rendered a triangle mesh in Matlab and now I want to get at the depth buffer of the figure/axis where the shape has be[详细]
2023-03-04 06:57 分类:问答How to use depth testing when rendering to an offscreen buffer then onto texture
I\'m rendering my scene to a texture. This works fine except that depth testing does not work. How do I enable depth testing if rendering to an offscreen texture? I\'m using the FrameBuffer class http[详细]
2023-02-28 04:30 分类:问答