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

141
Views
Three.js - How to merge multiple GLTF models into one?

I know there is the grouping method:

...

//after loading cube models
const group = new THREE.Group();
group.add( cube1 );
group.add( cube2 );
group.add( cube3 );

scene.add( group ); //This gives me 3 calls when rendering

but this doesn't affect performance, it's just to make things synthetically more clear.

I would like to merge cube1, cube2, & cube3 into a single object to reduce the number of calls in the scene

import { BufferGeometryUtils } from '../jsm/BufferGeometryUtils.js'; //gives error: BufferGeometryUtils.js doesn't export BufferGeometryUtils

var geometries = [];

geometries.push( cube1 );
geometries.push( cube2 );
geometries.push( cube3 );

const cubes = BufferGeometryUtils.mergeBufferGeometries( geometries );//doesn't work (outdated?)

scene.add( cubes );

I've followed some tutorials on BufferGeometryUtils, but they seem outdated since BufferGeometryUtils.js doesn't export a BufferGeometryUtils constructor

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!