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

[复制链接]
查看11 | 回复1 | 2009-2-7 08:51:21 | 显示全部楼层 |阅读模式
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,and the lighting
looks bad.
To remedy this,you must use a palette that has a very small color space but a large inten-
sity space.For example,if you're making aDoom clone,you would pick a palette with a lot of
grays,browns,and such colord,and nothing more,and 8-16 shades of each,That way,all possible
shandes of each color are in the palette,so the lookup table doesn't have ridiculous entries
in it.
第一段。。。。。

回复

使用道具 举报

千问 | 2009-2-7 08:51:21 | 显示全部楼层
这里的渲染列表的作品,它又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,你也许会说:“看...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行