PhotoSynthToolkit HOW TO Guide:
-------------------------------

- Create a photosynth with your set of .jpg files (not jpeg).
- Get your photosynth url: http://photosynth.net/view.aspx?cid=6eac0501-c379-4beb-8758-6a7ec75e0304 (for example)
- Launch "1 - Donwload Synth.wsf" whith this URL. 
	-> Answer yes to download thumbs if you want to see your Synth with the Ogre3D Synth Viewer
	-> Choose the folder were your synth will be saved
- Copy your set of .jpg files to the distort folder created in your synth folder
	-> if you don't have the original jpeg you can:
		-> copy the thumbs instead
		-> use the HD picture downloader ("5 - Download HD Synth Picture.wsf")
- Launch "3 - Prepare for PMVS2.wsf"
	-> let all options by default or use the PMVS2 documentation for more information (link just bellow)
- Launch "launch_pmvs_(YOUR_PROJECT_NAME).bat"
	-> Warning: this could be long and take a lof of memory (16Go)
	
PhotoSynthViewer keyboard shorcut:
----------------------------------

O          : increase point cloud size
P          : decrease point cloud size
H          : increase camera FOV
J          : decrease camera FOV
space      : toggle mouse look
enter      : toggle sparse/dense point cloud (if binary mesh.ply exist in pmvs\models folder) otherwise toggle between sparse/no point cloud
+ (numpad) : go to next picture
- (numpad) : go to previous picture
PageUp     : up
PageDown   : down

Use WASD or Right/Left/Up/Down to move.
Clicking on a picture move the camera to the picture position and orientation
	
For Advanced user:
------------------

PMVS2 documentation: http://grail.cs.washington.edu/software/pmvs/documentation.html

You can speed-up consecutive PMVS2 launch using "4 - Create visibility file.wsf":
- First run a quick reconstruction using thumbs at level 0
- Then Launch "4 - Create visibility file.wsf" to generate a vis.dat file
- Then replace the thumbs in distort folder by your HD picture and launch "3 - Prepare for PMVS2.wsf"
- Now it should have created a pmvs_options.txt with useVisData 1 -> should be faster (26min -> 20min on my dataset)

Take a look at bin folder:
- it contains ply files with your cameras positions and orientations
- it contains cameras_max.ms a 3DS Max script that allow to project camera on a mesh (see http://blog.neonascent.net/archives/cameraexport-photosynth-to-camera-projection-in-3ds-max/ for more information)
- it contains cameras_xsi.vbs an XSI script that allow to project camera on a mesh:
	- import an OBJ mesh
	- select the mesh
	- open cameras_xsi.vbs with the XSI script editor and run

View your dense point cloud in the Ogre3D viewer:
- Open YOUR_PROJECT\pmvs\pmvs_options.txt.ply with MeshLab
- Save it to YOUR_PROJECT\pmvs\mesh.ply in binary format and with color and normal checked.

Author:
-------

Created by Henri Astre (http://www.visual-experiments.com)
Check for new version at: http://www.visual-experiments.com/demos/photosynthtoolkit/