Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

I am working on a project in React JS uisng of Three.js and need to implement a functionality where users can upload an image via drag-and-drop. If the image intersects with the canvas, the ...
Rishabh Malakar's user avatar
0 votes
1 answer
141 views

I need to display thousands of polygons (2d) of different shapes with react-three-fiber. I thought the best option would be to use instances of the same polygon with, let's say 100 vertices. And then ...
Zamadhi Eturu's user avatar
0 votes
1 answer
334 views

I'm developing a Blazor WASM application where I make use of the Microsoft.TypeScript.MSBuild nuget package in order to use typescript for all related javascript code. But when it comes to import and ...
juagicre's user avatar
  • 1,104
-1 votes
1 answer
69 views

I am using Threebox with Mapbox, I define threebox like so: (window as any).tb = new Threebox(this, gl, { defaultLights: true }); but I am also importing THREE like so: import * as THREE from 'three';...
offlineanton's user avatar
0 votes
0 answers
111 views

I want to upload two stl files, and create a subtraction against the first stl using the second. When I upload a single stl and try to subtract using a Three based geometry it works well, but when I ...
Michael Etzel's user avatar
0 votes
0 answers
40 views

I'm working on a Three.js project (React) using the @react-three/fiber and @react-three/drei libraries. My goal is to place markers on the surface of a terrain .glb model based on specific coordinates....
Fatima Waheed's user avatar
0 votes
1 answer
108 views

I had a button when the current position was on the top and then it moved to the bottom and centered with Vector3, but it was not smooth, it is like when we do display: none; to display: block for my ...
notnuyy's user avatar
  • 121
0 votes
0 answers
76 views

How can I place points at X, Y, Z coordinates in a 3D map using Three.js? I'm working with Gaussian Splatting representations, and right now, raycasting with a splat mesh doesn't work with Three.js's ...
Luis Julio's user avatar
0 votes
2 answers
167 views

(perspective grid that might be useful to illustrate what I mean) I've been trying to create what I'd describe as a "dynamic perspective infinite marquee". Specifically I'm using this video ...
Ciaran Gutteridge's user avatar
2 votes
2 answers
176 views

i have clothe object where user can rotation the cloth, i am using orbit control to rotation the object here, and the interface, user can change the color of clothe, there is a button to see the back ...
notnuyy's user avatar
  • 121
0 votes
1 answer
212 views

I want to create a custom PlayerController for react-three-fiber by using rapier. I'm using a MouseMovement combined with KeyControls (WASD). I want a simple CapsuleCollider, to preventing the player ...
murcoder's user avatar
  • 109
1 vote
0 answers
64 views

I'm trying to render a 3D animation using @react-three/fiber, @react-three/drei, and three. But it leads to an empty screen. No error logs are displayed. I checked whether WebGL was being supported by ...
Kanji's user avatar
  • 15
0 votes
1 answer
207 views

