Relative Content

Tag Archive for reactjsreact-three-fiber

How can I solve this Fragment Shader Error?

I’m trying to map each side of an octahedron with a simple texture. I have this error about “Fragment is not compiled”, but I need to figure out what else to change. It’s a very basic fragment shader.

How to set state with useFrame in react three fiber

I am working on a project that displays sensor data from an airplane to show orientation using React Three Fiber (R3F). There are also other components, like a chart, that rely on this same data. The data is recorded at 100 Hz and stored in a large array.

I got problem with updating React components for r3f(react three fiber)

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