简体   繁体   中英

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 ?? I have the json file of the model if anyone would like to see it. TIA!

I suggest you take a look at THREE.MeshFaceMaterial -- use this to apply different materials to different parts of a single mesh. 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. The assignment happens in the geometry object. See http://threejs.org/docs/#Reference/Materials/MeshFaceMaterial for docs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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