After importing a basic extruded cube with 2 bones and a material from Blender to threejs
using the threejs exporter
, everything seemed to be working fine. I was able to rotate the bones, manipulate the mesh, and apply materials correctly.
However: The problem arises when I try to add a texture to the mesh - suddenly, the model disappears and an error message pops up stating "type error material is undefined."
I have been focusing on manually adjusting textures for custom meshes. Can anyone provide guidance on what might be causing this issue?
<html>
<head>
</head>
<body>
<script src="js/three.min.js"></script>
<script src="js/three.js"></script>
<script>
// Code snippet omitted for brevity
</script>
</body>
</html>