游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1745|回复: 1

怎么翻译啊?关于depth缓冲的。。。

[复制链接]

2

主题

8

帖子

8

积分

新手上路

Rank: 1

积分
8
发表于 2006-2-19 15:15:00 | 显示全部楼层 |阅读模式
Nearly every graphics card on the market today supports a z-buffer; however, depending on the circumstances, using this depth buffer can have its drawbacks. When calculating the depth of a pixel, Direct3D will place the pixel somewhere in the z-buffer range (normally from 0.0f to 1.0f), but this placement is rarely uniform across the entire range. The ratio of the near and far plane directly affects the distribution pattern of your z-buffer.

For example, if your near plane is 1.0f, and your far plane is 100.0f, 90% of the range will be used in the first 10% of your depth buffer. If you had a large "outdoor" scene, it wouldn't be uncommon to have much larger far planes. In the previous example, if your far plane was 1000.0f, 98% of the range would be used in the first 2% of the depth buffer. This could cause "artifacts" on distant objects, which may or may not matter in your application.

Using a w-buffer depth buffer eliminates this problem, but has its own downfalls as well. It's possible for artifacts to appear on near objects rather than distant objects when using a w-buffer. Also, it's worth noting that there isn't as much support in graphics cards for w-buffers as there is for z-buffers.

One last comment on depth buffers. For greater performance when rendering using depth buffers, it's best to render items from front (highest z) to back (lowest z). During scene rasterization, Direct3D can quickly reject a pixel that is already occluded and skip the drawing completely. This is naturally not the case when we're rendering data with alpha components, but since we haven't gotten that far yet, we'll skip that until later.

2

主题

8

帖子

8

积分

新手上路

Rank: 1

积分
8
 楼主| 发表于 2006-2-19 15:15:00 | 显示全部楼层

Re:怎么翻译啊?关于depth缓冲的。。。

看不懂,请哒人指教
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-23 11:48

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表