# \#camera-controls

**URL:** https://discourse.threejs.org/tag/camera-controls/40.md?match_all_tags=true&page=1&tags%5B%5D=camera-controls

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

**Page:** 2

---

## [Facing camera rotation issue in 3D panorama scene](https://discourse.threejs.org/t/facing-camera-rotation-issue-in-3d-panorama-scene/67459)

<div class="topic-metadata">

**Author:** [@Vatsal\_Pandya](https://discourse.threejs.org/u/Vatsal_Pandya)\
**Replies:** 3\
**Last updated:** [July 26, 2024, 9:18am UTC](https://discourse.threejs.org/t/facing-camera-rotation-issue-in-3d-panorama-scene/67459 "2024-07-26T09:18:37Z")

</div>

I am facing issue in rotation. rotation is working smoothly only for one of the side. I am using OrbitControls. I have tried ArcballControls & TrackballControls. but didn’t worked. Thanks in advance

---

## [Camera Positioning Issue: Integrating Three.js MapControls with GSAP Animation for Precise Target Locations](https://discourse.threejs.org/t/camera-positioning-issue-integrating-three-js-mapcontrols-with-gsap-animation-for-precise-target-locations/68303)

<div class="topic-metadata">

**Author:** [@Nadir\_Sheikh](https://discourse.threejs.org/u/Nadir_Sheikh)\
**Replies:** 6\
**Last updated:** [July 23, 2024, 1:42pm UTC](https://discourse.threejs.org/t/camera-positioning-issue-integrating-three-js-mapcontrols-with-gsap-animation-for-precise-target-locations/68303 "2024-07-23T13:42:28Z")

</div>

Hello everyone, I’m encountering a problem while animating my 3D model using GSAP and Three.js. Specifically, the issue occurs when I pan the model - the camera doesn’t move to the intended target position correctly. I…

---

## [Help me to optimize this code](https://discourse.threejs.org/t/help-me-to-optimize-this-code/68424)

<div class="topic-metadata">

**Author:** [@ZainAliHaider](https://discourse.threejs.org/u/ZainAliHaider)\
**Replies:** 4\
**Last updated:** [July 22, 2024, 11:18am UTC](https://discourse.threejs.org/t/help-me-to-optimize-this-code/68424 "2024-07-22T11:18:08Z")

</div>

Hello Everyone, Currently I am working on feature in which based on distrance certain group of meshes will disappear as it they move far away from camera. I am attaching my code it is working as it is expected to be but…

---

## [Extended map controls](https://discourse.threejs.org/t/extended-map-controls/68061)

<div class="topic-metadata">

**Author:** [@LauritzOffe](https://discourse.threejs.org/u/LauritzOffe)\
**Replies:** 3\
**Last updated:** [July 12, 2024, 6:54pm UTC](https://discourse.threejs.org/t/extended-map-controls/68061 "2024-07-12T18:54:16Z")

</div>

I want camera control like in this example: Explore – Lewa House However, I have the problem that when I tilt the camera downwards so that it looks at the map, the axis of rotation changes. This affects the viewing dire…

---

## [How do you fix the 180 degree flip of the camera when using pitch controls?](https://discourse.threejs.org/t/how-do-you-fix-the-180-degree-flip-of-the-camera-when-using-pitch-controls/67762)

<div class="topic-metadata">

**Author:** [@iseafish69](https://discourse.threejs.org/u/iseafish69)\
**Replies:** 4\
**Last updated:** [July 12, 2024, 10:11am UTC](https://discourse.threejs.org/t/how-do-you-fix-the-180-degree-flip-of-the-camera-when-using-pitch-controls/67762 "2024-07-12T10:11:11Z")

</div>

I’ve seen this question pop up alot on Google yet I haven’t really found an answer :frowning: My context is I have an object with ‘WASD’ controls to give it pitch, yaw and roll controls I have a camera placed behind th…

---

## [OrbitControls Pan not working with arrow keys](https://discourse.threejs.org/t/orbitcontrols-pan-not-working-with-arrow-keys/67630)

<div class="topic-metadata">

**Author:** [@Gezell](https://discourse.threejs.org/u/Gezell)\
**Replies:** 3\
**Last updated:** [July 3, 2024, 4:49am UTC](https://discourse.threejs.org/t/orbitcontrols-pan-not-working-with-arrow-keys/67630 "2024-07-03T04:49:16Z")

</div>

I simply added OrbitControls to my scene as indicated from the website’s documentation: OrbitControls I can zoom, and rotate by scrolling and click-dragging, but when I try to use my arrow keys to move the camera around…

---

## [pointerUp error with Orbitcontrol after new window opens](https://discourse.threejs.org/t/pointerup-error-with-orbitcontrol-after-new-window-opens/67606)

<div class="topic-metadata">

**Author:** [@GH\_L](https://discourse.threejs.org/u/GH_L)\
**Replies:** 1\
**Last updated:** [July 2, 2024, 5:22pm UTC](https://discourse.threejs.org/t/pointerup-error-with-orbitcontrol-after-new-window-opens/67606 "2024-07-02T17:22:09Z")

</div>

I am using css3Drenderer to bring my Div tags to create a 3d scene in three js. I wanted to make each div tags to be clicked and when the camera is pointed to certain div tag, when it is clicked again then new window op…

---

## [CSSRenderer text jitters on zooming](https://discourse.threejs.org/t/cssrenderer-text-jitters-on-zooming/66250)

<div class="topic-metadata">

**Author:** [@inbedatnoon](https://discourse.threejs.org/u/inbedatnoon)\
**Replies:** 0\
**Last updated:** [May 31, 2024, 5:15pm UTC](https://discourse.threejs.org/t/cssrenderer-text-jitters-on-zooming/66250 "2024-05-31T17:15:51Z")

</div>

Hello, I’m working on a gallery grid with a bunch of images with labels. I’m currently just using placeholder elements and have the motion working how I’d like. One issue I’m having is when I animate the camera zoom the …

---

## [PerspectiveCamera: fit mesh to viewport, with orbital camera offset](https://discourse.threejs.org/t/perspectivecamera-fit-mesh-to-viewport-with-orbital-camera-offset/65589)

<div class="topic-metadata">

**Author:** [@shaun](https://discourse.threejs.org/u/shaun)\
**Replies:** 1\
**Last updated:** [May 16, 2024, 11:13am UTC](https://discourse.threejs.org/t/perspectivecamera-fit-mesh-to-viewport-with-orbital-camera-offset/65589 "2024-05-16T11:13:55Z")

</div>

I’m using this threeJS library, which is very similar to OrbitControls, but has more support for transitions and some other features. Principally, it works the same way, using spherical coords and a distance-from-target …

---

## [Camera-Controls =\> Loading and functional control](https://discourse.threejs.org/t/camera-controls-loading-and-functional-control/65259)

<div class="topic-metadata">

**Author:** [@Ivonig](https://discourse.threejs.org/u/Ivonig)\
**Replies:** 1\
**Last updated:** [May 9, 2024, 7:06am UTC](https://discourse.threejs.org/t/camera-controls-loading-and-functional-control/65259 "2024-05-09T07:06:08Z")

</div>

I have an issue with camera controls. I feel it should be easy but can’t find a way. I’d like the camera to be disabled from any user input. like the user can not move it manually, neither pan, nor rotate, etc… I want ca…

---

## [OrbitControls's setLookAt](https://discourse.threejs.org/t/orbitcontrolss-setlookat/64977)

<div class="topic-metadata">

**Author:** [@hello2](https://discourse.threejs.org/u/hello2)\
**Replies:** 1\
**Last updated:** [May 3, 2024, 11:40am UTC](https://discourse.threejs.org/t/orbitcontrolss-setlookat/64977 "2024-05-03T11:40:12Z")

</div>

How do I achieve fitToBox or setLookAt kind of CameraControls features with OrbitControls?

---

## [Mouseup event does not work along with OrbitControls](https://discourse.threejs.org/t/mouseup-event-does-not-work-along-with-orbitcontrols/20432)

<div class="topic-metadata">

**Author:** [@trusktr](https://discourse.threejs.org/u/trusktr)\
**Replies:** 9\
**Last updated:** [April 25, 2024, 7:22am UTC](https://discourse.threejs.org/t/mouseup-event-does-not-work-along-with-orbitcontrols/20432 "2024-04-25T07:22:53Z")

</div>

In the example, clicking on the scene does not change the cube color because OrbitControls: With no OrbitControls, it works: How do we get the custom mouseup event to work along with OrbitControls?

---

## [How to create a custom automatic camera movement](https://discourse.threejs.org/t/how-to-create-a-custom-automatic-camera-movement/64186)

<div class="topic-metadata">

**Author:** [@Harsh\_Mohan\_Sason](https://discourse.threejs.org/u/Harsh_Mohan_Sason)\
**Replies:** 1\
**Last updated:** [April 17, 2024, 7:13am UTC](https://discourse.threejs.org/t/how-to-create-a-custom-automatic-camera-movement/64186 "2024-04-17T07:13:42Z")

</div>

I have a scene where initially when the website loads, the camera is at the center. I want to animate this camera from bottom to top up in like in the shape of the letter ‘C’ but from the front. I have attached a video b…

---

## [How to simulate Camera Control to get same position, rotation and quarternion?](https://discourse.threejs.org/t/how-to-simulate-camera-control-to-get-same-position-rotation-and-quarternion/63261)

<div class="topic-metadata">

**Author:** [@dangbungbu](https://discourse.threejs.org/u/dangbungbu)\
**Replies:** 1\
**Last updated:** [March 27, 2024, 12:50am UTC](https://discourse.threejs.org/t/how-to-simulate-camera-control-to-get-same-position-rotation-and-quarternion/63261 "2024-03-27T00:50:01Z")

</div>

Following is existing code to move the camera to a certain position (note that cameraControl is an instance of CameraControl class): cameraControl.dollyTo(label.cam\[5\], true); cameraControl.setPosition(label.cam\[2\], la…

---

## [Help needed in moving and rotating the camera in React Three Fiber](https://discourse.threejs.org/t/help-needed-in-moving-and-rotating-the-camera-in-react-three-fiber/41471)

<div class="topic-metadata">

**Author:** [@thewhiteshadow](https://discourse.threejs.org/u/thewhiteshadow)\
**Replies:** 11\
**Last updated:** [March 22, 2024, 10:03am UTC](https://discourse.threejs.org/t/help-needed-in-moving-and-rotating-the-camera-in-react-three-fiber/41471 "2024-03-22T10:03:30Z")

</div>

I am trying to move and rotate the camera in my scene so that it moves in front of the side that is facing the -x axis when the cube is clicked and back to its original position when clicked again. I tried doing it with …

---

## [Maintain Camera Distance from the scene](https://discourse.threejs.org/t/maintain-camera-distance-from-the-scene/63063)

<div class="topic-metadata">

**Author:** [@Sikander\_Khan](https://discourse.threejs.org/u/Sikander_Khan)\
**Replies:** 0\
**Last updated:** [March 21, 2024, 9:31am UTC](https://discourse.threejs.org/t/maintain-camera-distance-from-the-scene/63063 "2024-03-21T09:31:40Z")

</div>

I’m creating a globe and created small dots on it which will represent the users, as in the top left corner, and I’ve also created a locate me button, which will rotate the globe and move the camera to the appropriate…

---

## [Statuse orbitcontrols](https://discourse.threejs.org/t/statuse-orbitcontrols/61978)

<div class="topic-metadata">

**Author:** [@Zahra\_Jafarpisheh](https://discourse.threejs.org/u/Zahra_Jafarpisheh)\
**Replies:** 3\
**Last updated:** [February 27, 2024, 12:10pm UTC](https://discourse.threejs.org/t/statuse-orbitcontrols/61978 "2024-02-27T12:10:12Z")

</div>

How can I find out if the orbit control I have is currently rotating or zooming?

---

## [How to move a camera with an object?](https://discourse.threejs.org/t/how-to-move-a-camera-with-an-object/54868)

<div class="topic-metadata">

**Author:** [@winnip\_fr](https://discourse.threejs.org/u/winnip_fr)\
**Replies:** 2\
**Last updated:** [February 19, 2024, 8:59am UTC](https://discourse.threejs.org/t/how-to-move-a-camera-with-an-object/54868 "2024-02-19T08:59:23Z")

</div>

Hi, In the inital state my scene is composed by (the initial state in the figure below): A cube whose position is (Xc, Yc, Zc) An orthographic camera pointing at the center of the cube and whose position is (Xc + 100,…

---

## [React Three fiber Camera Orientation ( Camera Controls )](https://discourse.threejs.org/t/react-three-fiber-camera-orientation-camera-controls/60895)

<div class="topic-metadata">

**Author:** [@Jason\_Maximilian](https://discourse.threejs.org/u/Jason_Maximilian)\
**Replies:** 0\
**Last updated:** [January 31, 2024, 5:45am UTC](https://discourse.threejs.org/t/react-three-fiber-camera-orientation-camera-controls/60895 "2024-01-31T05:45:42Z")

</div>

am using the camera controls in my project, where i have a 3d model that can be dragged, some of the models can be dragged on x and z , and others can be dragged on all axis, now the question is when i rotate the camera …

---

## [Increase rendering distance with Drei's OrbitControls component](https://discourse.threejs.org/t/increase-rendering-distance-with-dreis-orbitcontrols-component/59958)

<div class="topic-metadata">

**Author:** [@Michael\_Nicol](https://discourse.threejs.org/u/Michael_Nicol)\
**Replies:** 2\
**Last updated:** [January 5, 2024, 9:59am UTC](https://discourse.threejs.org/t/increase-rendering-distance-with-dreis-orbitcontrols-component/59958 "2024-01-05T09:59:55Z")

</div>

Hello, I am using React Three Fiber with Drei. The issue is that files being viewed are cut off due to size. For example, here is a 3D model of a ladder, such that the space between each step is 300 Three.js units. As a…

---

## [Show controls for only negitive or positive side](https://discourse.threejs.org/t/show-controls-for-only-negitive-or-positive-side/59454)

<div class="topic-metadata">

**Author:** [@imkuldeepahlawat](https://discourse.threejs.org/u/imkuldeepahlawat)\
**Replies:** 0\
**Last updated:** [December 20, 2023, 6:06am UTC](https://discourse.threejs.org/t/show-controls-for-only-negitive-or-positive-side/59454 "2023-12-20T06:06:44Z")

</div>

is there any way to show only negitive or positive side of the controller by default it is showing on both side

---

## [Camera auto changes value of position and up (direction)](https://discourse.threejs.org/t/camera-auto-changes-value-of-position-and-up-direction/59435)

<div class="topic-metadata">

**Author:** [@qt\_d](https://discourse.threejs.org/u/qt_d)\
**Replies:** 0\
**Last updated:** [December 19, 2023, 8:05pm UTC](https://discourse.threejs.org/t/camera-auto-changes-value-of-position-and-up-direction/59435 "2023-12-19T20:05:18Z")

</div>

Hello ! I’m having an issue about saving and loading the camera’s position and up (the direction in which the camera is looking at). I’m looking for help. I’m sorry I cannot reproduce the same context. I’m working on …

---

## [\[Solved\] OrbitControls max polar angle = Infinity?](https://discourse.threejs.org/t/solved-orbitcontrols-max-polar-angle-infinity/2629)

<div class="topic-metadata">

**Author:** [@NaDaMa](https://discourse.threejs.org/u/NaDaMa)\
**Replies:** 9\
**Last updated:** [December 9, 2023, 4:49pm UTC](https://discourse.threejs.org/t/solved-orbitcontrols-max-polar-angle-infinity/2629 "2023-12-09T16:49:42Z")

</div>

Hello everyone, First, I want to thank all the people working on this awesome library! I hope one day I’ll join you as well. I started using it recently, so please be gentle if my question is somehow stupid :innocent: …

---

## [Helps in the movement of the spacecraft](https://discourse.threejs.org/t/helps-in-the-movement-of-the-spacecraft/58684)

<div class="topic-metadata">

**Author:** [@Iron\_Code](https://discourse.threejs.org/u/Iron_Code)\
**Replies:** 7\
**Last updated:** [November 30, 2023, 2:42pm UTC](https://discourse.threejs.org/t/helps-in-the-movement-of-the-spacecraft/58684 "2023-11-30T14:42:33Z")

</div>

I’ve been having a problem for 3 days, I’m trying to do this continuous direction tracking for my ship, however in the video you can see that the movement is a bit wrong, it changes directions and inverts some things, I’…

---

## [Combining CameraControls and gsap with FlyControls?](https://discourse.threejs.org/t/combining-cameracontrols-and-gsap-with-flycontrols/58558)

<div class="topic-metadata">

**Author:** [@Rene7705](https://discourse.threejs.org/u/Rene7705)\
**Replies:** 11\
**Last updated:** [November 28, 2023, 2:29am UTC](https://discourse.threejs.org/t/combining-cameracontrols-and-gsap-with-flycontrols/58558 "2023-11-28T02:29:35Z")

</div>

FlyControls is not intended to work in conjunction with the other camera controls out there in the ThreeJS package, i get that. but how would i combine CameraControls with FlyControls, using CameraControls as the genera…

---

## [FlyControls don't work?](https://discourse.threejs.org/t/flycontrols-dont-work/58510)

<div class="topic-metadata">

**Author:** [@Rene7705](https://discourse.threejs.org/u/Rene7705)\
**Replies:** 1\
**Last updated:** [November 23, 2023, 9:16pm UTC](https://discourse.threejs.org/t/flycontrols-dont-work/58510 "2023-11-23T21:16:38Z")

</div>

at 3D file manager on nicer.app , i have a 3D folder view up, but i can’t fly around the world. i’ve verified (with debugger and console.log statements) that the t.camera.position gets updated. i’m completely stumped… …

---

## [Move camera along spline while still having controls pan the camera](https://discourse.threejs.org/t/move-camera-along-spline-while-still-having-controls-pan-the-camera/24777)

<div class="topic-metadata">

**Author:** [@Grant](https://discourse.threejs.org/u/Grant)\
**Replies:** 2\
**Last updated:** [November 21, 2023, 4:08pm UTC](https://discourse.threejs.org/t/move-camera-along-spline-while-still-having-controls-pan-the-camera/24777 "2023-11-21T16:08:42Z")

</div>

I have a spline that my camera moves back and forth on when scrolling with the mouse wheel. My problem is that I am not able to look left/right in my 3d scene anymore. Here is how I capture the wheel event: // Incremen…

---

## [Camera jumping position](https://discourse.threejs.org/t/camera-jumping-position/58138)

<div class="topic-metadata">

**Author:** [@Paperlink](https://discourse.threejs.org/u/Paperlink)\
**Replies:** 3\
**Last updated:** [November 15, 2023, 6:30pm UTC](https://discourse.threejs.org/t/camera-jumping-position/58138 "2023-11-15T18:30:59Z")

</div>

I have a scene with a square Shape, and some boxGeometry as walls, with textures. I also have a modal that pops up to select which texture you want to apply and such, but whenever I change the texture of the walls, somet…

---

## [Acquiring camera world matrix in an OrbitControls change event](https://discourse.threejs.org/t/acquiring-camera-world-matrix-in-an-orbitcontrols-change-event/57743)

<div class="topic-metadata">

**Author:** [@Sean\_Curtis](https://discourse.threejs.org/u/Sean_Curtis)\
**Replies:** 4\
**Last updated:** [November 9, 2023, 2:09pm UTC](https://discourse.threejs.org/t/acquiring-camera-world-matrix-in-an-orbitcontrols-change-event/57743 "2023-11-09T14:09:53Z")

</div>

While manipulating my three.js view screen, I’m hoping to get the instantaneous world matrix of the camera and do stuff with them. At this point, the stuff isn’t that important because I’m encountering a problem. The co…

---

## [In ArcballControls the target does not update its position](https://discourse.threejs.org/t/in-arcballcontrols-the-target-does-not-update-its-position/57463)

<div class="topic-metadata">

**Author:** [@linuswilkins](https://discourse.threejs.org/u/linuswilkins)\
**Replies:** 2\
**Last updated:** [October 27, 2023, 11:45am UTC](https://discourse.threejs.org/t/in-arcballcontrols-the-target-does-not-update-its-position/57463 "2023-10-27T11:45:53Z")

</div>

I’m currently using the ArcballControls. I have some buttons to set the camera on the different axes to look at an object (e.g. from the top/bottom/front…). Now I want to rotate the camera around the gizmo to those pos…

[Previous page](https://discourse.threejs.org/tag/camera-controls/40.md?match_all_tags=true&tags%5B%5D=camera-controls)

[Next page](https://discourse.threejs.org/tag/camera-controls/40.md?match_all_tags=true&page=2&tags%5B%5D=camera-controls)
