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

176
Views
How to make ObjectControls well

Please OrbitControls suddenly dosen't work after I added loaderManager.I don't understand why this heppend and how to fix.This work before but suddenly dosen't now.

controls.minDistance = 0.1;
controls.maxDistance = 1000;
controls.enablePlan = false;
controls.enableDamping = true;
controls.dampingFactor = 0.2;
controls.autoRotate = true;
controls.keys = {
    LEFT: 'ArrowLeft',
UP: 'ArrowUp',
RIGHT: 'ArrowRight',
BOTTOM: "ArrowDown"
}
controls.listenToKeyEvents(window);
renderer.setSize(conatiner.clientWidth ,conatiner.clientHeight);
conatiner.appendChild(renderer.domElement);
const  progressBar = document.getElementById("progress-bar")
const LoadingManager = new  THREE.LoadingManager();
LoadingManager.onProgress = function(url, loaded, total){
progressBar.value = (loaded / total) * 100;
}
const progressBarContainer = document.querySelector(".progress-bar-contianer");

LoadingManager.onLoad = function(){
    progressBarContainer.style.display = 'none';
}
let intre;
const loader = new THREE.GLTFLoader(LoadingManager);

const rgbeLoader = new THREE.RGBELoader(LoadingManager); 

renderer.outputEncoding =  THREE.sRGBEncoding;
renderer.toneMapping = THREE.ACESFilmicToneMapping;

loader.load("../3d/test/scene.gltf", (gltf) =>{
    intre = gltf.scene.children[0];
    intre.scale.set(0.5,0.5,0.5);
    scene.add(gltf.scene);
})
}
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!