Looking to incorporate some low poly models from into a ThreeJS JSON model in A-frame. This method is preferred due to its efficiency and smaller file size, resulting in faster loading times. However, there seems to be a lack of guidance on how to achieve this.
It appears that others (1,2,3,4) have faced similar challenges without any clear solutions provided.
If anyone has a detailed description, step-by-step guide, or helpful tips on this process, it would be greatly appreciated. I attempted using a script mentioned in the official documentation, but encountered issues:
<a-scene>
</a-scene>
<script type="text/javascript">
var loader = new THREE.ObjectLoader();
loader.load("globe.json",function ( obj ) {
document.getElementsByTagName('a-scene').add( obj );
});
</script>
When attempting to utilize the object loader, I encountered a dependency error stating module is not defined
. This leaves me somewhat perplexed about the proper approach to implementing models in this manner. Any suggestions or insights on this matter would be highly valuable.