如何禁用 JavaFX 纹理的抗锯齿
How to disable antialiasing for JavaFX Textures
标题如是说。我想避免的是:
如您所见,地板(这是一个带有纹理的三角形网格)是模糊的。
可能您需要使用纹理过滤提示中的 mip-mapping and anisotropic filtering, neither of which are controllable via the JavaFX 8 3D API as far as I know. Likely, internally the JavaFX implementation will use some degree of anisotropic filtering which is not configurable via public API. The diffuseMap used in a PhongMaterial only provides for a single texture image, not a mip-mapped image, and though there are scene aliasing hints that can be applied, that concept differs 之类的技术,这将更适用于您的情况。很可能,要获得您希望的结果,您需要使用不同于 JavaFX 的 API 或更高质量的纹理。
标题如是说。我想避免的是:
如您所见,地板(这是一个带有纹理的三角形网格)是模糊的。
可能您需要使用纹理过滤提示中的 mip-mapping and anisotropic filtering, neither of which are controllable via the JavaFX 8 3D API as far as I know. Likely, internally the JavaFX implementation will use some degree of anisotropic filtering which is not configurable via public API. The diffuseMap used in a PhongMaterial only provides for a single texture image, not a mip-mapped image, and though there are scene aliasing hints that can be applied, that concept differs 之类的技术,这将更适用于您的情况。很可能,要获得您希望的结果,您需要使用不同于 JavaFX 的 API 或更高质量的纹理。