Category : three.js

I’m quite new to Three.js and to webGL programming. I have a cone and a cylinder in my scene created according to the script below: var scene; var camera; var renderer; var createACone = function() { const geometry = new THREE.ConeGeometry( 3.5, 0.5, 100, 100, true, 0, 2*Math.PI); const material = new THREE.MeshBasicMaterial( {color: ‘blue’, ..

Read more

I don’t actually have a coding question, per se. I’m part of a team helping to redo my company’s website and I’d like to know who designed/developed this: https://threejs.org/examples/#webgl_lightprobe I ask because we need something very similar for our new site. If anyone can assist, it would be greatly appreciated. Source: Ask Javascript..

Read more

I have a Draco ply file and it is in binary form. And I want to create a colored point cloud in three.js. function plyDecoder(drcMesh){ dracoLoader.decodeDracoFile(drcMesh,function(bufferGeometry){ bufferGeometry.computeFaceNormals(); const material = new THREE.PointsMaterial( {size: 0.015} ); console.log(material.Points) material.vertexColors = true; console.log("decoder!!") var geometry; geometry = new THREE.Points(bufferGeometry, material); geometry = setGeometryPosition(geometry); scene.add(geometry)}); } It`s working well ..

Read more