Currently, I am in the process of developing a website that features a 3D Market Place. Unfortunately, I am facing difficulties implementing the key feature of this site.
You can view the alpha version of the website here:
All the code is located in the index.html file on the site for you to review. Please excuse any clutter, as my main concern lies with the loading of 3D models into the scene.
I came across sketchfab.com, which offers an incredible feature of previewing PBR Assets within a WebGL window. The loading time on their platform is quite reasonable.
However, I encountered a problem. I aimed to create a similar feature for my website using the ThreeJS Library. While everything loads swiftly on my xampp localhost, uploading it to the host server drastically increases model load times (likely due to the high-resolution textures).
The provided code snippet showcases how I'm currently handling the loading:
[insert updated code snippet here]
I am struggling to achieve a loading speed comparable to sketchfab.com. For instance, a simple pot model on my site takes over a minute to display, whereas planes load quickly due to their low-resolution BaseColor material.
Do you have any suggestions on how to address this issue? My website is hosted through domain.com — should I reach out to them for assistance, or is this more of a ThreeJS-related matter? Are there any alternative solutions you could recommend?