3D Minimal Sculpture with Three.js

To be honest, I feel lost during this assignment.
With pressure on both the time limit, which the assignment comes in Mondady, and has to be turn in by Wednesday, and also the complete unfamilarity in Three.js.
This assignment, I do have to admit, is nothing but a merely repica of what we have did in the class.
I feel like I did not get the gest of working with three.js, and in the end I had to look back to the code I copied during the lecture when Professor Moon is introducing us the functions of Three.js.
First with injecting Three.js to vscode.

I did not use the way that Professor shown us during the lecture as I worked this assignemtn on my desktop, which did not download the zipfile for Three.js, in the end I decided to do this using online libary access.

There is nothing new in these codes, as they have been taught during the lecture, and it is the basic elements in need for setting up the scene, camera, and renderer.

Then there is the code for creating the cube mesh, as required it needs a geometry variable and material which is the color.
At this point there is nothing activated, as on the html there is nothing but only empty screen.

However, but just adding the magic line of “Animate()”, the code initiated.

Yet there is no code moving the cube, and I am not sure what to do at all at this point, in the end I decided to just do simple camera rotations.
cube.rotation.x += 0.01;
cube.rotation.y += 0.01;
That is all.

Leave a comment

Your email address will not be published. Required fields are marked *