maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Spining Globe using Accelerometer or Touch Screen (https://talk.maemo.org/showthread.php?t=46339)

metalx1000 2010-03-02 22:55

Spining Globe using Accelerometer or Touch Screen
 
This is basically the same code as my 3D Cube project.

But, I made some small adjustments in the code so that when you are using the accelerometer the animation will loop forever instead of stopping when hitting the end frames.

Oh, and I changed the image from a photo Cube to a Spinning Globe. The Blender File of the globe animation is included with the code.

Here is a Video of it.
And here is the Code.

Written in Python with PyGame.

radiosw 2010-03-02 23:21

Re: Spining Globe using Accelerometer or Touch Screen
 
looks great but how do i open it ? still learning!

metalx1000 2010-03-02 23:38

Re: Spining Globe using Accelerometer or Touch Screen
 
Quote:

Originally Posted by radiosw (Post 553210)
looks great but how do i open it ? still learning!

Simple download and untar the file.
If you are downloading it with a computer you can use pretty much any zip type program (exmaple: Archive Manager or tar)

If you are useing tar:
Code:

tar zxvf 3D_globe.tar.gz
And then copy the files to the phone.
I do think there are some issues with the version of tar on the phone, but I haven't really looked into that.

You can also untar straight to the phone with Nautilus using sftp protocol.

But, I don't know what distro you are using or what file manager.
But, there are many ways to untar the file.

once untared, just go to the folder where you put the files and:
Code:

./3d-globe_acc.py
I hope that helps and I didn't confuse you more.
Basically you untar and ./3d-globe_acc.py

If you need more help, let me know more about how you are trying to do this. whether you're doing it from a computer or you are trying to do it straight from the phone.

raverpol 2010-03-02 23:39

Re: Spining Globe using Accelerometer or Touch Screen
 
yeah, I have the same question :)

maxximuscool 2010-03-02 23:46

Re: Spining Globe using Accelerometer or Touch Screen
 
awesome work man.. Merci!

metalx1000 2010-03-03 00:04

Re: Spining Globe using Accelerometer or Touch Screen
 
I'm uploading a video now on how to use it.

metalx1000 2010-03-03 00:24

Re: Spining Globe using Accelerometer or Touch Screen
 
Quote:

Originally Posted by radiosw (Post 553210)
looks great but how do i open it ? still learning!

Watch this video:
http://www.youtube.com/watch?v=e1UxTv94VoA

raverpol 2010-03-03 00:50

Re: Spining Globe using Accelerometer or Touch Screen
 
I do that as a root but I have command Premission denied :(

radiosw 2010-03-03 09:36

Re: Spining Globe using Accelerometer or Touch Screen
 
Quote:

Originally Posted by metalx1000 (Post 553263)

Awsome works now you are a star or should that be globe! Thanks for taking the time to explain with the video.


All times are GMT. The time now is 13:04.

vBulletin® Version 3.8.8