I have a N number of random points (in this case 20), with a X,Y and Z constrains.  How can I create ANY (preferably closed) shape (using Three.js library) , given and starting only from N random points.  There are probably many variants, please shar...
I am playing with three JS and want to determine if a mesh is fully inside another mesh. I wrote a little robot which should run into a home box navigated by the player. I know how to detect collision, but is there an easy way to detect if an object...
I am trying to  create a texture with Three.js.  My source of texture_f1 is a .png file witch means you can see the background through it.  The problem is that if i try to set background color: 0xffffff it doesn't work in combination with  map:....
Is there currently a library in JavaScript for converting a video stream in Canvas into a 3D mesh?  An example situation is to point a camera at a cup and to capture the raw imagery, comparing previous data with new data to generate an edge outline o...
I want to create a Pine using 2 meshes, 1 for the trunk and another one for the bush, this what I've done:  var pine_geometry = new THREE.Geometry();  var pine_texture_1 = THREE.ImageUtils.loadTexture('./res/textures/4.jpg'); var pine_geo...
Is there an easy way to change font size in PIXI JS curved text? Text is created through new PIXI.mesh.Rope(pixiText.texture, points). With resize button (check image below) you can change size of object. I could use scale but it decreases quality....
Question:  How to simulate "Projection Camera Mapping" of video on to a multiple BabylonJS Mesh?  Breakdown:   How would I project a standard 16:9 video  onto multiple Babylon mesh (live code);      as if, the camera was a projector and the m...
I have a plane with a detail of 400 by 400. When defining the y positions of all of the vertices, I do this.  var position = floorGeometry.attributes.position;      for ( var i = 0; i <= complexity + 1; i ++ ) {         for (var i2 = 0; i2 <= c...
I am using three.js r67 in Chrome Version 35.0.1916.153 m    I am attempting to intersect some custom meshes that I have created in my scene. The raycaster does not appear to be registering the meshes although they exist within scene.children .   Mes...
I am trying to draw a sphere mesh that I can later modify to look like the leaves of a tree. However, there are also vertices in my pointsArray that precede those generated from my sphere mesh. I have an index buffer containing the indices for drawin...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.