Currently, I am working on displaying an OBJ element with Three.js using WebGlRenderer. However, I am facing a challenge in allowing users to rotate the camera around the object in any direction. After some research, I came across this answer:
Rotate camera in Three.js with mouse
Unfortunately, both examples provided in the solution are giving me errors. The first one mentions that "projector is not defined," but I am unsure of what "projector" refers to. I have a simple camera setup, the object, and some light in my scene. On the other hand, the second code gives an error stating that "undefined is not a function."
If anyone has encountered similar issues or knows how to achieve the desired result, your guidance would be greatly appreciated.