I'm currently trying to wrap my head around WPF, and I'm at the stage of converting between coordinate spaces with Matrix3D structures.
After realising WPF has differences between Point3D and Vector3D (thats two hours I'll never get back...) I can get a translation matrix set up. I'm now trying to introduce a rotation matrix, but it see...
I have a base UIView which takes up the entire iPhone screen when the it is horizontal. When the device is rotated to portrait, I want the view to basically just scale down itself and everything in it to 2/3 the size and center it on the screen so everything is shown:
Image: http://img25.imageshack.us/img25/3281/rotateqx.jpg
I can't fo...
I'm wrestling with this problem.
I need a portrait view and a landscape view for my App. Now when I create 2 buttons that show me a portrait view and a landscape view (forced by shouldAutorotateToInterfaceOrientation) they show up just fine. But when I call the views from within the result code of an imagepicker, the portraitview works j...
I am working on writing red-black tree myself. But when I test the rotation that involves root to be rotated, somewhat it loses reference.
Tree structure:
45
/ \
40x 70
/ \ /
7 41 50
/ \
6 39
The rotate logic says:
"Rotate with 45(root) as top, in...
My app's root view controller supports any orientation but user can navigate to another view controller that supports only landscape orientation.
The basic problem is that regardless of the device's actual physical orientation, when the user pops back to root view controller, the navigation bar has a height that would be appropriate fo...
Im trying to do a simple rotation of a cube about the x and y axis:
I want to always rotate the cube over the x axis by an amount x
and rotate the cube over the yaxis by an amount y independent of the x axis rotation
first i naively did :
glRotatef(x,1,0,0);
glRotatef(y,0,1,0);
then
but that first rotates over x then rotates over ...
Our iPad app has a view / view controller hierarchy laid out a little like this:
rootViewController
|
|
|
a UISplitViewController |
| |
| |
| |
tableViewController1 tableViewController2 (implements UISplitViewControllerDelegate)
The rootViewController adds and rem...
Hey
You can rotate an UIImageView like this..
myImage.transform=CGAffineTransformMakeRotation(M_PI/2)
But how do you get a group of images to rotate around point. Say 8 UIButtons arranged in a circle, rotating around a point in the centre.
Any ideas?
...
I have a circular image which i am trying to rotate so that the yellow and black striped circle stays under the users finger and rotates in both directions. I have this so far:
- (void)handleJogShuttle:(UIPanGestureRecognizer *)recognizer {
UIView *shuttle = [recognizer view];
if ([recognizer state] == UIGestureRecognizerState...
Hi guys ,
I need your help please. I have spent hours trying to solve it but not working.
I have an image i am rotating when the user clicks on a button. But it is not working.
I would like to see the image rotating gradually till it stops but it doesn't.
This it what it does. After i click the button, i don't see it rotating. But wh...
I need to get rotation data from Bullets rigid body world transform ( getWorldTransform() ) to the suitable format to pass to D3DXMatrixRotationYawPitchRoll function to generate the rotation matrix for DirectX.
My solutions structure is built up this way so I need to pass the data this way. You can provide other solutions, maybe I can s...
How would i use a PanGestureRecognizer's translationInView which returns a CGPoint, to track the user touch location so that i can rotate an image so that the point where the user touches stays under the finger?
I can use CGAffineTransformRotate to do the rotation but it expects a rotation angle in radians. Currently i am using M_PI/20;...
I need to rotate a circle by an amount equal to the distance travelled by the users finger... This would equate to the length of the arc moved by the finger... I know the radius of the circle, but need to calculate the central angle and maybe the arc length.
Can i do this using any functions in PanGestureRecognizer? translationInView? ...
Hello, i have this problem when my Sprite rotation origin is fixed at top left corner of window (same with sprite.Draw and sprite.Draw2D)
Either way if i change rotation center it's still at top left. I need sprite to rotate around its Z axis.
Thank you.
Edit:
I have tried this:
hereMatrix pm = Matrix.Translation(_playerPos.X + 8,...
Hi there! I'm a real noob who just started learning 3d programming and i have a really hard time learning about rotation in 3D space. My problem is that I can't seem to figure out how to rotate an object using it's local coordinates.
I have a basic class for 3d objects and, for starters, i want to implement functions that will rotate th...
I have an image I am rotating when the user clicks on a button. But it is not working.
I would like to see the image rotating gradually to 90 degrees till it stops but it doesn't. The image must rotate 90 degrees gradually when the button is clicked.
I have created an SSCCE to demonstrate the problem. Please replace the image in the Cr...
I've created a modalviewcontroller and all the subviews are created by code. When I'm testing the app, I find a problem. Then main cause of the problem is that an app shouldn't support UpsideDown orientation, but devices may happen to be in that orientation.
If I:
Rotate the device to Portrait orientation, and then to UpsideDown mode ...
I have a UIWebView in which the user can browse a bunch of locally stored and interlinked HTML files. All works nice and well, except in this particular case:
User navigates to a page with a fragment pointing to chapter 3, causing (correctly) the browser to render the HTML from the fragment anchor and onward.
User scrolls a bit further...
I am trying to accomplish some complex effects during my UIView rotation, and I'm using the first half/second half method of rotation animations.
However, when my second half starts, I'd like to set some properties on my subviews (alpha, frame) etc, from which to begin animating in the second half. But setting any of these properties of...
I am basically trying to create a display object transformation manager which will allow me to scale/rotate objects. I am currently trying to figure out how to rotate an object so its corner follows the current x and y of the mouse.
I always get confused on the math of things like this. I know how to listen for the events and everyt...