For faster navigation, this Iframe is preloading the Wikiwand page for 纹素.

纹素

一组纹素组成的沃罗诺伊多边形。
一组纹素组成的沃罗诺伊 多边形
两种不同的投射方式。
两种不同的投射方式。

纹素英語:Texel,即texture elementtexture pixel合成字)是纹理元素的简称,它是计算机图形纹理空间中的基本单元[1]。如同图像是由像素排列而成,纹理是由纹素排列表示的。

纹素可以由图像范围来定义,其范围可以通过一些简单的方法来获取,比如阈值沃罗诺伊分布英语Voronoi diagram可以用来描述纹素之间的空间关系。这就意味着我们可以通过将纹素与其周围的纹素图心的连线的垂直平分线将整个纹理分割成连续的多边形。结果就是每一个纹素图心都会有一个沃罗诺伊多边形英语Voronoi polygon将其圈起来。

在对三维表面铺设纹理的时候,通过纹理映射技术将纹素映射到恰当的输出图像像素上。在当今的计算机上,这个过程主要是由GPU完成的。

纹理工序起始于空间中的某一位置。这个位置可以是在世界坐标系中,但是一般情况下会设定在物体坐标系中。这样纹理会随着物体运动。然后通过投射的方式将其位置(坐标)从三维矢量值转化为0到1范围的二维矢量值(即UV映射。再将这个二维矢量值与纹理的分辨率相乘从而获得纹素的位置。当所需纹素的位置不是整数的时候,需要使用材質過濾进行处理。

夾緊和包裝

[编辑]

「紋素」也可以通過通過簡單的過程(例如閾值)獲得的圖像區域來描述。沃羅諾伊鑲嵌可以用來定義其空間關係-部門被在由中點之間質心每一紋理像素的和用於整個紋理每周圍紋理像素的質心。這將導致每個texel質心周圍都有一個Voronoi多邊形,該多邊形由所有比其質心更近的texel質心組成。

当所需纹素位于纹理之外的时候,需要使用两种技术的组合。「包裝」(Clamping) 将纹素限制在纹理的尺寸,当超出纹理尺寸的时候将它移到最近的位置。「夾緊」(Wrapping)将纹素移回纹理。

當請求紋理外的紋理像素時,將使用以下兩種技術之一:夾緊或包裹。夾緊將紋理像素限制為紋理大小,如果紋理紋理大於紋理大小,則將其移動到最近的邊緣。包裹將以紋理的大小為單位移動紋理像素,以使其重新回到紋理中。包裝會導致紋理重複;夾緊使它只能處於一個位置。

参见

[编辑]

参考文献

[编辑]
  1. ^ Andrew Glassner, An Introduction to Ray Tracing, San Francisco: Morgan–Kaufmann, 1989

外部連結

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
纹素
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?