I’m learning three.js but I’m discovering that most questions on the internet were asked years ago and are no longer relevant for the version I’m using. I’m also unfamiliar with geometry or 3D modeling.
I’m trying it out on my website at this page: Question for three.js
The JS is here: https://llmpeeters.com/js/question.js
I put a MeshStandardMaterial map (an image I loaded) on a IcosahedronGeometry.
When I use THREE.REVISION I get 126. For the sake of archiving, i uploaded the two files as they are right now.
My desired effect is that when I click, it will change the color of the face that I’m clicking.
Edit: I forgot to add that the radius of the object is set with a formula but that’s for unrelated reasons. Unaltered OrbitControls were also added.
question.php (570 Bytes) question.js (2.3 KB)