Difference between revisions of "PriMol"

From Technologia Incognita
Jump to: navigation, search
m
m
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Project
 
{{Project
|ProjectParticipants=User:Dreamer
+
|ProjectSkills=coding, UI design
|ProjectSkills=coding and UI development
+
|ProjectStatus=Dormant
|ProjectStatus=Active
 
 
|ProjectNiche=Software
 
|ProjectNiche=Software
|ProjectPurpose=Fun
+
|ProjectPurpose=Education
 
}}
 
}}
This project will focus on controlling the [http://www.pymol.org/ pymol] UI using kinect gestures.
+
This project focuses on controlling the [http://www.pymol.org/ Pymol] UI using [http://www.primesense.com/ Primesense] technology.
 +
 
 +
== Source Code ==
 +
You can grab the latest commit from [https://github.com/dromer/PriMol github]
 +
 
 +
== Software Used ==
 +
* [http://openkinect.org libfreenect] (library for accessing the Microsoft Kinect USB camera)
 +
* [http://openni.org/ OpenNI] (Natural Interface library that interprets the kinect data)
 +
* [https://github.com/jmendeth/PyOpenNI PyOpenNI] (python bindings for OpenNI)
 +
* [http://www.pymol.org/ pymol] (molecular viewer with python scripting)
 +
 
 +
Make sure to use the unstable branch of OpenNI.
 +
 
 +
== Usage ==
 +
Make sure your kinect is working. Try running freenect-glview to see if the kinect can fully see you.
 +
 
 +
Start pymol, load a molecule of your choosing and set the view as you like.
 +
 
 +
Run the script inside pymol ( '''pymol> run pymolkinect.py''' ) and calibrate with the 'Psi' position. Which looks something like this:
 +
 
 +
| o | 
 +
  \|/ 
 +
  | 
 +
  / \ 
 +
  | | 
 +
 
 +
When the calibration is done you can turn the molecule along the z and y axis by moving your hands.
 +
 
 +
Moving your hands towards/away from each other will zoom out or in.
 +
 
 +
== Todo ==
 +
* <del>Zoom</del>
 +
* Clean exit
 +
* More functions and switch between them
 +
* Better integration with Pymol
 +
 
 +
== Notes ==
 +
<gallery widths=350px heights=280px>
 +
File:Primol-notes.jpg|Some notes taken to refresh math-skills
 +
</gallery>

Latest revision as of 18:18, 19 November 2012

Projects
Participants
Skills coding, UI design
Status Dormant
Niche Software
Purpose Education

This project focuses on controlling the Pymol UI using Primesense technology.

Source Code

You can grab the latest commit from github

Software Used

  • libfreenect (library for accessing the Microsoft Kinect USB camera)
  • OpenNI (Natural Interface library that interprets the kinect data)
  • PyOpenNI (python bindings for OpenNI)
  • pymol (molecular viewer with python scripting)

Make sure to use the unstable branch of OpenNI.

Usage

Make sure your kinect is working. Try running freenect-glview to see if the kinect can fully see you.

Start pymol, load a molecule of your choosing and set the view as you like.

Run the script inside pymol ( pymol> run pymolkinect.py ) and calibrate with the 'Psi' position. Which looks something like this:

| o |  
 \|/  
  |  
 / \  
 | |  

When the calibration is done you can turn the molecule along the z and y axis by moving your hands.

Moving your hands towards/away from each other will zoom out or in.

Todo

  • Zoom
  • Clean exit
  • More functions and switch between them
  • Better integration with Pymol

Notes