I'm currently working on a project involving cargo management and I am looking to create a 3D image of the packing order. I am new to using THREE.js and need assistance in rendering the objects inside the container.
While I have the positions (x, y, z axis) and sizes of the objects and the container itself, I am struggling with placing the objects inside the container.
If anyone can provide guidance on how to achieve this, I would greatly appreciate it.
Below is the code snippet I have been working on:
init();
animate();
function init() {
var aspect = window.innerWidth / window.innerHeight;
// Rest of the initialization function
}
function animate() {
renderer.render(scene, camera);
}
Currently, the code runs without any errors but does not display the desired result.