Reputation: 716
I'm new to three js but i have managed to make polyhedron with one texture. but with multiple and with caption is somewhat advanced
Upvotes: 1
Views: 452
Reputation: 31036
Applying multiple diffuse textures in three.js
requires the usage of multiple materials. THREE.DodecahedronGeometry
as well as all other geometry classes derived from THREE.PolyhedronGeometry
do no support multiple materials.
If you still want to use such a geometry with multiple materials, you need to define so called group data. But since you are a beginner in three.js
, it might be easier to create your mesh in a DCC tool like Blender, export it to glTF
and then import it into your application via THREE.GLTFLoader
.
three.js R107
Upvotes: 1