I combined mouse events o move my drawn rectangle object. Everything was fine i could move it and when i released the mouse button it stopped moving and settled down. However after rotating that object and then trying to move it around I just could not perform the action again. I have used the ResetTransform method at the end but this didn't help eihter. I have an alternative way for this but i would like to stick with that(above mentioned). Any sugestions what's going on behind the graphic scene and why i m unable to move my rectangle when rotation …

Member Avatar
Member Avatar
+0 forum 7

Hi, I m developing an application using kinect.The IDE I use is Visual studio 2012 and kinect SDK 1.8.I m developing using vc++ I want to overlay an image on the person tracked when the person turns 180 degress to kinect. ie the person is not facing the kinect. how do i track the rotation angle of the person as he/she turns away from kinect. Regards, Sandhya

Member Avatar
+0 forum 0

Just kind of a random question. How exactly do you rotate objects in vb.net?

Member Avatar
Member Avatar
+0 forum 4

Hi, i'm working on a project, that scales and move the image, now i want to rotate the image, i tried using `matrix.postRotate(degrees);` but didn't work for me, here is my code: @Override public boolean onTouch(View v, MotionEvent rawEvent) { WrapMotionEvent event = WrapMotionEvent.wrap(rawEvent); // ... // Dump touch event to log dumpEvent(event); ImageView view = (ImageView) v; // Dump touch event to log dumpEvent(event); // Handle touch events here... switch (event.getAction() & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: savedMatrix.set(matrix); start.set(event.getX(), event.getY()); Log.d(TAG, "mode=DRAG"); mode = DRAG; break; case MotionEvent.ACTION_POINTER_DOWN: oldDist = spacing(event); Log.d(TAG, "oldDist=" + oldDist); if (oldDist > 10f) { …

Member Avatar
Member Avatar
+0 forum 1

It seems that i dont fully comprehend how rotation works. So leys say i have a cube and i do this: x = 90.0f; rotatef(x, 1.0f, 0.0f, 0.0f); Notice that my code here may be not all correct, its like that just to symbolize what i mean. So by doing that i would be facing the Top of the cube. But in this tutorial: http://nehe.gamedev.net/tutorial/moving_bitmaps_in_3d_space/17001/ it states that by doing something like that, its like rotating the whole room so now X axis goes out or into the screen and Z axis is right or left. So its basically the …

Member Avatar
Member Avatar
+0 forum 10

Heya guys, basically here is some code for a simple example program: [CODE] unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls; type TForm1 = class(TForm) img1: TImage; procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); var Image : TBitmap; begin Image := TBitmap.create; Image.Width := 800; Image.Height := 600; img1.Picture.Graphic := Image; With img1.Picture.Bitmap.Canvas do begin Pen.Color := clRed; Pen.Width := 5; MoveTo(100,100); LineTo(100,120); MoveTo(95,120); LineTo(105,120); MoveTo(100,110); LineTo(110,113); MoveTo(100,110); LineTo(90,113); end; end; end. [/CODE] It's basically a program which …

Member Avatar
Member Avatar
+0 forum 8

Hi, I want to make a small game,but I need help with Ruminate GUI (XNA 4.0).My question is how to put buttons in a panel that appears when the course goes over its location - let's say on the left of the screen. I have written some code but I faces some troubles when this statement execute [CODE] gui.Draw(); [/CODE] the models in my scene "turn" to the opposite direction,I mean when I use this instruction the models rotate 180 degree. the second question is how to rotate a mesh (or a model) around a line (not an axis). I …

Member Avatar
Member Avatar
+0 forum 1

Hey, this code accepts data (type int) into a 4 by 4 array. im using 1234 as an example when entered, the data would be stored as: 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 the code the rotates it once to the right so it is printed out as: 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 it was an example my teacher gave us to practice manipulating data in 2D arrays. i dont fully understand how it works, could someone explain to …

Member Avatar
Member Avatar
+0 forum 11

Hi guys I'm writing a top down shooter game in pygame and wanted to use sprites for my object. I got a character sprite working fairly well except I have two problems. 1. When I rotate my character the point of rotation is changing. This causes a uneven rotation in my character 2. I have a problem with rotating at the same time as moving. I can rotate after I have moved in a single direction for several seconds, but as soon as change directions, I can no longer rotate until I have waited another several seconds. Here is my …

Member Avatar
+0 forum 0

I have been working on pygame for awhile, and now I am working on making a fairly complex space ship game. I want the player to be able to go forward with 'w' and steer by rotating the ship with the 'a' and 'd'. I've tried pygame.transform.rotate, but it makes the sprite really low res, and does a weird thing to the rect . please help (btw I am using a png image, if that makes a difference)

Member Avatar
+0 forum 0

I know there a quite a few of these on google but, either im not searching correctly, or they dont do what I want. I feel what I want is very simple, but I know pretty much nothing about javascript. I want to create a loop through the entire linking code and image for example: <a href="#" title="" target=""><img src="image.jpg" title="" style=""/></a> The ones that I find, splits the link up with from the image and doesnt give you the option to add a target, title , styling, class and so on.. I did this in school many years ago …

Member Avatar
Member Avatar
+0 forum 1

Hi, I need some help with OpenGL and rotation. I have a 3D door surrounded by a holder. The holder needs to move with the door and rotate when it's not on the floor. After that the door must be able to open without affecting the holder. It's based on getting a door in Monsters Inc. I've uploaded this 15 second video so you can get the idea of what I'm trying to do: [URL="http://www.youtube.com/watch?v=8HsEhHv6_Mo"]http://www.youtube.com/watch?v=8HsEhHv6_Mo[/URL] Thanks in advance, Stephen

Member Avatar
Member Avatar
+0 forum 3

Ok if you visit [url]http://www.miniclip.com[/url] you'll notice that there is some kind of flash rotator on the home page. This is my code attempt to move between preloaded swf animations using javascript. I've tried giving id of the object or embed but this won't help. Of course this is not that simple and the code isn't working. My intent is to have animation change when clicking the next button. Any help will be greatly appreciated. [CODE]<html> <head> <script type="text/javascript"> var flashNumber = 0; var items = 3; films = new Array(items) films[0] = "movies/animals1.swf"; films[1] = "movies/mammyblue2.swf"; films[2] = "movies/whitebird1.swf"; …

Member Avatar
Member Avatar
+0 forum 3

Hi there, i have this rectangle and i want to be able to rotate this shape around another when i press a key. i have been able to make it rotate where it is. There are two problems i am having difficulties with: - I can get the shape to rotate by placing [icode]glRotatef(angle,x,y,z);[/icode] within the creation of the rectangle. This will rotate this object forever. When trying to make it rotate on keypress i do the follows: [CODE] void keyboard_s (int key, int x, int y) { switch (key) { case GLUT_KEY_LEFT: glRotatef(angle,rectangleX,rectangleY,rectangleZ); break; } }[/CODE] But i couldnt …

Member Avatar
Member Avatar
+0 forum 5

Start a new Forms application. Drop a Panel and a Timer control on it. Set up a Timer_Tick, Form_Load and a Panel_Paint eventhandler and fill in the code. Run the app and watch the string rotate.

Member Avatar
Member Avatar
+2 forum 5

The End.