I want to embed the demo of threejs into a div, and then change the size of the renderer to put it in my other pages. It turns out that after the size of the renderer has changed, the ray pickup seems to have gone wrong. was originally renderer.setSiz...
the code to load the gltf file is as follows: function loadGLTF(path, fileName) { var loader = new THREE.GLTFLoader(); loader.load(`${path}${fileName}.gltf`, function (gltf) { let object = gltf.scene; object.scale.set...
you need to use ThreeJS to make an object, but the shape of the object is unpredictable, so it can t be stored. Generation in motion (relying on setinterval) makes the number of frames very low; and somehow memory grows so fast that it takes dozens of s...
problem description I want to implement the background effect in https: www.with.in . the environmental background of the problems and what methods you have tried tried a lot of methods, currently implemented mobile, but did not figure out how...
requirements description recently encountered a demand to draw the 3D gain effect map (antenna radiation pattern) of the antenna on the wireless base station on web. The approximate effect of the drawing is as follows: ::0-3593d : this is the v...
The code is shown in the following figure. Change vertexs <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>< title> < head> <body> <canvas id="...
topic description in the process of learning three.js, I saw the process of using three.js to draw a sphere, in which the key part, given a certain number of points, evenly distributed on a sphere, his code is as follows, but does not understand the d...
problem description the curve generated by CatmullRomCurve3 will be displayed as a whole, how to make it longer slowly related codes var curve = new THREE.CatmullRomCurve3( [ new THREE.Vector3( 0, 0, 0 ), new THREE...
as the title, I load 3D models to the page through webGL, but the location, size, angle and so on of some models are not very suitable. I want to do a script for automatic normalization and standardization of 3D models at the front end. My current think...
I haven t written Canvas h5 for too long. I ve been doing page building recently. I feel that a good project is maintained and a reasonable directory structure is very important. before writing canvas h5, all the method contents of createjs, are wri...
I created a ball model, and then posted a picture on the model, and then slowly let the ball disappear, changing the transparency has no effect! Ask for advice pay the complete code: <!DOCTYPE html> <html> <head> <meta charse...
want a smoke effect in H5 ...
three.js frame of WEBGL I created a cylinder with the geometric model of CylinderGeometry, but I only want to paste it on the side of the arc. I don t want to paste the bottom of the arc. How to deal with this? Or is there any way to achieve it? ...
first of all, let s talk about my requirements: draw dots and edges in a web page (the number of edges is much larger than points, for example, there are 10,000 dots, hundreds of thousands of edges) is drawn using webgl. After a series of optimizat...
I want to make a model with 3dmax and load using ThreeJS . Given the mapping rules, the map image resource is later loaded image or canvas, can replace the map and re-render with one click. because the model is not a simple square or other regular g...
I want to implement a 3D version of Snake through babylonJS or THREE.js. where, when the snake turns, I want it to turn in a way similar to the image below. In other words, I want the snake to turn more smoothly, just like a vehicle turn in real life...