My main question pertains to the best method of importing 3dsmax models or scenes into three.js, as most existing threads on this topic are several years old. Currently, I have created a simple coke can with a basic texture applied, but I am encountering issues when using the obj loader from examples/js/loaders since the texture fails to load.
I attempted to utilize a python script for converting obj files to js, but it seems redundant given the presence of an obj loader. However, I still face difficulties getting the textures to function properly. Does this mean the obj loader renders the python conversion script obsolete?
Upon loading the scene, an error message appears in my console:
Not allowed to load local resource: file:///C:/wamp/www/gordon/skins/coke_uv_map.jpg
Below is the code snippet:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
</head>
<body>
</body>
<script src="three.min.js"></script>
<script src="controls/OrbitControls.js"></script>
<script src="DDSLoader.js"></script>
<script src="MTLLoader.js"></script>
<script src="OBJMTLLoader.js"></script>
<script>
...
</script>
</html>
Furthermore, the issue lies in the discrepancy between what I desire and what I currently observe (excluding the lighting):