I am facing a challenge with my obj
file that includes vertex groups within the main object. My goal is to assign colors to each of the tagged groups using vertex groups. In three.js
, I discovered that each vertex group is represented as an Object3D
. There isn't a direct function like
setColor</code; instead, each child has two children of type <code>THREE.Mesh
, which have a setColor
function accessed through a material property. This hierarchy seems unclear to me. How can I set color for each vertex group?
In previous versions of three.js
, there was a different structure in terms of object-child relationships. Can someone please provide guidance on this matter? Any input would be greatly appreciated as I search for a solution.