# \#perspective-camera

**URL:** https://discourse.threejs.org/tag/perspective-camera/79.md

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

---

## [CAD Camera Controls](https://discourse.threejs.org/t/cad-camera-controls/92168)

<div class="topic-metadata">

**Author:** [@alankalb](https://discourse.threejs.org/u/alankalb)\
**Replies:** 0\
**Last updated:** [June 11, 2026, 4:20pm UTC](https://discourse.threejs.org/t/cad-camera-controls/92168 "2026-06-11T16:20:20Z")

</div>

Just sharing a new camera library I developed while working on a CAD-related project: https://www.npmjs.com/package/cad-camera-controls I found none of the existing camera libraries had the right settings to mimic the…

---

## [I have tried to build a Game like Need For Speed using Cannon-es and Three js](https://discourse.threejs.org/t/i-have-tried-to-build-a-game-like-need-for-speed-using-cannon-es-and-three-js/86955)

<div class="topic-metadata">

**Author:** [@Aditya\_Mandal](https://discourse.threejs.org/u/Aditya_Mandal)\
**Replies:** 11\
**Last updated:** [April 21, 2026, 2:27pm UTC](https://discourse.threejs.org/t/i-have-tried-to-build-a-game-like-need-for-speed-using-cannon-es-and-three-js/86955 "2026-04-21T14:27:04Z")

</div>

https://need-for-speed-clone.onrender.com/

---

## [Walkthrough by mouse in showroom like littleworkshop](https://discourse.threejs.org/t/walkthrough-by-mouse-in-showroom-like-littleworkshop/82116)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 2\
**Last updated:** [May 6, 2025, 1:43pm UTC](https://discourse.threejs.org/t/walkthrough-by-mouse-in-showroom-like-littleworkshop/82116 "2025-05-06T13:43:28Z")

</div>

Hi I want to run a walkthrough like this project for myself by mouse. detecting surfaces like ground and stairs, and move the camera smoothly to that place like a person walking. And I want to prevent the camera from go…

---

## [Vertical Lens Shift](https://discourse.threejs.org/t/vertical-lens-shift/52599)

<div class="topic-metadata">

**Author:** [@pibi](https://discourse.threejs.org/u/pibi)\
**Replies:** 8\
**Last updated:** [April 2, 2025, 2:27am UTC](https://discourse.threejs.org/t/vertical-lens-shift/52599 "2025-04-02T02:27:45Z")

</div>

I’m doing an animation moving vertically along a building. With the perspective camera, there is some distortion near the edges, as expected. But I would love to have the side edges of the building being vertical. In …

---

## [Camera zoom out when reduce the browser height](https://discourse.threejs.org/t/camera-zoom-out-when-reduce-the-browser-height/76595)

<div class="topic-metadata">

**Author:** [@aronanol45](https://discourse.threejs.org/u/aronanol45)\
**Replies:** 3\
**Last updated:** [January 17, 2025, 12:47am UTC](https://discourse.threejs.org/t/camera-zoom-out-when-reduce-the-browser-height/76595 "2025-01-17T00:47:28Z")

</div>

Hi guys, Found this example here : three.js examples , if I resize the height of the browser ( 20% of the screen by ex) the camera seems to “zoom out”, here two examples which are working verry fine without the “zoom ou…

---

## [Wystra Museum - Beginner 3D Project](https://discourse.threejs.org/t/wystra-museum-beginner-3d-project/76450)

<div class="topic-metadata">

**Author:** [@Aman\_Yadav](https://discourse.threejs.org/u/Aman_Yadav)\
**Replies:** 0\
**Last updated:** [January 14, 2025, 11:59am UTC](https://discourse.threejs.org/t/wystra-museum-beginner-3d-project/76450 "2025-01-14T11:59:13Z")

</div>

Extremely simplistic museum project exibiting pure Three.js and HTML/CSS and three models representing as ancient statues. The complete website features only a single ray caster based dynamic lightning which folllows the…

---

## [Converting CSS Perspective to Three js Perspective](https://discourse.threejs.org/t/converting-css-perspective-to-three-js-perspective/75985)

<div class="topic-metadata">

**Author:** [@ser1ze](https://discourse.threejs.org/u/ser1ze)\
**Replies:** 2\
**Last updated:** [January 4, 2025, 1:12am UTC](https://discourse.threejs.org/t/converting-css-perspective-to-three-js-perspective/75985 "2025-01-04T01:12:30Z")

</div>

Im trying to recreate the exact same css perspective in threeJs but can’t find a proper way to do it. It appears to be similar to what i want but not the same

---

## [How to control perspective distortion of THREE.PerspectiveCamera](https://discourse.threejs.org/t/how-to-control-perspective-distortion-of-three-perspectivecamera/75551)

<div class="topic-metadata">

**Author:** [@Nandan\_Bilagi](https://discourse.threejs.org/u/Nandan_Bilagi)\
**Replies:** 6\
**Last updated:** [December 28, 2024, 12:12pm UTC](https://discourse.threejs.org/t/how-to-control-perspective-distortion-of-three-perspectivecamera/75551 "2024-12-28T12:12:44Z")

</div>

I’m experiencing distortion when using a PerspectiveCamera in Three.js. Objects closer to the edges of the view appear stretched or skewed. Is this expected behavior due to the camera’s FOV, or could it be related to my …

---

## [Blender FOV to Threejs FOV](https://discourse.threejs.org/t/blender-fov-to-threejs-fov/75654)

<div class="topic-metadata">

**Author:** [@hibert42](https://discourse.threejs.org/u/hibert42)\
**Replies:** 11\
**Last updated:** [December 26, 2024, 11:37am UTC](https://discourse.threejs.org/t/blender-fov-to-threejs-fov/75654 "2024-12-26T11:37:18Z")

</div>

Hey, I Export the FOV data of a camera in a prop into a gltf file. That works as expected. However, it is a different FOV approach. When I copy the exported FOV value to a the .fov prop of a threejs camera, the result…

---

## [How to extract camera coordinates in Three.js space from projectionMatrix calculated from Mapbox](https://discourse.threejs.org/t/how-to-extract-camera-coordinates-in-three-js-space-from-projectionmatrix-calculated-from-mapbox/74874)

<div class="topic-metadata">

**Author:** [@hamu\_shotaro](https://discourse.threejs.org/u/hamu_shotaro)\
**Replies:** 0\
**Last updated:** [December 6, 2024, 10:11am UTC](https://discourse.threejs.org/t/how-to-extract-camera-coordinates-in-three-js-space-from-projectionmatrix-calculated-from-mapbox/74874 "2024-12-06T10:11:39Z")

</div>

I want to extract the camera coordinates in Three.js space from the projectionMatrix calculated from Mapbox. The following is the calculation process to calculate projectionMatrix in a custom layer. const modelOrigin =…

---

## [Is there some solution to this visualization issue?](https://discourse.threejs.org/t/is-there-some-solution-to-this-visualization-issue/73561)

<div class="topic-metadata">

**Author:** [@Swapnil](https://discourse.threejs.org/u/Swapnil)\
**Replies:** 4\
**Last updated:** [November 9, 2024, 10:58pm UTC](https://discourse.threejs.org/t/is-there-some-solution-to-this-visualization-issue/73561 "2024-11-09T22:58:56Z")

</div>

Do visualizing 3D objects near or far w.r.t perspective camera can affect a sphere’s shape ? I have created few spheres of radius 1 and 0.5 at the beginning and as per requirement I am controlling the size of spheres fr…

---

## [How to rotate scene by dragging a cube view](https://discourse.threejs.org/t/how-to-rotate-scene-by-dragging-a-cube-view/73496)

<div class="topic-metadata">

**Author:** [@Uros\_Cvijanovic](https://discourse.threejs.org/u/Uros_Cvijanovic)\
**Replies:** 3\
**Last updated:** [November 1, 2024, 1:12am UTC](https://discourse.threejs.org/t/how-to-rotate-scene-by-dragging-a-cube-view/73496 "2024-11-01T01:12:26Z")

</div>

I added something very similar to this example to Angular three js component that is representing a 3D model of the contruction site: Very basic ViewCube Very rough code structure (isolated the part that I am asking her…

---

## [I want to be able to look all the way down/up](https://discourse.threejs.org/t/i-want-to-be-able-to-look-all-the-way-down-up/73357)

<div class="topic-metadata">

**Author:** [@Patrick\_Yingling](https://discourse.threejs.org/u/Patrick_Yingling)\
**Replies:** 10\
**Last updated:** [October 30, 2024, 3:18pm UTC](https://discourse.threejs.org/t/i-want-to-be-able-to-look-all-the-way-down-up/73357 "2024-10-30T15:18:11Z")

</div>

I am trying to make a game with a perspective camera and I want to Be able to look all the way down and up. But when I try it stops me at some kind of limit. is there a way to extend that limit so I can look all the way …

---

## [Computing perfectly snug near and far planes for depth rendering](https://discourse.threejs.org/t/computing-perfectly-snug-near-and-far-planes-for-depth-rendering/72622)

<div class="topic-metadata">

**Author:** [@grml](https://discourse.threejs.org/u/grml)\
**Replies:** 5\
**Last updated:** [October 23, 2024, 2:52am UTC](https://discourse.threejs.org/t/computing-perfectly-snug-near-and-far-planes-for-depth-rendering/72622 "2024-10-23T02:52:32Z")

</div>

I have a scene and a PerspectiveCamera, and I want to render the depth of the scene, perfectly normalized in the \[0, 1\] range. My thinking is that I should find the nearest and farthest projected vertex distances in the …

---

## [Showing wrong shape when set the anchor is too far from 3D object location](https://discourse.threejs.org/t/showing-wrong-shape-when-set-the-anchor-is-too-far-from-3d-object-location/72581)

<div class="topic-metadata">

**Author:** [@iamst10](https://discourse.threejs.org/u/iamst10)\
**Replies:** 7\
**Last updated:** [October 14, 2024, 4:28am UTC](https://discourse.threejs.org/t/showing-wrong-shape-when-set-the-anchor-is-too-far-from-3d-object-location/72581 "2024-10-14T04:28:33Z")

</div>

I’m using the WebGLOverlayView to display a 3D image with animation on a vector map, using the js-three library. When I set projectionMartrix for PerspectiveCamera by mainCameraRef.current.projectionMatrix.fromArray( …

---

## [Zoom Reversal Issue with Perspective Camera on Canvas Zoom Buttons](https://discourse.threejs.org/t/zoom-reversal-issue-with-perspective-camera-on-canvas-zoom-buttons/72399)

<div class="topic-metadata">

**Author:** [@HananB27](https://discourse.threejs.org/u/HananB27)\
**Replies:** 0\
**Last updated:** [October 4, 2024, 2:52pm UTC](https://discourse.threejs.org/t/zoom-reversal-issue-with-perspective-camera-on-canvas-zoom-buttons/72399 "2024-10-04T14:52:11Z")

</div>

Hi everyone, I’m implementing zoom buttons in my Three.js canvas, similar to the + and - buttons in Google Maps. However, I’m encountering an issue specifically with the perspective camera during zoom-in. When the user…

---

## [Synchronize perspective camera position while switching between OrbitControls and DeviceOrientationControls](https://discourse.threejs.org/t/synchronize-perspective-camera-position-while-switching-between-orbitcontrols-and-deviceorientationcontrols/70806)

<div class="topic-metadata">

**Author:** [@armkh](https://discourse.threejs.org/u/armkh)\
**Replies:** 0\
**Last updated:** [September 17, 2024, 9:39am UTC](https://discourse.threejs.org/t/synchronize-perspective-camera-position-while-switching-between-orbitcontrols-and-deviceorientationcontrols/70806 "2024-09-17T09:39:39Z")

</div>

In my application ( React JS ) I’m switching between orbit controls and device orientation controls import { DeviceOrientationControls, OrbitControls } from '@react-three/drei'; ... const \[isGyroscope, setIsGyroscop…

---

## [What's the difference between linear depth, perspective depth, and orthographic depth?](https://discourse.threejs.org/t/whats-the-difference-between-linear-depth-perspective-depth-and-orthographic-depth/70750)

<div class="topic-metadata">

**Author:** [@torrent](https://discourse.threejs.org/u/torrent)\
**Replies:** 3\
**Last updated:** [September 16, 2024, 8:59pm UTC](https://discourse.threejs.org/t/whats-the-difference-between-linear-depth-perspective-depth-and-orthographic-depth/70750 "2024-09-16T20:59:10Z")

</div>

Studying the code of three.webgpu.js, I come across the terms “linear depth”, “perspective depth”, and “orthographic depth”. I know there is a visual difference between perspective and orthographic projections, but why …

---

## [Move Camera Smothly to a group center](https://discourse.threejs.org/t/move-camera-smothly-to-a-group-center/69514)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 1\
**Last updated:** [August 20, 2024, 8:08pm UTC](https://discourse.threejs.org/t/move-camera-smothly-to-a-group-center/69514 "2024-08-20T20:08:36Z")

</div>

Hi guys, I have different groups in my model. How can I move the camera smoothly above center of my group? I have to calculate the center of the group with a bounding box? for the moving camera what do you suggest?

---

## [Camera Angle based on world coordination](https://discourse.threejs.org/t/camera-angle-based-on-world-coordination/68675)

<div class="topic-metadata">

**Author:** [@swp](https://discourse.threejs.org/u/swp)\
**Replies:** 3\
**Last updated:** [July 28, 2024, 8:07am UTC](https://discourse.threejs.org/t/camera-angle-based-on-world-coordination/68675 "2024-07-28T08:07:57Z")

</div>

The rotation of camera is using Euler angle, which uses local coordination. It is good but confusing end users who don’t have any knowledge about 3D graphics. So, I want to change the angle x, y, and z based on the worl…

---

## [Using r3f to update camera rotation/lookAt value](https://discourse.threejs.org/t/using-r3f-to-update-camera-rotation-lookat-value/67734)

<div class="topic-metadata">

**Author:** [@SGMSA](https://discourse.threejs.org/u/SGMSA)\
**Replies:** 7\
**Last updated:** [July 6, 2024, 7:49am UTC](https://discourse.threejs.org/t/using-r3f-to-update-camera-rotation-lookat-value/67734 "2024-07-06T07:49:08Z")

</div>

I’m pretty new to r3f and ThreeJS in general, I’m trying to achieve an effect where the camera starts on the outside of the model at \[0,50,50\] for instance, then animates to the centre of point at \[0,20,0\]. From here it …

---

## [How to controll minimap like games?Location and area](https://discourse.threejs.org/t/how-to-controll-minimap-like-games-location-and-area/66948)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 3\
**Last updated:** [June 24, 2024, 12:29am UTC](https://discourse.threejs.org/t/how-to-controll-minimap-like-games-location-and-area/66948 "2024-06-24T00:29:02Z")

</div>

Hi I added minimap from the tutorial to my software.: I use IFC files. https://docs.thatopen.com/Tutorials/Components/Core/MiniMapI need a minimap like games: I need 3 things: The current minimap has some problems …

---

## [How to size the renderer bigger than the actual screen without stretching the content?](https://discourse.threejs.org/t/how-to-size-the-renderer-bigger-than-the-actual-screen-without-stretching-the-content/66218)

<div class="topic-metadata">

**Author:** [@crestaiyl](https://discourse.threejs.org/u/crestaiyl)\
**Replies:** 2\
**Last updated:** [June 1, 2024, 4:14pm UTC](https://discourse.threejs.org/t/how-to-size-the-renderer-bigger-than-the-actual-screen-without-stretching-the-content/66218 "2024-06-01T16:14:25Z")

</div>

Hi everyone, I have a little issue, which I can’t solve. I don’t know how to size the renderer in a size of 6144 x 768 px. I know this is a big size and a really unusual size, but I need it for a special screen. So f…

---

## [How to Maintaining consistent viewport size when switching between perspective and orthographic cameras using orbitControls？](https://discourse.threejs.org/t/how-to-maintaining-consistent-viewport-size-when-switching-between-perspective-and-orthographic-cameras-using-orbitcontrols/66176)

<div class="topic-metadata">

**Author:** [@Joe\_Perry](https://discourse.threejs.org/u/Joe_Perry)\
**Replies:** 3\
**Last updated:** [May 30, 2024, 10:14am UTC](https://discourse.threejs.org/t/how-to-maintaining-consistent-viewport-size-when-switching-between-perspective-and-orthographic-cameras-using-orbitcontrols/66176 "2024-05-30T10:14:51Z")

</div>

I have created a CodePen example using Three.js: https://codepen.io/laddishx/pen/QWPemMB In this example, I am switching between a perspective camera and an orthographic camera while using orbitControls. Currently, the …

---

## [Rotate model and show specific mesh into camera | screenshot](https://discourse.threejs.org/t/rotate-model-and-show-specific-mesh-into-camera-screenshot/65629)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 1\
**Last updated:** [May 16, 2024, 12:58pm UTC](https://discourse.threejs.org/t/rotate-model-and-show-specific-mesh-into-camera-screenshot/65629 "2024-05-16T12:58:31Z")

</div>

Hi guys, I want to produce some icons of my 3d model’s meshes. At first, the model should be fit to view (should be zoomed as large as possible in canvas (fit to view). this is a canvas for preview Then I make 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 …

---

## [Advice on "infinite zoom" story](https://discourse.threejs.org/t/advice-on-infinite-zoom-story/64035)

<div class="topic-metadata">

**Author:** [@enric1994](https://discourse.threejs.org/u/enric1994)\
**Replies:** 3\
**Last updated:** [April 16, 2024, 12:52pm UTC](https://discourse.threejs.org/t/advice-on-infinite-zoom-story/64035 "2024-04-16T12:52:35Z")

</div>

Hello! I am planning to work on a site where you keep zooming in on a 3D model. Something like this. I haven’t started with the creative part yet because first I wanted to check with you if it is feasible. There is no p…

---

## [Reverse Engineering Perspective Camera](https://discourse.threejs.org/t/reverse-engineering-perspective-camera/63257)

<div class="topic-metadata">

**Author:** [@marvv90](https://discourse.threejs.org/u/marvv90)\
**Replies:** 1\
**Last updated:** [March 26, 2024, 9:01am UTC](https://discourse.threejs.org/t/reverse-engineering-perspective-camera/63257 "2024-03-26T09:01:49Z")

</div>

Hi everyone, is it possible to reverse engineering the current positions when OrbitControls changes to set the current Look as initial Look ? See the Example Pictures Thanks everyone ….

---

## [Track 6dof head movement without entering XR session](https://discourse.threejs.org/t/track-6dof-head-movement-without-entering-xr-session/55230)

<div class="topic-metadata">

**Author:** [@FilipePires98](https://discourse.threejs.org/u/FilipePires98)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 9:58am UTC](https://discourse.threejs.org/t/track-6dof-head-movement-without-entering-xr-session/55230 "2024-02-06T09:58:02Z")

</div>

I am developing a web application that leverages ThreeJS to display 3D content. The app would benefit from tracking headset movement when viewing the 2D page as a Window while wearing Vision Pro. This would ultimately al…

---

## [Show Camera View on HTML Element](https://discourse.threejs.org/t/show-camera-view-on-html-element/31017)

<div class="topic-metadata">

**Author:** [@lonely.programmer](https://discourse.threejs.org/u/lonely.programmer)\
**Replies:** 1\
**Last updated:** [January 16, 2024, 9:03pm UTC](https://discourse.threejs.org/t/show-camera-view-on-html-element/31017 "2024-01-16T21:03:52Z")

</div>

If you have ever played an Age of Empires 3 match, you will see that the Mini-map displays the Game Camera’s view on it. This is seen below. I want to do that same thing for my game, since I have the Mini-map already …

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