The problem: I have a point cloud with quite a lot of data points (around one million). When I apply transparency to the rendered points, the transparency somehow does not show what is behind the rendered points    As you can see in the example of th...
I was just wondering for a while now what exactly "offsets" and "indices / index" are. Offsets are e.g. mentioned in https://github.com/mrdoob/three.js/blob/dev/src/core/BufferGeometry.js and indices were mentioned in IndexedGeometry,...
I have created programmatically a simple mesh:  var CreateSimpleMesh = new function () {     var xy = [],         maxX = 7,         maxY = 10,         river = [[0, 5], [0, 4], [1, 3], [2, 2], [3, 2], [4, 1], [5, 1], [6, 0]],         grassGeometry = n...
Im trying to make a three js document which shows lots of spherical objects, the quickest way to do this is by using buffergeometry. From this post here I learned that I could convert normal geometry into buffergeometry using:      var sphere = new T...
I'm working on a WebGL game using Three.js & I've decided to switch to a THREE.BufferGeometry implementation from my (working) regular THREE.Geometry solution. I'm messing something up, because the mesh does not draw. I've given t...
As I understand it, Geometry stores a javascript object structure of the vertices and faces and BufferGeometry just stores the raw gl data via Float32Arrays, etc.  Is there any way to turn standard Geometry into BufferGeometry, which is a lot more me...
I am currently using the three.js geometry class for creating a shape and then performing multiple CSG operations on that shape. Thus continuously redrawing the shape.  This process of performing multiple csg operations is slow, as I am using ray-cas...
How to merge two buffer geometries in one THREE.BufferGeometry in ThreeJS ?  var modelGeometry = null;  geometry = new THREE.CylinderGeometry( 10, 10, 10 );  if (modelGeometry == null) {     modelGeometry = new THREE.BufferGeometry().fromGeometry(geo...
This is array of vertex positions taken from this three.js documenation:  var vertexPositions = [     [-1.0, -1.0,  1.0],     [ 1.0, -1.0,  1.0],     [ 1.0,  1.0,  1.0],      [ 1.0,  1.0,  1.0],     [-1.0,  1.0,  1.0],     [-1.0, -1.0,  1.0] ];   If...
I'm trying to add a lamp to my scene with an OBJLoader object. The object is exported from Blender. If I set its children[i].castShadow property to true the following errors show up but still it appears and its shadow can be seen on the wall:...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.