简体   繁体   English

Three.js-如何仅在一个特定点上更改3D模型的纹理?

[英]Three.js - How to change a texture of a 3D model in only one specific point?

Three.js - How to change a texture of a 3D model in only one specific point so that not all the model changes texture ?? Three.js-如何仅在一个特定点更改3D模型的纹理,以使并非所有模型都改变纹理? I have the json file of the model if anyone would like to see it. 如果有人要查看它,我有模型的json文件。 TIA! TIA!

I suggest you take a look at THREE.MeshFaceMaterial -- use this to apply different materials to different parts of a single mesh. 我建议您看一下THREE.MeshFaceMaterial使用它可以将不同的材质应用于单个网格的不同部分。 MeshFaceMaterial lets you have a group of different "regular" materials, each of which may have a different textures, and then assign on a per-poly basis. MeshFaceMaterial可以让您拥有一组不同的“常规”材质,每种材质可能具有不同的纹理,然后基于每个多边形进行分配。 The assignment happens in the geometry object. 分配发生在几何对象中。 See http://threejs.org/docs/#Reference/Materials/MeshFaceMaterial for docs. 有关文档,请参见http://threejs.org/docs/#Reference/Materials/MeshFaceMaterial

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM