82 questions
-1
votes
1
answer
29
views
Applying texture continuously on the side of an object with shader
In threejs, i'm working on a showerbase project using shader. One of my material got visible mineral veins on it and I noticed when it wrap around the border, the veins are not aligned.
I made a ...
0
votes
1
answer
37
views
How to get face/head direction/rotation from BVH files - Axis Studio?
I'm trying to get the direction/rotation of the head or the direction/rotation of the face from the neck.
I'm working whit a BHV file exported from Axis Studio:
Body: Axis Studio
Euler Order: XYZ
...
0
votes
0
answers
15
views
Unable to load custom class in threejs editor
I have added particlesystem to threejs editor and trying to load its properties
const scene = await loader.parseAsync( json.scene );
scene.traverse(child => {
console.log(child.config)
...
1
vote
1
answer
108
views
GLB Model not displaying on Three JS webpage
The scene, the mesh is all showing up on the website. I've moved the glb literally next to the main.ts file so there's no directory issues. But nothing shows up.
The filename is coffeeshop.glb. This ...
1
vote
0
answers
31
views
I'm trying the cut these spheres into the other direction to keep the "bitten part" of the spheres
Title: How to properly quarter-cut spheres in Three.js with clipping planes?
Body:
I'm working on a Three.js project where I'm trying to create a visual of layered spheres, and I want to cut each ...
0
votes
0
answers
35
views
glslify Cannot Find The Method I'm importing
I'm having an issue where my method multiColourLerp Cannot be found when I import it from my utils file. I know that shaders usually don't reuse code across files but for the sake of maintainability I ...
0
votes
0
answers
19
views
I want to find out what threejs is this page using
This website is using a very cool rotating Three.js effect. I want to replicate it, but I am not able to figure out exactly what it is or how it’s implemented.
I inspected the site and found it is ...
0
votes
0
answers
127
views
Load all potree pointcloud data then process on that
I want to load all points on the screen where camera is or load all points from the pointcloud and then I want to raycast on that.
problem is when I raycast on that sometime if points are not loaded ...
1
vote
1
answer
43
views
trouble dynamically changing the value of parameter in js
What I want is: when the mouse enters the body of the website, the cursor becomes visible; and when it is out of the webpage, it should not be visible.
I'm trying to update the values passed to the ...
1
vote
0
answers
14
views
Handling the onDoubleClick Event in React and the library Three
I am working with a 3D model, and I want that when I double right-click on an object, the object gets centered on the screen. How can I do this? I have this code, but when I am far away from the ...
0
votes
1
answer
103
views
ThreeJS Add border for Text Object
Created Text with TextGeometry in Threejs,
const font = await loadFont(fontUrl)
const geometry = new TextGeometry("文字", {
font: font,
size: size,
depth: 10,
...
1
vote
0
answers
56
views
UV Scaling and Mesh Boundary Alignment in Fabric.js and Three.js
I’m currently working on a project using Fabric.js and Three.js, and I have a few questions:
UV Scaling (Pixel-Perfect): What steps should I follow to scale UV maps correctly in Fabric.js and ensure ...
1
vote
1
answer
138
views
Why does importing GLTF in react project gives different result than gltf-viewer?
I made two bars and made a sort of a transparent shader in cycles. I baked the normal maps and exported as .glb.
In the gLTF viewer https://gltf-viewer.donmccurdy.com/ it shows perfectly:-
in gLTF ...
1
vote
0
answers
41
views
when page is resize the page becomes blank three js
import * as THREE from 'three';
import "./style.css"
//scene
const scene = new THREE.Scene();
//create our sphere
const geometry =new THREE.SphereGeometry(3,64,64);
const material = new ...
1
vote
1
answer
386
views
Web GL won't load suddenly. Is this a hardware issue? I just got a new laptop within the last month
screenshot of issueI've been following a threejs tutorial for a long time now and have never had this issue. Just got a new laptop about a month ago and I was following a tutorial and returned to ...