Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

236
Views
Best way to store and recieve 3d files on webserver

I am currently working on an online cake configurator. The problem I am having is that I am not really sure if what I am doing is state of the art.

The configurator uses THREE.js to display the 3d model of cakes. I have several 3d model of cakes, which can be uploaded by the user. Those models are stored on the webserver. Each cake consists of one .obj file and one .mtl file.

Now..what I am unsure about. What is the best way to retrieve those models from the webserver. I tried ajax, but as far as I can tell ajax is not able to return .obj or .mtr files.

So my question. Is ajax even the right solution for this or is there a completely different approach I should look into?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

So my question. Is ajax even the right solution for this or is there a completely different approach I should look into?

Yes, this is the correct approach. Nowadays, you usually load files from the server via the fetch API.

But if you need the OBJ/MTL files for rendering, you can just load them via OBJLoader and MTLLoader and don't have to bother about the internals. You probably want to use the respective official three.js example as a code template: https://threejs.org/examples/webgl_loader_obj_mtl

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!