Houdini和UE5的无缝贴图处理插件

t is common in real-time graphics to use tiling textures to represent large surface area however repetition is noticeable as can be seen here on the left. Using hex-tiling allows us to hide the repetition but requires a solution to hide the seams between adjacent hex tiles. This sample is a demonstration of the paper Practical Real-Time Hex-Tiling. The method is an adaptation of the original work by Eric Heitz and Fabrice Neyret as well as Thomas Deliot and Eric Heitz.

The original approach preserves contrast using a histogram–preserving method which requires a precomputation step to convert the source texture into a transform– and inverse transform texture which must both be sampled in the shader rather than the original source texture. Thus deep integration into the application is required for this to appear opaque to the author of the shader and material. In our adaptation we omit histogram–preservation and replace it with a novel blending method which allows us to sample the original source texture.

When running this demo be sure to try to rotate the hex tiles. You can toggle between 4 different parameters to tweak on the m key: tile rate, rotation, hex tile border contrast for color and hex tile border contrast for normal mapping. Press and hold the scroll wheel while moving the mouse to adjust the active parameter. Press the r key to reset all 4 parameters.

Most of the hex-tiling specific utility functions are in the file hextiling.h however for those of you looking to use hex-tiling as planar/triplanar projection on large levels you should look at hextiling_rws.h which provides a special variant to maintain fractional precision as we move far away from the center of absolute world space.

An important observation when rotating hex tiles for normal maps is the average normal of the normal map must align “well” with the Z axis (0,0,1) or the tilt will appear very clearly in the lit result. Good alignment is achieved when the normal map corresponds to a tiling height map. Note that a tiling normal map does not necessarily correspond to a tiling height map. A basic example is a normal map of a tilted plane (ie. a flat color). This represents a tiling normal map but not a tiling height map.

In practice it is easy to end up with a normal map which does not represent a tiling height map since artists may use a combination of different art tools which offer no such guarantee. It is possible to fix a misaligned normal map by importing it into Knald at which point the integrator finds a best fit tiling height map. However, be sure to set the Slope Range in the integrator group to 80% or higher to ensure the tool allows slopes steeper than 45 degrees. The result can be exported as a corrected normal map.

资源下载
下载价格10
VIP 5折、终身VIP免费升级VIP
立即购买
网站注释:6月1号晚上21:40 新网站-【用户账户-vip资格-余额不变】6月1号晚上21:40之前的所有访问网站归档xyz.ae-houdini.com

原文链接:http://iiivfx.com/archives/17895,转载请注明出处。

0

评论0

网盘统一提取码5555
没有账号?注册  忘记密码?
豫ICP备2020029649号-1