Relative Content

Tag Archive for reactjsthree.jsreact-three-fiber

Three.js Draco compression by gltf transform

I want to apply draco compression on the scene which is currently present in the scene without downloading. I know we can read a glb or gltf file from local. I want to read the scene currently present.

I got problem with updating React components for r3f

so my problem is that I’m beggining on r3f and I guess the problem isn’t in that for the uploading error, but I have so much code that I can’t figure out logic for updating the components, and in advance, sorry for the messed up code I just made sure that this thing works. So, the problem is as you’ll see the clock that I made in r3f is looking good for the spheres around it, but the lines that are presenting hours,minutes, seconds are not updating onload and not even after interval of 1000ms they’re only updating when i run npm dun dev and i hit repeatedly save on vscode and only then the position changes, the angle is okay its updating with one second interval but the position stays the same, can you please tell me whats the issue, again sorry for messy code

How to have axes move with cube? (react-three-fiber/ Three.js)

I am using react-three-fiber(built on Three.js) and want to add x,y,z axes to my cube. The issue is that only 2 of my axes are showing (even when the cube rotates, the third axes doesn’t show), and also, the axes do not move with the cube, they just stay aligned with the page. How do I get the axes to rotate with the cube?