I'm currently utilizing three.js and have successfully created a scene with a floor and a car loaded as a json file. However, I am facing an issue where the car appears only in black color instead of displaying the textures from blender. Is there a way to directly export the model with textures from blender or add the textures afterwards?
Below is the code snippet I am using:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>three.js - pointerlock controls</title>
<style>
html, body {
width: 100%;
height: 100%;
}
// Remaining CSS styling properties...
</style>
</head>
<body>
<script src="../build/three.min.js"></script>
<script src="js/controls/PointerLockControls.js"></script>
<!-- JavaScript code block -->
</body>
</html>
In the section marked as //objects
, I am attempting to load the car model. I have also tried adding example textures to it without success. It would be ideal if I could import the textures directly into blender along with the model.