Hello. We bought this model for our webpage project. On the product page linked above it looks like this:
But after I managed to upload the model on my localhost, the can looks like this:

Overall quality is literally worse than the preview. Water droplets seem glitched and there are some striped shadow on the can, instead of smooth effect.
This is my js:
import * as THREE from 'three';
import { OBJLoader } from 'three/addons/loaders/OBJLoader.js';
import { MTLLoader } from 'three/addons/loaders/MTLLoader.js';
const renderer = new THREE.WebGLRenderer({ alpha: true });
const canvas_section = document.querySelector('.canvas-section');
renderer.setSize(window.innerWidth, window.innerHeight);
canvas_section.appendChild(renderer.domElement);
canvas_section.insertBefore(renderer.domElement, canvas_section.children[0]);
renderer.domElement.classList.add('canvas');
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(
75,
window.innerWidth / window.innerHeight,
0.1,
1000
);
camera.position.set(0, 3, 25);
const mtlLoader = new MTLLoader();
mtlLoader.load('./models/CAN____473ml___STANDARD__3D_MODEL.mtl', function (materials) {
materials.preload();
const objLoader = new OBJLoader();
objLoader.load('./models/CAN____473ml___STANDARD__3D_MODEL_OBJ.obj', function (object) {
object.position.set(0, -1.4, 18);
scene.add(object)
const directionalLight = new THREE.DirectionalLight(0xFFFFFF, .8);
scene.add(directionalLight);
directionalLight.position.set(-240, 240, 240);
renderer.render(scene, camera);
});
});
I was trying to play with lights and shadows, but I guess the problem lies somewhere else. Could you guys tell me if it’s my mistake somewhere or just this model’s .obj/.mtl versions have low quality? It’s my first time with Three.js.