# \#orientation

**URL:** https://discourse.threejs.org/tag/orientation/491.md

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

---

## [Is it possible to reset object's rotation but to preserve orientation?](https://discourse.threejs.org/t/is-it-possible-to-reset-objects-rotation-but-to-preserve-orientation/42155)

<div class="topic-metadata">

**Author:** [@mudroljub](https://discourse.threejs.org/u/mudroljub)\
**Replies:** 7\
**Last updated:** [October 8, 2024, 6:05am UTC](https://discourse.threejs.org/t/is-it-possible-to-reset-objects-rotation-but-to-preserve-orientation/42155 "2024-10-08T06:05:45Z")

</div>

My situation is like this: I load a 3D model The model is looking at pozitive Z direction I rotate model to look at negative Z direction (with rotateY(Math.PI)) My model is now rotated one PI around Y axis. And everyt…

---

## [Orientation of objects on a sphere surface](https://discourse.threejs.org/t/orientation-of-objects-on-a-sphere-surface/28220)

<div class="topic-metadata">

**Author:** [@Guillaume](https://discourse.threejs.org/u/Guillaume)\
**Replies:** 2\
**Last updated:** [April 12, 2024, 12:10pm UTC](https://discourse.threejs.org/t/orientation-of-objects-on-a-sphere-surface/28220 "2024-04-12T12:10:43Z")

</div>

Hi, I’m trying to place Planes on a Sphere surface but I want the planes to be aligned with the sphere center and squared to the surface (like trees on a planet). I tried several approaches but none seem to work e.g. u…

---

## [How do i calculate the bottom / top of a surface by uvs](https://discourse.threejs.org/t/how-do-i-calculate-the-bottom-top-of-a-surface-by-uvs/60932)

<div class="topic-metadata">

**Author:** [@Faustooo](https://discourse.threejs.org/u/Faustooo)\
**Replies:** 9\
**Last updated:** [February 2, 2024, 3:37pm UTC](https://discourse.threejs.org/t/how-do-i-calculate-the-bottom-top-of-a-surface-by-uvs/60932 "2024-02-02T15:37:46Z")

</div>

Hello everyone, I have custom buffer geometries that always define an flat area in space. The surfaces can be inclined at any angle. I only know the vertex positions and uvs. Is it possible to use the uvs to determine a…

---

## [Aligning polygon along the z-axis](https://discourse.threejs.org/t/aligning-polygon-along-the-z-axis/59053)

<div class="topic-metadata">

**Author:** [@Tame](https://discourse.threejs.org/u/Tame)\
**Replies:** 4\
**Last updated:** [December 11, 2023, 7:38am UTC](https://discourse.threejs.org/t/aligning-polygon-along-the-z-axis/59053 "2023-12-11T07:38:41Z")

</div>

Probably a basic question but still. I’m trying to position polygon flat along the z-axiz. Logic tells me that that in this case all the y coordinates must be 0 or any other value but all same. However this makes polygo…

---

## [Fliped face orientation while fliping object](https://discourse.threejs.org/t/fliped-face-orientation-while-fliping-object/58519)

<div class="topic-metadata">

**Author:** [@Kacper\_Domanski](https://discourse.threejs.org/u/Kacper_Domanski)\
**Replies:** 1\
**Last updated:** [November 24, 2023, 7:38am UTC](https://discourse.threejs.org/t/fliped-face-orientation-while-fliping-object/58519 "2023-11-24T07:38:52Z")

</div>

Hello, I’m trying to do “mirror effect”, but i want to keep normals. Any ideas how i could do this? Here’s my code (React): useEffect(() =\> { const container: any = sceneRef.current!; scene.background = new THRE…

---

## [WebXR getViewerPose ( referenceSpace )](https://discourse.threejs.org/t/webxr-getviewerpose-referencespace/12338)

<div class="topic-metadata">

**Author:** [@ultralowpoly](https://discourse.threejs.org/u/ultralowpoly)\
**Replies:** 3\
**Last updated:** [August 24, 2023, 3:44pm UTC](https://discourse.threejs.org/t/webxr-getviewerpose-referencespace/12338 "2023-08-24T15:44:03Z")

</div>

What is the correct way to retrieve headset orientation data (x, y, z or matrix) in Three.js (Three.js/WebXR) with respect to referenceSpace? (Reason: I need to modify textures and add/remove some objects whose presence…

---

## [Wrong objects orientation when play animation from fbx](https://discourse.threejs.org/t/wrong-objects-orientation-when-play-animation-from-fbx/51839)

<div class="topic-metadata">

**Author:** [@kawexus](https://discourse.threejs.org/u/kawexus)\
**Replies:** 1\
**Last updated:** [May 22, 2023, 4:03pm UTC](https://discourse.threejs.org/t/wrong-objects-orientation-when-play-animation-from-fbx/51839 "2023-05-22T16:03:44Z")

</div>

Hi 2 all! When importing a fbx-file in threejs encountered a problem with incorrect orientation of some models with animation. test\_ori\_003.fbx (2.8 MB) If i import fbx-file back in blender everything seems…

---

## [Checking if the reticle is horizontal or vertical in webxr](https://discourse.threejs.org/t/checking-if-the-reticle-is-horizontal-or-vertical-in-webxr/44588)

<div class="topic-metadata">

**Author:** [@Doug\_Lapsley](https://discourse.threejs.org/u/Doug_Lapsley)\
**Replies:** 3\
**Last updated:** [November 14, 2022, 3:06pm UTC](https://discourse.threejs.org/t/checking-if-the-reticle-is-horizontal-or-vertical-in-webxr/44588 "2022-11-14T15:06:01Z")

</div>

I’m developing with webxr and three.js following the basic setup here. I need to determine whether the reticle is on a horizontal surface or a vertical one. I assume in the render loop after the line this.reticle.matri…

---

## [Blender like Orbit Controls Gizmo for Three.js](https://discourse.threejs.org/t/blender-like-orbit-controls-gizmo-for-three-js/27527)

<div class="topic-metadata">

**Author:** [@Fennec](https://discourse.threejs.org/u/Fennec)\
**Replies:** 10\
**Last updated:** [September 21, 2022, 1:15pm UTC](https://discourse.threejs.org/t/blender-like-orbit-controls-gizmo-for-three-js/27527 "2022-09-21T13:15:35Z")

</div>

Hello everyone, Here’s a lightweight Blender like orientation gizmo for Three.js, it work in tandem with a slightly modified version of THREE.OrbitControls, it follow the orbit controls rotations changes and you can cha…

---

## [How to get orientation for a group of vectors in a bufferGeometry position attr or PointCloud](https://discourse.threejs.org/t/how-to-get-orientation-for-a-group-of-vectors-in-a-buffergeometry-position-attr-or-pointcloud/37370)

<div class="topic-metadata">

**Author:** [@Moe\_Ibrahim](https://discourse.threejs.org/u/Moe_Ibrahim)\
**Replies:** 2\
**Last updated:** [April 22, 2022, 1:26pm UTC](https://discourse.threejs.org/t/how-to-get-orientation-for-a-group-of-vectors-in-a-buffergeometry-position-attr-or-pointcloud/37370 "2022-04-22T13:26:15Z")

</div>

Hello Guys, I have a Point Cloud which represents a human face. and I would like to workout the orientation of this human face and its position in the three world. the position is easy to get with bounding box center. …

---

## [How do I align a cylinder along an axis?](https://discourse.threejs.org/t/how-do-i-align-a-cylinder-along-an-axis/30860)

<div class="topic-metadata">

**Author:** [@dugla](https://discourse.threejs.org/u/dugla)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 8:14pm UTC](https://discourse.threejs.org/t/how-do-i-align-a-cylinder-along-an-axis/30860 "2021-10-15T20:14:23Z")

</div>

I am trying to position and orient a set of cylinders. As input I have a list of xyz locations. Each cylinder is positioned and oriented from successive pairs of xyz values. One after another. Here is the code: const ge…

---

## [\[SOLVED\] Orient plane to intersected face normal and direction vector](https://discourse.threejs.org/t/solved-orient-plane-to-intersected-face-normal-and-direction-vector/29569)

<div class="topic-metadata">

**Author:** [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Replies:** 3\
**Last updated:** [September 4, 2021, 10:33am UTC](https://discourse.threejs.org/t/solved-orient-plane-to-intersected-face-normal-and-direction-vector/29569 "2021-09-04T10:33:55Z")

</div>

hey, i’ve been trying to figure out how to create and orient a plane between a previosly intersected point (Vector3 saved as a variable) and my next intersection point… see image… the blue point with the red plane p…

---

## [How to make a cone turn to point in +X, -X, +Y etc directions?](https://discourse.threejs.org/t/how-to-make-a-cone-turn-to-point-in-x-x-y-etc-directions/28096)

<div class="topic-metadata">

**Author:** [@twisted](https://discourse.threejs.org/u/twisted)\
**Replies:** 2\
**Last updated:** [July 17, 2021, 11:13pm UTC](https://discourse.threejs.org/t/how-to-make-a-cone-turn-to-point-in-x-x-y-etc-directions/28096 "2021-07-17T23:13:01Z")

</div>

I want to be able to set the apex of a cone so that it points in the positive or negative x, y or z directions. Plus, I want the cone to rotate smoothly to it’s new direction. Of the examples that ship with three.js, th…

---

## [📳 Device Motion === Accelerometer !== walking physical mobile device around a room](https://discourse.threejs.org/t/device-motion-accelerometer-walking-physical-mobile-device-around-a-room/3382)

<div class="topic-metadata">

**Author:** [@ben](https://discourse.threejs.org/u/ben)\
**Replies:** 10\
**Last updated:** [April 23, 2021, 10:52am UTC](https://discourse.threejs.org/t/device-motion-accelerometer-walking-physical-mobile-device-around-a-room/3382 "2021-04-23T10:52:13Z")

</div>

The example provided only works on a mobile device, in my case an iphone This IS NOT about using gestures to pinch zoom or buttons to press to zoom or viewport zoom, this question is related to device orientation to mim…
