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. 

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.


Other Threads

1. What is the difference between default android apps and sdk built apps in donut?

It's set somewhere where the default flags for aapt are set -- look through
the build system makefiles for where aapt is defined.  It is based on the
version information defined for the build system.

Sorry I don't know about the search dialog.  Do keep in mind, though all of
this screen support was introduced in the platform in 1.6, it is only 2.0
where we have implemented full support for high density screens across all
UI and apps, and have not done this for any other new screen configuration.
 So you need to expect to do some work with parts of the UI to get them to
behave on these other screens, and I really have no idea what all those may
be.  (And honestly, I would question whether things like the current status
bar UI make sense as-is on a larger screen; those are ripe for rework.)

> > > website:

2. how to remove statusbar animation when chang to fullscreen.

Hi LemonDev,

If you are just wanting to remove the bar, set in OnCreate the following:


Make sure its done before setting content view.


3. how to remove statusbar animation when chang to fullscreen.

4. Motorola Motus Image and Specs Arrive | AndroidGuys

5. Android Eclair -- hangs after gralloc/mapFrameBufferLocked

6. facebook android 2.0 was Jubeh Android 2.0 buat dream

7. facebook android 2.0 was Jubeh Android 2.0 buat dream