All Questions
236
questions
0
votes
0
answers
18
views
Parametric Relationships: Walls, Floor in THREEJS
Does anyone know how to create interactive walls in Three.js that automatically adjust when a connected wall is manipulated? I have a room modeled as a GLB file, comprising four walls and a floor. For ...
0
votes
0
answers
33
views
Some models are broken after export to .glb
I'm trying to export an a-frame scene with some 3D models on it, the export works but the resulting glb file is not correct
This is my a-frame scene:
<a-scene id="scene" embedded renderer=...
2
votes
2
answers
80
views
How to Maintain Texture Dimensions in Three.js When Scaling Mesh?
I am working on a Three.js project where I have a mesh object with a texture applied. The texture is a PNG file with dimensions 64x64.
Problem:
When the dimensions of the mesh object change, the ...
0
votes
0
answers
31
views
Double Color in Three Js Buffer Geomtery shapes
I am using three.js to create shapes, but while drawing my irregular polygon shapes face double coloring using while drawing from certain directions. Example: I attached two pictures of same shapes, ...
2
votes
1
answer
102
views
Three.js Y Axis Offset for Equirectangular Image Not Working
I have a mash with two textures that I mix. Each texture is a panoramic equirectangular image. I need to offset only one of two textures by providing degrees for X or Y axis.
// usage: applyOffset(90, ...
1
vote
1
answer
130
views
Three.js: How to Rotate Equirectangular Panorama Texture
I have 2 textures inside a single mesh that represent 2 equirectangular panoramic images. I need to rotate one of 2 textures in a desirable position using supplied coordinates. In other words, the ...
0
votes
2
answers
55
views
How to change material of indivudal objects in THREE.js without the use of separate Meshes?
We have created a PCB Viewer in THREE.js and now we are looking to add some selection functionality to it. This is not a difficult task and I already have this functionality working though I am facing ...
0
votes
0
answers
20
views
Is it allowed in THREE.js to create a mesh with an array of materials containing less elements than the number of sides in the geometry?
In my case I ran into an issue when raycasting a cylinder which was defined using CylinderGeometry and an array of materials with length 2 (instead of 3).
I could not find anything in the ...
0
votes
0
answers
28
views
Object Train Algorithm Three.js
I have two snake objects - a head and a body. Each mesh has two more child objects at the beginning and at the end (A,B points). Point C - is the center of the object. Points B,C and B1,C1 are located ...
0
votes
0
answers
37
views
SurfaceSampling ThreeJS
I want to leverage ThreeJS's SurfaceSampling to add visual elements to the face of a 3d model object similar to how noise is added in this example (ref this article):
const sampler = new THREE....
0
votes
0
answers
27
views
cutting a square out of a mesh in THREE.js
In essence what I want to do is project a square onto an arbitrary mesh.
Basically the DecalGeometry that is already in three.js and not far from what is here https://threejs.org/examples/?q=decal#...
0
votes
0
answers
69
views
Rendering "fat" mesh based lines for geometry edges in THREE.js
With the following code:
import * as THREE from 'three';
import { Line2 } from 'three/addons/lines/Line2';
import { LineGeometry } from 'three/addons/lines/LineGeometry';
...
0
votes
2
answers
242
views
How to capture on click in mesh three.js in autodesk viewer?
I have this spheres marked in a Revit model, and i basically want to capture the click on them and show it's details.
I followed this question: How to add event for a mesh in threejs?, but, when I ...
0
votes
0
answers
128
views
How to converte geometry of an object from GLTF to JSON?
I have generated a GLTF file with a cube object using Blender. I would need to find out if there is a way to get the geometry of this cube from this GLTF file and save it as JSON in a database. I then ...
0
votes
1
answer
247
views
how to transfer vertices color to mesh from point cloud
I want to ask how can I transfer vertices color from point cloud to mesh.
I have a procedure where I transfer a point cloud to a mesh and the mesh is back visualized as a point cloud using three....