Questions tagged [rotation]

A rotation is a circular movement of an object around a center (or point) of rotation. On a mobile device, it indicates the change of orientation.

0
votes
0answers
8 views

Rotating plane using raw,pitch, roll angle

Lets say, i have ground-plane equation = ax + by + cz + d . Then i rotate camera and i know new yaw, pitch and roll angle of camera. How can i calculate new ground equation using previous equation ...
0
votes
0answers
28 views

Cameras rotation is too slow

I have a game object that moves and rotates. I want the camera to stay behind the object all the time, so when the user presses w, it will look like the gameobject moves forward. This is my skript ...
0
votes
0answers
16 views

Is it possible to rotate a certain part of a graph in python by 90, 180 and 270 degrees?

I'm currently writing a code where I should implement the pivot algorithm. This means that I have to rotate a part of the graph either 90, 180 or 270 degrees. The code uses lists for both x- and y ...
0
votes
0answers
25 views

How do i rotate the x axis of my scatter plot? Base R

I am struggling to rotate my axis in base R please can you help me, Tried the las function and it did not work xdata <- mydata$school_name plot(xdata, y1, type="b", col="blue", pch="o", lty=1, ...
0
votes
1answer
66 views

How to flip this PGM gradient 90 degrees? (stored in vectors)

I have been working on implementing a grayscale gradient with different dithering methods, but the task calls for the gradient to be horizontal starting with black on the left. In my attempts to ...
0
votes
0answers
13 views

Find difference of translation vectors of two Aruco markers

I work with an RGBD-camera. I need to learn how to concatenate 2 different pictures, but the problem is that each point cloud has own new coordinate system. To track camera changes, I use Aruco ...
-1
votes
0answers
11 views

rotation using quaternions Scenekit

rotation using quaternions, trying to make an object rotate towards a certain point in 3d space, how can I animate an object in such a way that while I hold the button to rotate
1
vote
1answer
41 views

Rotation along a path in opengl

i want to move an object along a path (sine wave), lets suppose object is a roller coaster. it moves through translate but my problem is that i also want to rotate that object according to the path. ...
0
votes
0answers
15 views

PyGame Rotation - Rectangle is Opaque?

I have figured out how to rotate an image around its central point in Pregame, however doing this causes a loss of background transparency. class Agent: def __init__(self,display_width,...
0
votes
1answer
44 views

Unity: How to rotate first person camera by dragging touch across?

Maybe its worth noting that I am using the Fingers asset for touch/mouse. Okay so I have a turret that has a first person camera, on PC it uses the axis Mouse X/Y as I move the mouse around the ...
0
votes
2answers
29 views

Unity, Quaternion.Euler, rotate only around Y axis

I have my main camera in the scene: And I have this code that smoothly rotates the camera: private IEnumerator SmoothlyRotateCamera() { float duration = 0.3f; Quaternion from = transform....
0
votes
0answers
21 views

Blender to Unity Rotation

In blender I am creating a character in pieces like head, body, legs, arms. I export them from blender as FBX and I set the individual pieces Origin to Geometry so it rotates how I would expect in ...
0
votes
1answer
16 views

Image rotation through entire directory?

I need to rotate images in a directory by , 90, 180, 270 degrees. I have written code to singular image and now need to do it through the entire directory. This is in python and on Windows import os ...
0
votes
0answers
15 views

Aforge player missing it's aspect ratio when rotate the frame to 90 degree - c#

I want to see the webcam video in Aforge player by rotating the frame 90 degree. When trying like below, the aspect ratio of frame is seems missing. Looks like frame is stretched to the size of player,...
-3
votes
0answers
28 views

How to edit this Android apps screen orientation? [closed]

I've been trying to fix the screen orientation for this specific Android app called USTVHUB so that it will open on my Shield tv. But it will not open because the app is a portrait mode only app. The ...
0
votes
1answer
19 views

SFML: How to solve sprite quality drop when rotating a sprite in sfml

The image on the link below consists of 20+ images(each body part and armor type in seperate files). This character is animated in the software called "Spriter". The code takes spriter's output file (...
0
votes
1answer
15 views

Rotating a chart.js pie chart with two datapoints to align both sectors on horizontal axis

There have been a few answers on StackOverflow with suggestions for how to rotate the pie chart using a fixed value and rotation option of Chart.js, but I haven't yet found how to create a rotation ...
0
votes
1answer
20 views

How to rotate screen with the `var shouldAutorotate` returns false

How to set the specified page rotation without having it rotate automatically? I found that the screen can rotate only when var shouldAutorotate returns yes, but I don't want to do that automatically,...
0
votes
0answers
20 views

How to join PCA loadings to a dataset with different number of rows in R [closed]

I have a dataset with multiple variables for different places. I used these variables to do a PCA. Now I want to take only the first 3 PC loadings (pcs$loadings[, 1:3]) and add it to my dataset. I ...
-1
votes
1answer
11 views

Darwtext with roatation in ffmpeg not working. shows 'Error marking filters as finished'

I am trying to rotate draw text on my video with some rotation angle. it starts editing video but after some time displays error 'Error marking filters as finished' i am using this library for ...
0
votes
0answers
13 views

Graphics2d Rotation rotates all objects [duplicate]

I am making a little asteroid shooter game for fun, and I am running into some problems. I have it set up so when you press a right or left arrow, the space ship rotates. This works well, but the ...
1
vote
1answer
43 views

Find the bounding box of a rotated polygon with an axis of rotation

I've looked through some of the other close answers here but can't find any solutions to my problem. I have a polygon that is rotated around an axis position, and I need to find the bounding box of ...
1
vote
0answers
63 views

Rotation for object3D using accelerometers

I am using MEMs accelerometers to move an avatar using THREE.js library. However I am facing a problem when sensor is rotated around X, Y, and Z at the same time since my avatar does not get the right ...
0
votes
0answers
10 views

How to make the Mask-RCNN implementation of matterport rotation invariant besides augmentation of the dataset

There is this Git Repository for the Mask-RCNN. https://github.com/matterport/Mask_RCNN How can I modify this model to be rotation invariant? I know, I can do some augmentations to the trainings ...
0
votes
0answers
13 views

AddTorque from position of mouse/touch?

I'd like to do a game, which you have an object that is jumping, depending on which place you clicked at it. Now I already have this function Vector3 Center = this.transform.position; Vector3 forward ...
-1
votes
1answer
43 views

How to program a rotation system like in a flight simulator in java? [closed]

I try to write a rotation system for a theoratical flight device. My main problem is that I practically nearly never rotate around the axes of the coordinate system, but around the axes of the vehicle ...
0
votes
1answer
20 views

pyquaternion: ValueError: Unexpected number of elements in sequence

Using the pyquaternion module I want to obtain a quaternion representation of a 3x3 rotation matrix. When executed, it returns ValueError: Unexpected number of elements in sequence. Got: 3, Expected: ...
0
votes
0answers
30 views

How to rotate tank body towards movement direction like in Wii Tanks - Unity

I'm trying to make tank movement like in Wii Tanks. I can't figure out how to rotate the tank in the direction of movement. The rotation would only be on the y-axis so the tank doesn't start flipping ...
0
votes
0answers
12 views

How to make 2D gameObject z-rotation smoothly rotate like an arrow when being launched in any direction to a target?

I've triedQuaternion.LookRotation(), Quaternion.AngleAxis(), I transform.rotation = LookAt2D(nextPos - transform.position); static Quaternion LookAt2D(Vector2 forward) { return Quaternion.Euler(0, 0, ...
1
vote
1answer
28 views

How can solve the code of a rotated histogram?

Hi to whole stackoverflow group, I am having a series of problems when defining the axes range in my graphic and format in general, and I would like to share it with you to see if among all we can ...
0
votes
0answers
10 views

Rotation a triangle around the center in 3D

How can I calculate the new coordinates of the triangle in 3D? The original coordinates of the triangle, the normal of the triangle and the normal of the rotated triangle are known.
0
votes
1answer
26 views

Manually rotate 3D-object's local UP-axis toward World's UP-axis?

My object can have any(unknown) rotation in the world. I need to interpolate this object's local UP-axis, towards the World's UP-axis, without touching the object's other local rotations (imagine a ...
0
votes
0answers
24 views

Rotating an image makes it disappear

I am trying to rotate an Image in Java.I took a look at similar questions but they don't seem to work.I tried using AffineTransform and more suggestions but they didn't do the trick.I found this ...
0
votes
1answer
27 views

Cant correctly rotate point using GeoPandas

My Python code: from geopandas import GeoSeries from shapely.geometry import Point WGS84 = {'init': 'epsg:4326'} p1 = (41.8121843, 45.2178516,) p2 = (41.8124878, 45.2177536,) point2 = Point(p2) s2 ...
0
votes
0answers
35 views

Consistently rotate a 2d object 45 degrees each steps in C# UNITY

I am trying to make a rotation system for a 2d object. The rotation is controlled by the mouse (rotate the mouse around the object and it is "looking at" the mouse). I have done the system for smooth ...
-1
votes
0answers
21 views

how to create a rotated shape effect programmatically by using a layerlist?

create this shape programmatically <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/carrot_shape_top"> <rotate ...
1
vote
3answers
41 views

Set 3d cube rotation origin

I have a simple 3d cube (BoxGeometry of 100, 100, 100) and I am trying to rotate it. If we call all 100x100x100 a tile - when I rotate it I can see it's overlapping the below tile. (by changing color,...
0
votes
1answer
36 views

How can I rotate my plane as per joystick rotation?

Currently I'm working on a shooter game its a 2d game built in 3d. I want to use joystick to control my player plane rotation. I have added my joystick on the canvas and with PointersEventData I'm ...
0
votes
0answers
33 views

Xamarin Image is NOT shown after compression

in my xamarin forms project. i have the Image Stream and i'm able to display the non compressed/Rotated images in my Images ListView. but when i try to compress and rotate the images, the images are ...
0
votes
0answers
33 views

Rotate mesh about another element?

I want to have the camera move with a mesh. Foward/backward motion was easy: if (Input.is_key_pressed(KEY_W)): self.translation.z -= movement_speed; # relies on camera script to move camera if (...
0
votes
1answer
25 views

Why is my sun (directional light) getting stuck at -90/90 rotation?

I can't figured out why on Earth my sun is getting gimble locked at 90*. In .h file UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="World Environment") ADirectionalLight *SunLight; in .cpp ...
0
votes
2answers
29 views

Rotate a label with image in tkinter

I am attempting to rotate an label with an image which is on a canvas with tkinter. I have three images that need rotating (pitch, roll and yaw) and they will eventually rotate according to IMU ...
0
votes
0answers
32 views

How setting up direction of object axis x and z after a rotation around object axis Y?

I have rotated a group called pivot following this example: https://jsfiddle.net/of1vfhzz/1/ And applying the function rotateAroundObjectAxis(object, axis, radians) from this thread: Rotation ...
0
votes
1answer
76 views

trouble with rotation in spherical coordinates / python implementation

I am trying to implement a function for rotation in spherical coordinates. In the end I need the implementation in Javascript, but first I am trying to get it to work in python because I am more ...
2
votes
1answer
110 views

Drag and drop with interact.js

I am trying to build an interface that allows both resize/drag and rotate on some element and to achieve this I am using interact.js javascript library. I have my interact functions working: ...
0
votes
1answer
32 views

How to rotate an image inside bounding rectangle box

I have the following img that I'd like to drag (by dragging a circle on top of rectangle) and rotate an image. When dragging, I just want to rotate an image inside the rectangle and not the rectangle ...
-2
votes
0answers
14 views

Resize polygon as the rectangle on edit mode

I have rectangle shapes on the map, but my plan is to rotate them. I have already implemented the rotation mode to the polygon, but Rectangle has 'bounds' but not 'points', so if I want to rotate the ...
0
votes
1answer
84 views

Unity 2D rotation not smooth

Does not rotate "fluid, smooth" in the left angle. The left angle turns but is not fluid and smooth. No angles between angles. No problem in the right part. The problem is on the left side. The turns ...
0
votes
0answers
23 views

rotation with tetris in python with coordsystem

I need an alogrithm to rotate blocks in tetris, I have tried looking over stackoverflow, but all solution need some pivot point and what not, I have no clue how to find that, so I'm wondering if ...
1
vote
2answers
43 views

Draw 2D face with 3D vertices

Please bear with me as I've never dealt with anything relating to this and I've been sitting on this issue for the last two weeks. I'm developing a program that reads in faces from a 3D model. Each ...

http://mssss.yulina-kosm.ru