请高人帮忙翻译下下面的文章。。。

来源:百度知道 编辑:UC知道 时间:2024/06/04 15:26:20
Here's the rendering list version of the function.Once again,it works identically to the 16-bit version:

原文中这里有一个函数...

For a demo of the 8-bit lighting system,check out DEMOII8_5_8b.CPP|EXE.It's identical to 16-bit
demo (it uses the same controls) except that it's 8-bit! Notice that the lighting doesn't look too bad
compared to the 16-bit version.Figure 8.34 is a screenshot of the demo running.

However,palettes count here,boys and girls.For this demo,the system uses the default 8-bit palette
form the first Tricks,which PALDATA2.PAL. PALDATA2.BMP is a blank bitmap with that bitmap,so
you can load and look at the colors for the palette.Amazingly,you may say,"That looks like agood palette,"
but it's only good for colors that are in the palette.When you try to find a shade of fuchsia that's not in the
palette,the nearest neighbor algorithm ends up with light brown or something else horrific,an

这里的渲染列表的作品,它又function.Once同到16个版本:

原文中这里有一个函数……

对于一个演示的照明系统,8位8b.CPP | DEMOII8 EXE.It多数党——是相同的16位
它使用同样的示范(控制),除了它的8位!值得注意的是,照明看起来不太坏
16位version.Figure 8.34相比,是一个截图的演示跑步。

然而,在这里,孩子们和调色板计数的系统,这个演示girls.For使用默认的8位的调色板
从第一把戏,PALDATA2.PAL。PALDATA2.BMP是一张空白图,图,所以
你可以负荷,看看这颜色为palette.Amazingly,你也许会说:“看起来像避障的调色板,"
但它只适宜的色彩,在palette.When你试着找一个荫凉的樱红色,不是的
调色板,最近邻算法将由于浅棕色或其他恐怖和照明
看来很糟。

为了弥补这个不足时,你必须用调色,有一个非常小的色彩空间,而是一种大型> -
space.For断裂,例如,如果你让aDoom克隆,你会选一个面板与大量的
灰、棕等colord,和8 - 16岁的阴影,这样,所有的可能
在每一个颜色都shandes的调色板,所以查询表来没有荒谬的条目
在它。