depth-testing Questions

1

Solved

Dislaimer: I am relatively new to three.js, WegGL and 3D graphics in general. I am using three.js to display points from GPS tracks in 3D. The datasets we have to be able to visualize can be quite...
Xenon asked 25/6, 2019 at 17:39

0

What is the simplest way to save my Depth color mode Texture Render. Can it be done without using replacement shaders on my camera? It seems like most of the work is done just setting the color m...

2

Solved

I'm implementing a depth prepass in OpenGL. On an Intel HD Graphics 5500, this code works fine but on a Nvidia GeForce GTX 980 it doesn't (the image below shows the resulting z-fighting). I'm using...
Gono asked 24/10, 2017 at 15:48

1

Solved

In OpenGL, depth buffer values are calculated based on the near and far clipping planes of the scene. (Reference: Getting the true z value from the depth buffer) How does this work in WebGL? My un...
Freeload asked 22/4, 2017 at 20:28

2

Solved

I use SFML to create the window. In this screenshot the cube should be behind the pyramid but it just doesn't work. Here is the minimal code I used: #include <OpenGL/gl.h> #include <Op...
Northumberland asked 28/1, 2012 at 14:8

1

I'm trying to draw sphere with alpha, but I have a problem with my Z-buffer. Some pixels are transparent but write in the Zbuffer so a pixel opaque just behind is hidden. Here are my settings: g...
Vinasse asked 19/6, 2014 at 8:33

1

Solved

As a DirectX noob i'm trying to wrap my head around depth buffers and specifically how pixel shaders are called for obscured pixels. From what i understand, the rasterizer calls the pixel shader f...
Matador asked 27/7, 2013 at 14:13

1

Solved

My program below must display a cube in rotation illuminated with a simple light. The problem is the cube is flashing. When I withdraw the call glEnable(GL_DEPTH_TEST) the cube is not flashing but ...
Paleozoic asked 18/3, 2013 at 22:31

1

My vertex cords are : GLfloat vertices[]= { 0.5f,0.5f,0.5f, -0.5f,0.5f,0.5f, -0.5f,-0.5f,0.5f, 0.5f,-0.5f,0.5f,//face 1 0.5f,-0.5f,-0.5f, -0.5f,-0.5f,-0.5f, -0.5f,0.5f,-0.5f, 0.5f,0.5f,...
Joel asked 7/1, 2013 at 12:22

1

Solved

I am having difficulty understanding the meaning of the first parameter in glPolygonOffset function. void glPolygonOffset(GLfloat factor, GLfloat units); The official documentation says that fac...
Glossography asked 17/11, 2012 at 13:47

2

I am trying to arrange 12 objects in the circle so that each overlaps its anticlockwise neighbour. Something like this: Problem is that if I just rely on the drawing order, one of them is alway...
Pronounced asked 30/8, 2011 at 13:12
1

© 2022 - 2024 — McMap. All rights reserved.