VKVIJAY KARANJKARinvjk03.hashnode.dev路Sep 5, 2021 路 1 min readUsing Box Geometry to make cuboids and cubesBox Geometry const geometry = new THREE.BoxGeometry( 10, 20, 10, 1, 1 ); const material = new THREE.MeshNormalMaterial( {flatShading : false} ); const box = new THREE.Mesh( geometry, material ); scene.add( box ); animate(); function animate() { ...00
VKVIJAY KARANJKARinvjk03.hashnode.dev路Sep 4, 2021 路 2 min readUsing Sphere Geometry to create different shapesSphere Geometry Some understanding about the Spherical Coordinate System will be helpful.馃槂 https://en.wikipedia.org/wiki/Spherical_coordinate_system Replace the previous Torus Geometry with this: const geometry = new THREE.SphereGeometry(10, 25, 2...00
VKVIJAY KARANJKARinvjk03.hashnode.dev路Sep 3, 2021 路 3 min readGetting Started with three.jsStep 1: Basic HTML Structure We require a three.js file that can be imported using the CDN. https://cdnjs.com/libraries/three.js <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edg...00