Control rotation of a 3D object using the touchscreen

by Mac » Thu, 27 Jan 2011 12:32:06 GMT


Sponsored Links
 Hello all, I'm a 4th year computer engineering student and have some
experience with Android dev.

I am working on an application that has a 3D component to it which
requires me to be able to rotate it around. I was looking at the
example at the android resources site.

 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.html 

This example does not talk about rotation around the z-axis. I have
already tried using Quaternion for the rotations but I don't
understand how to get rotations around the z-axis

I was wondering if anyone can help me with learning how to just be
able to rotate around an object. like the example above but also
around the z-axis. I have already spend about 24 hours searching and
trying to figure this out.

The bigger issue is that once you rotate 90 degrees around the y-axis
how can you detect that the next rotation (going vertically on the
touchscreen) should be around the z-axis.

Thank you in advance.
Mac

-- 



Other Threads

1. Android 1.5 on ADP radio problems related to locking SIM?

Hello,

I have an ancient Tmobile SIM (SIM has a Voicestream label if I want
to date myself 8-) in an ADP. I've upgraded from android holiday code
to android 1.5 and I have radio firmware of 2_22_19_26I. If I leave
SIM card locked, the data service does not come on when system is
powered on/off. If I unlock SIM, data service comes on every time. Has
anybody else seen such a behaviour?

--p

--~--~---------~--~----~------------~-------~--~----~

2. Run a Servlet web application on android i-jetty server.

I've been trying to deploy a war to run a servlet web app on i-jetty
server.
The war worked fine on Tomcat server, but didn't on i-jetty.
I also tried to build a war from the hello sample code, and didn't
work although the ready built war worked fine.
How can I build and run a war to make it work inside android in i-
jetty server? What do I need to do? How can I compile the code?

--~--~---------~--~----~------------~-------~--~----~

3. Is there a flag I can enable to permanently display the virtual keyboard in my app?

4. How to set selection of editText by using SendKeyEvent function of InputConnection class

5. ScaleAnimation problem

6. Desktop API of Gears API does not work on Android browser for 1.5

7. AudioRecord can't get any notification when record/marker position updated