I’m working on a shoe 3D configurator, so I have 3D models of shoes with different mesh part, and each node can be configure with multiple possible textures.
The 3D graphist I am working with is asking me if, instead of applying the ambiant occlusion map on each meshes (using the material), it is possible to apply the ambiant occlusion map on the whole group. Using only one map for the total.
So for instance in this example :
const Model_Test = (props) => {
const { nodes, materials } = useGLTF('model.glb')
return (
<group {...props} dispose={null}>
<mesh geometry={nodes.ID_07_semelle.geometry} material={materials.Mat_07_semelle} position={[-0.001, 0, 0]} rotation={[-Math.PI, -1.571, 0]} scale={0.01} />
<mesh geometry={nodes.ID_03_dessus.geometry} material={materials.Mat_03_dessus} position={[-0.001, 0, 0]} rotation={[-Math.PI, -1.571, 0]} scale={0.01} />
<mesh geometry={nodes.ID_05_lacet.geometry} material={materials.Mat_05_lacet} position={[0.01, 0.098, 0]} rotation={[Math.PI / 2, 0, -Math.PI]} scale={0.01} />
<mesh geometry={nodes.ID_01_bout.geometry} material={materials.Mat_01_bout} position={[-0.001, 0, 0]} rotation={[-Math.PI, -1.571, 0]} scale={0.01} />
<mesh geometry={nodes.ID_02_partie_int_ext.geometry} material={materials.Mat_02_partie_int_ext} position={[-0.001, 0, 0]} rotation={[-Math.PI, -1.571, 0]} scale={0.01} />
<mesh geometry={nodes.ID_04_arrière.geometry} material={materials.Mat_04_arrière} position={[-0.001, 0, 0]} rotation={[-Math.PI, -1.571, 0]} scale={0.01} />
<mesh geometry={nodes.ID_08_semelle_int.geometry} material={materials.Mat_08_semelle_int} position={[-0.001, 0, 0]} rotation={[-Math.PI, -1.571, 0]} scale={0.01} />
<mesh geometry={nodes.ID_09_bordure.geometry} material={materials.Mat_09_bordure} position={[-0.001, 0, 0]} rotation={[-Math.PI, -1.571, 0]} scale={0.01} />
<mesh geometry={nodes.ID_06_dessus_under.geometry} material={materials.Mat_06_dessus_under} position={[-0.001, 0, 0]} rotation={[-Math.PI, -1.571, 0]} scale={0.01} />
</group>
)
}
Is there a property of the that I can use to apply an occlusion map?
Or should I have one for each part?
Thanks in advance for all the help you can give me.
I am not an expert in UV maps and textures in général so I am a bit lost.