View Full Version : Spining Globe using Accelerometer or Touch Screen
metalx1000
03-02-2010, 05:55 PM
This is basically the same code as my 3D Cube project (http://www.youtube.com/watch?v=BYfYSQ7dFtc).
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. (http://www.youtube.com/watch?v=SyiQzs9XVec)
And here is the Code. (http://filmsbykris.com/python/download.php?d=3D_globe.tar.gz)
Written in Python with PyGame.
radiosw
03-02-2010, 06:21 PM
looks great but how do i open it ? still learning!
metalx1000
03-02-2010, 06:38 PM
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:
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:
./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
03-02-2010, 06:39 PM
yeah, I have the same question :)
maxximuscool
03-02-2010, 06:46 PM
awesome work man.. Merci!
metalx1000
03-02-2010, 07:04 PM
I'm uploading a video now on how to use it.
metalx1000
03-02-2010, 07:24 PM
looks great but how do i open it ? still learning!
Watch this video:
http://www.youtube.com/watch?v=e1UxTv94VoA
raverpol
03-02-2010, 07:50 PM
I do that as a root but I have command Premission denied :(
radiosw
03-03-2010, 04:36 AM
Watch this video:
http://www.youtube.com/watch?v=e1UxTv94VoA
Awsome works now you are a star or should that be globe! Thanks for taking the time to explain with the video.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.