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. OOT: Share foto biar pada kenal antar anggota milist ID-Android

Gimana kalau kita share foto-foto supaya bisa saling kenal kalau lagi ketemu
di gathering sudah pada tau jadi ga usah nanya lagi "lo pake baju apa dan
duduk disebelah mana kalau ada mirink". Hanya ide aj sih.

Dikirim oleh Dedi Sopian
Provide by Andro

"Indonesian Android Community [id-android]" 

2. CSS Web Fonts (Load fonts with web pages) does not support in Android 2.1 but it was support in previous versions

in an struggle to fix the problem of lack of fonts for some languages
(such as Persian or Arabic) I found out that the only platform that do
not support CSS fonts is 2.1, specifically I test 1.5, 1.6 and 2.2
with my test html and google api's Web Font. Is there any way to use
custom fonts in a webpage on Android 2.1?


3. RTSP Streaming - Local Network problems

4. Eclipse: Easy way to refactor/rename package?

5. Info-Based: Indian Rupee finally gets its symbol

6. Eclipse: Easy way to refactor/rename package?

7. Info-Based: Indian Rupee finally gets its symbol