File talk:PNG transparency demonstration 1.png

维基共享资源,媒体文件资料库
跳转到导航 跳转到搜索

2019-01-07 edit[编辑]

My edit summary seems to have been trimmed by MediaWiki. Here it is in full:

Re-render and calculate proper transparency.

POV-Ray seems to ignore the effects of transparency for translucent objects when calculating the output image alpha channel. Even though the dice are semi-transparent, this is not represented in the resulting PNG image.

Rectify this by performing two renders (with a fully-black and fully-white background), then calculate the correct alpha value with a separate tool, so that the dice appear properly translucent depending on the background the image is overlaid on.

Rendering is done with anti-aliasing with jitter disabled and a low recursion threshold, to avoid artifacts due to focal blur.

This version is better suited for illustrating the PNG file format's transparency feature, as more than just the dice's edges are transparent.

Source code, including render settings: https://gist.github.com/CyberShadow/8b26f8e03add2ca692b531f8c8e3320e

--CyberShadow (留言) 06:43, 8 January 2019 (UTC)[回复]