I just added it to the sandbox and it works fine. However, not like I expected.
As @promac already said: I am looking for the 3 cycles around the model (see here)
I checked the code from the provided example from three.js itself, and it looks like they’re just setting the variable to true (see here) . So for me, it’s very confusing why it works for them and not for me.
@promac I just checked your dependencies, and it looks like it won’t render anymore. You can see a nearly created devbox (with your dependencies) here: https://codesandbox.io/p/devbox/j59hcd
Can you provide a working example with the cycle gizmos?
You just need to press “s” (or check the Stats checkbox) to behold the Gizmos in action. You can use the “Arrow Down” in the keyboard to see the menu in the desktop. Then you can browse the Documentation and see the source.
Yes, exactly. I also tried changing your code, but no joy. However, the zoom and pan is working fine now, using the new clipping planes…
As I told you, I am seeing react-fiber for the first time. I can not tell you whether this feature has ever worked. Nonetheless, learning react-fiber is on my todo list, and your code is a good starting point for me…
I think I learned the very basic of R3F now. The two great circles really do not appear, but I changed your code to using OrbitControls and added an option to “autorotate” the scene. There is an additional “reset” button to change the center of rotation to the center of the bounding box.
I also changed the hover to double click, so it does not interfere with the mouse interaction for rotation. When you double click, it also checks the Leva “part” selected in the interface. Then I added an environment and three reflective spheres to test my understanding of the subject.
I really do not like sandbox (or at least, my computer is too slow for it), so I deployed in Vercel.
If you really want to use ArcballControls, I think you will have access it directly in threejs…
The selection of parts with the mouse can select more than one part at a time, and it is necessary to filter the result to get only the closest object to the viewer, but I do not know to to that yet using R3F.
I really think R3F is just for displaying simple scenes when using react, and I was not able to avoid using nodejs by loading everything in the browser, as I used to do without R3F. Testing would be simpler this way…