I’m working on a 3D mesh viewer using .obj
and .mtl
files, but I’m running into performance issues — the browser takes a long time to load and render the mesh files, and it’s using a lot of my local PC’s resources which is logical. i am looking for a way to use a server ( Remote Desktop) ressources to do all the hard work and visulize in my local PC, if its possible. Ideally, I’d like the server to handle all the heavy lifting — parsing, simplifying, and rendering the mesh to the web and then send a lightweight version to the client for viewing. Has anyone implemented something like this? thank u
It seems that you may not be fully understanding how WebGL, and in turn threejs works. The whole point of threejs is to run this code from the browser. So you do need to do the “heavy lifting” by downloading the data, loading it into the browser, loading it into the GPU and then finally drawing it.
You wouldn’t need threejs and WebGL otherwise since there are faster and more modern APIs and languages available.
What exactly are you trying to do? If you render outside the browser you just need to figure out how to stream those results to another machine, in which case there is no need for threejs anywhere.