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....
I am working on trying to create a basic, grid-based, but performant weather-arrow visualization system.  EDIT 2: Up-to-date version here: ( Mapbox Tracker ) of the system using the workflow which is described below   Usage Instructions: - Click on W...
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 have some cilinders in the scene. When user clicks on some specific points, I´m drawing a line (THREE.Line) between the points. I need to check if the line intersects with any of the cilinders (THREE.Mesh).  this is not working  myLine.intersectOb...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.