How to animate the rectangles using r3f in React?
I’m having a problem to animate the glb
model I have in a correct way, but unfortunately I’m not that good with react-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?
SyntaxError: Unexpected token ‘<' when loading font with Three.js FontLoader
I’m working on a Three.js project where I need to add custom fonts. I have placed my .json font file inside a fonts folder located in the static directory. When attempting to load the font using FontLoader, the console logs an error. I’ve ensured the path to the .json file is correct.