pretty new to r3f but having a blast so far. I've run into a bit of an issue when rendering HTML into the scene with the drei helper. I'll drop the code from my render function below: <group ref={...
Ocean Evers-Peete's user avatar
0 votes
1 answer
105 views

I am new to three.js, and in a program I am creating, I would like to make different colors for different sides of the cube. The arrow keys control cube rotation. For example, could I have red on one ...
TheOneAndOnlySammy's user avatar
0 votes
0 answers
108 views

I have to detect some objects (Sofa and table in my case) and replace that objects from a 3d model. I am using YOLO to detect and LaMa to remove object and then trying to place the 3d model on the ...
Lalit Joshi's user avatar
1 vote
0 answers
106 views

I want to capture photo / video while in AR mode . I am using webxr of threejs for the AR mode. I tried to take photos but it gave me black photos. I tried it using getUserMedia I don't know whether I ...
Dhruvil Mehta's user avatar
0 votes
0 answers
74 views

I have a standard WordPress WooCommerce site, and I recently integrated a three.js landing page with links to the WooCommerce site. To display the animated landing page, I added the .js file and an ...
Shane Price's user avatar
1 vote
0 answers
29 views

I'm using a legacy version of threejs (r150) with a custom loader, generating meshes manually with "position" ,"normal" attributes and groups in case of different materials (...
d.mercanti's user avatar
0 votes
1 answer
141 views

hey i have this react three fiber model i get from sketchfab i set the orbit controls but the position of the object/models is not fixed and every time i try to scroll through my it automaticaly zoom ...
ibrahim cesar's user avatar
1 vote
0 answers
52 views

I'm trying to render two spheres in Three.js with custom Phong shading using GLSL shaders. I want the right sphere to have a high specular highlight, similar to the one in this reference image, where ...
peachi's user avatar
  • 21
1 vote
1 answer
96 views

I want my 3d objects to always "fit" inside the window This is how my code currently looks like export function onWindowResize(camera, renderer) { const canvas = renderer.domElement; ...
AjBernababe's user avatar
0 votes
1 answer
102 views

Created Text with TextGeometry in Threejs, const font = await loadFont(fontUrl) const geometry = new TextGeometry("文字", { font: font, size: size, depth: 10, ...
thor lee's user avatar
1 vote
1 answer
59 views

When I object rotation or Scalling with that control then why its change's position also, See below Video https://drive.google.com/file/d/1SZ26GRon5ko8cHAG8taeeN6pP8i0xb1Z/view I want to below video ...
yash chapani's user avatar
0 votes
1 answer
26 views

I'm importing the very first model I made in Blender 4.2, which consists of a computer and two monitors, into my three.js scene. I have a VideoTexture map set up on the "computer screen" ...
bccode's user avatar
  • 9
0 votes
1 answer
52 views

So I'm rendering out instanced meshes in my scene using the code below interface IInstanceContext { [key: string]: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], ...
Ocean Evers-Peete's user avatar
0 votes
2 answers
69 views

I am trying to paint white the viewport in threejs with a planeGeometry. The reason is that I need the view plane with size and transform (rotation and position). These are my two fails tries: ...
tres.14159's user avatar
2 votes
2 answers
311 views

When attempting to use THREE.InfiniteGridHelper there doesn't seem to be a way to import the code that doesn't generate an error. Even copying and pasting the code does not work. Currently I have the ...
person's user avatar
  • 109
1 vote
0 answers
38 views

With three and @react-three I have a component with sprite as follow: export function Point({ position = [0, 0, 0] }: { position?: [number, number, number] }) { const spriteRef = useRef<THREE....
Kishieel's user avatar
  • 2,085
2 votes
0 answers
788 views

I tried to add some png on 3d model using rtf(React Three Fiber). Here is my code import React from 'react'; import { Decal, useGLTF, useTexture } from '@react-three/drei'; export function ...
Dinh Thang's user avatar
0 votes
1 answer
88 views

I am having a website for my academic project -See My Website- but it loads really slow. You can see the below image it has Total Blocking Time - 11,940 ms I tried compressing the models and the code ...
Aman Yadav's user avatar
0 votes
1 answer
121 views

I want to port shader from shadertoy to my React-Vite app using Three.js and @react-three/fiber. Exactly this shader; https://www.shadertoy.com/view/DlySDD I surfed Google for a long time, but I ...
Eric Ryan's user avatar
1 vote
1 answer
111 views

I am currently working on a loaded ifc model that has some custom propeties. I have a search field and my goal is it that the user of my application can enter the custom designator into the field and ...
monamona's user avatar
  • 1,246
0 votes
1 answer
368 views

I'm using web-ifc version 0.0.59 to explore IFC files. I'm also using @thatopen/components and associated packages but I find it easier to use the web-ifc package to explore the structure and element ...
DebD's user avatar
  • 464
2 votes
1 answer
199 views

I'm merging many 2D textures into an Array Texture in WebGL2 (three.js) for rendering models with multi draw. These individual textures change frequently and are using mipmaps. Because it's not ...
Garrett Johnson's user avatar
2 votes
1 answer
311 views

I'm studying computer graphics with WebGL and want to utilize Three.js to draw FBX models. I have succeeded in loading the FBX models that are shared for free, but I don't know how to add textures and ...
binary_right_010.011's user avatar
0 votes
1 answer
35 views

I'm trying to conditionally render from a perspective and ortho scene & camera together. Eg, imagine an old school computer game where there are 2d sprites positioned on top of a 3d scene BUT the ...
dangarfield's user avatar
  • 2,350
0 votes
1 answer
157 views

I have a website that uses threeJS. It is rendering to a canvas and it has a white clear color (renderer.setClearColor(0xffffff)). I also have a div that gets rendered on top of it as an overlay for a ...
munHunger's user avatar
  • 3,115
0 votes
1 answer
81 views

I'm trying to make an infinitely generating world, the same way Minecraft does it, by using chunks that disappear and reappear depending on where the player is. I'm using a plane that generates points ...
Owen Odroski's user avatar
0 votes
1 answer
48 views

My code generates a shape that consists of a few circular arcs. (There are tiny rounding errors in the coordinates of the ends of the arcs, so Three.js adds some lines between them as well.) This ...
stanch's user avatar
  • 178
0 votes
0 answers
114 views

I am unable to import GLTFLoader into my threejs website & it's showing the same error again and again i.e. " Loading module "http://127.0.0.1:5500/node_modules/three/examples/jsm/...
Krrish Gupta's user avatar
1 vote
1 answer
232 views

Sorry, I'm new to three.js and I know (most) of the basics but somehow I don't know how to set the background image. I need to set the background image to a space-themed background, because in my ...
graham4765's user avatar
1 vote
0 answers
67 views

I am trying to create an app which simulates celestial bodies in space. I am using three.js for rendering and cannon.js for physics simulation. Here with this code I am not able to get a stable orbit ...
Pathan Valimkhan's user avatar
1 vote
0 answers
39 views

In a react-three-fiber environment, how do I animate a point model starting from some intermediate state? The specific problem I'm trying to solve is, I have an animation that moves between some ...
philolegein's user avatar
  • 1,565
1 vote
1 answer
262 views

I'm trying to render a 3D model in my React Native app using Expo and Three.js. The model loads, but it's completely black, and the texture isn't wrapping properly. I've tried adjusting the material ...
Tauseef Razaq's user avatar
1 vote
0 answers
18 views

I am trying to load a .glb file created in blender to a three.js with cannon-es for physics/gravity. My goal is to be able to extend and retract each individual actuator added to my model. The model ...
Matthew Flynn's user avatar
1 vote
0 answers
99 views

import React, { useRef } from 'react' import { useGLTF } from '@react-three/drei/native' import BaseWhite from './base.gltf' export default function Model(props) { const gltf = useGLTF(BaseWhite); ...
user2998964's user avatar
1 vote
1 answer
90 views

I'm new to Three.js, I find it great because with very low effort I've been able to create a simple scene. I'm working on a beach scene and I'd like to add 10 thousands of beach umbrella to the scene. ...
Gusepo's user avatar
  • 899
0 votes
1 answer
85 views

I just want to set my camera X angle view to see my scene from above. Here is my starting code : <PerspectiveCamera makeDefault rotation={[0, 4.7, 0]} ...
Grisch's user avatar
  • 11
0 votes
1 answer
84 views

I have implemented Laplacian smooth in JavaScript and using Three.js, but it seems to be not working as expected. Whenever I use hover and smooth over meshes, the faces are disconnecting and getting ...
superscalar_99's user avatar
0 votes
0 answers
90 views

So I've downloaded a mixamo character and, separately, an animation pack. I've set up a scene with lights, cameras, textured ground and all. I load all the animations and then, I play one of the ...
iPadDeveloper2011's user avatar

1
3 4
5
6 7
419