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

306
Views
Load GLTF model from binary data, not URL

I'm using drei usegltf to load a glTF asset:

export default function GLTFModel(props: GLTFModelProps) {
  const gltf = useGLTF(props.model);
  return <primitive object={gltf.scene} />;
}
<Canvas>
 <Suspense fallback={null}>
    <GLTFModel model={glbUrl}/>
 </Suspense>
</Canvas>

While this works well for glTF assets available from a local or remote URL, I'm attempting to render a glTF asset I have available as a binary blob

  1. API returns GLB as application/octet-stream
const response = await fetch(apiUrl, {});
const data = await response.blob();
  1. Want to render the binary data
const gltf = useGLTF(data);

Is there a way to work this out without API uploading the GLB to a URL?

about 4 years ago · Juan Pablo Isaza
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!