我需要使用 OpenGL 渲染一个简单的 3D 立方体,其中填充了位于常规 64x64x64 网格上的点。可以在此处找到图像。
这很难解释,但由于从 3d 到 2d 的投影,显然存在一些感知困难。我试图用随机生成的偏移量来置换这些点,这有点帮助,但并不真正令人满意。
我认为这种效果甚至有一个名称,但我找不到它,所以如果有人可以命名它并可能提供一些建议来减少它,那就太好了。
You might be thinking of Moiré patterns. MSAA (multi-sample anti-aliasing) might help, or perhaps the introduction of jitter. See also: Supersampling
Alternatively, you could draw the points using point sprites or billboarding, which can be implemented very efficiently using modern (GL) geometry shaders.