I am working on learning how to make an exported 3D model appear as realistic as possible. I am rendering a GLTF model from sketchfab and trying to get it to render as close as possible to its appearance on sketchfab. Currently, the model appears dull to me and i think it has to do with the lights used .
Also when i spin the model,the logo on the back appears hazy.
I would appreciate any help in understanding what i could do to make this model resemble this sketchfab version https://sketchfab.com/3d-models/surface-book-3-88f28c608c3d408f98411ff3bd8b5974
var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera(45, window.innerWidth/window.innerHeight, 0.1,
1000
);
camera.position.x = -300;
camera.position.z = 500;
camera.position.y = 200;
var renderer = new THREE.WebGLRenderer({antialias:true});
renderer.setSize( window.innerWidth, window.innerHeight );
renderer.setClearColor(0x2E2E2E);
document.body.appendChild( renderer.domElement );
window.addEventListener('resize', ()=>{
renderer.setSize( window.innerWidth, window.innerHeight );
camera.aspect = window.innerWidth/window.innerHeight;
camera.updateProjectionMatrix();
})
var controls = new THREE.OrbitControls(camera, renderer.domElement);
controls.enableDamping = true;
controls.dampingFactor = 0.25;
controls.enableZoom = true;
var ambient = new THREE.AmbientLight(0xffffff, 1.0);
scene.add(ambient);
var hemilights = new THREE.HemisphereLight(
0xb1becc,
0xffffff,
3,
);
scene.add(hemilights);
var loader = new THREE.GLTFLoader();
loader.load('/examples/3d-obj-loader/assets/Surface/scene.gltf', function ( gltf ) {
var model = gltf.scene
scene.add( model );
model.position.y -= 60;
}, undefined, function ( error ) {
console.error( error );
} );
var animate = function () {
requestAnimationFrame( animate );
controls.update();
renderer.render(scene, camera);
};
animate();