English 中文(简体)
因此,冰川与多角坡有关
原标题:why glPolygonOffset is related to the slope of polygons

I am doing shadow mapping using OpenGL. There is a z-fighting problem when comparing the depth with the shadow map. I can solve the problem using glPolygonOffset. I know this function helps push(or pull) the polygon a little bit so that the z-fighting problem is solved. But I have a question about the function glPolygonOffset. I do not know clearly why the slope of the polygon is related to the offset.

http://www.opengl.org/resources/faq/ technical/polygonoffset.htm“rel=“nofollow”>here:

系数参数是为了确保几乎对电离层的填充价格取得正确结果。 在本案中,两种共同计划价格衍生物产生的同一种粉状的Z值与X或Y的Z山坡最大值的区别一样大。 这一 Z坡将大到几乎边缘的原始,几乎不存在面对面的原始资产。 系数参数允许你在由此产生的深度中增加这种差异。

这里我不知道,为什么“两种共同计划价格制成的同一种纤维的Z值之间的差别可能与X或Y”的Z山坡最大程度一样大。

最佳回答

如果多角有兹坡度,则在平线左边和右边之间有分歧。

因此,为了把事情放在前面,你必须保证,无论在计算z子时,它都站在前面。

问题回答

暂无回答




相关问题
OpenGL 3D Selection

I am trying to create a 3D robot that should perform certain actions when certain body parts are clicked. I have successfully (sort of) implemented picking in that if you click on any x-plane part, it ...

CVDisplayLink instead of NSTimer

I have started to implement cvDisplayLink to drive the render loop instead of nstimer, as detailed in this technical note https://developer.apple.com/library/archive/qa/qa1385/_index.html Is it ...

Can the iPhone simulator handle PVR textures?

I have a really weird problem with PVR textures on the iPhone simulator- the framerate falls through the floor on the iPhone simulator, but on the iPhone itself it works just fine. Has anyone had any ...

Calculate fps (frames per second) for iphone app

I am using an opengl es iphone application. What is the most accurate way to calculate the frames per second of my application for performance tuning?

Java - Zoom / 3D Data Visualization Libraries

What are the best libraries/frameworks for doing 3D and/or Zoom interfaces in Java? I d like to be able to do some prototyping of creating new types of interfaces for navigating within data and ...

FLTK in Cygwin using Eclipse (Linking errors)

I have this assignment due that requires the usage of FLTK. The code is given to us and it should compile straight off of the bat, but I am having linking errors and do not know which other libraries ...

热门标签