piphoto3D A simple and multiplatform 3D pictures viewer. |
Display your 3D pictures from your Raspberry Pi or other computer using various 3D modes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pictures must be in side-by-side format (either parallel or crossed-eye) full width in jpg or jps files. The application is multiplateform, and will run on Windows, Linux, Raspberry Pi,... It's a command line application with a set of simple parameters to control it. 3D images can be displayed in parallel, crossed-eye, half-format for 3DTV, anaglyph, interlaced and 2D too. The 3D mode can be changed at any time and the stereoscopic window can also be adjsted. Simple slideshows can be used with an index file that will indicate the picture ordre and contain comments for each picture. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/ / + : piphoto3D runs on any computer having a recent Java runtime installed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Installation: Download the "jar" file below and copy it in a folder of your choice. The application will need a Java 6 (or better) Java runtime installed on the computer. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Click here to download piphoto3D v1.5.5 (146 KB) Help file: piphoto3D_usage_en.txt |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Supported 3D modes- Side-by-side: the left and right images of the stereoscopic pair are placed side by side.- Side-by-side ½ width: the left and right images of the stereoscopic pair are placed side by side but are horizontally compressed by half. This mode is compatible with 3D TV HDMI 1.4. - Top-and-bottom ½ height: the left and right images of the stereoscopic pair are placed on top of each other but are vertically compressed by half. This mode is compatible with 3D TV HDMI 1.4. - Anaglyph Red-Cyan: to be used with anaglyph glasses with red-cyan lenses. - Anaglyph Yellow-Blue: to be used with anaglyph glasses with yellow-blue lenses. - Anaglyph Green-Magenta: to be used with anaglyph glasses with green-magenta lenses. - Horizontally interlaced: the two images are interlaced row by row. - Vertically interlaced: the two images are interlaced column by column. - 2D: only one side of the 3D picture is displayed. Note: If you want to display in parallel or crossed-eye mode or if the 3D effect appears to be reversed, press the "X" key on the keyboard. How to startCheck that a Java runtile is available with the "java -version" command:For instance under Windows:
D:\workspace\piphoto3d>java -version or with Linux :
pi@raspberrypi4:~ $ java -version Displaying the 3D images of a folder. java -jar /home/pi/java-pi/piphoto3d.jar -folder=? Note: replace /home/pi/java-pi/ with the path to the folder where the application has been downloaded. The application starts and displays a windows allowing to select the folder where the 3D pictures are located. Select the folder and click the Open button, the first image will be displayed full-screen in half-width side-by-side mode (suitable for 3DTV). To select another 3D mode, press the "M" key. To display the next picture, press the space bar or the right arrow key or click on the right part of the image. To display the pictures in automatic slideshow mode, press the "A" key. To exit the application, press the "Esc" key. Other examples. - Start an automatic slideshow playing all the 3D pictures located in the "/home/pi/Images/3D/" folder: java -jar /home/pi/java-pi/piphoto3d.jar -folder=/home/pi/Images/3D/ -a - Index the 3D pictures located in the "/home/pi/Images/3D/" folder (and its subfolders) and create index files for each folder: java -jar /home/pi/java-pi/piphoto3d.jar -buildalbums=/home/pi/Images/3D/ - Show a menu displaying the available albums found in the "/home/pi/Images/3D/" folder (indexed by the previous step): java -jar /home/pi/java-pi/piphoto3d.jar -albums=/home/pi/Images/3D/ Application parameters
Commands during slideshow
Making picture albumspiphoto3D was written to allow easy viewing of a set of 3D pictures from a Raspberry Pi.Pictures are organised in thematic folders with an index filefor each folder. Using index files gives more control: - The pictures order can be specified by the user, - Information can be added to the pictures: date, location, comment,... It's a XML file named index.xml stored in the images folder.To create an index file: - Start the application specifying a folder of 3D pictures: For instance: java -jar piphoto3d.jar -folder=/home/pi/Images/3D/Paris - Press Ctrl+S, the index file is created in the pictures folder. - Exit the application then restart it asking to use the new index file: For instance: java -jar piphoto3d.jar -index=/home/pi/Images/3D/Paris/index.xml - Add information to the pictures: press the F7 key to open the Edit picture info window. - There we can give the picture a title (or a location), add a comment, date and hour and specify a GPS position. - Do not forget to press Ctrl+S to record the modifications into the index! To handle different images folders: piphoto3D allows to navigate between images folder that have been previously indexed. These folders must be sub-folders of a master folder. The command: java -jar piphoto3d.jar -albums=<master folder> will start the application in albums mode and load the found index files.The application will then display the following menu allowing to select the folder to display: Use the Pg Up / Pg Dn keys to display the different pages of the menu. NotesLimitations- The application can read JPEG files (file extensions: .jpg, .jpe, .jpeg and .jps), PNG files and MPO files. - The depth positioning of comments is not possible in the interlaced modes nor the anaglyph modes. - With older versions of Java, you have to specify how much memory is allocated to the application, if an error message is displayed while loading an image, try to increase the memory using the following parameter: -Xmx300m For instance: java -Xmx300m -jar /home/pi/java-pi/piphoto3d.jar -albums=/home/pi/Images/3D ... Using with a Raspberry Pi Zero This nano computer is very slow (single core processor, few memory)! Going from an image to the next can take several seconds, it is therefore advised to resize beforehand the pictures to the size of the screen. The new Pi Zero V2 is fitted with a 4-core processor and should be a little faster. Using the dual HDMI outputs on the Raspberry Pi 4 The Raspberry Pi 4 is fitted with two HDMI outputs making possible 3D projection with two videoprojectors from this device. Here are the parameters to using in this case: -screen=0,1 -m=0 -w=f Sample script to start the application #!/bin/bash # Sample script for using piphoto3d with a 3DTV # Explanation of the parameters used: # -albums=/home/pi/Images/3D : set album mode and specify the location of the root folder of the 3D images # -v=1 : display messages during the execution of the application # -b=202020 : backfround color # -x : process input images as crossed-eye rather than parallel # -d=10 : in automatic slideshow mode, set the delay between each picture # -t=C : position of the picture comment (here centered, at the bottom) # -m=1 : 3D mode (here half-width side by side) # -z=5 : depth position of the comments # -f=Arial,30 : font to use for the comments # -fm=Arial,28 : font to use for the menu used to select the albums # -menu=6,8 : size of the menu (here 6 columns x 8 rows) java -Xmx300m -jar /home/pi/java-pi/piphoto3d.jar -albums=/home/pi/Images/3D -v=1 -b=202020 -x -d=10 -t=C -m=1 -z=5 -f=Arial,36 -fm=Arial,28 -menu=6,8 Version historyv1.5.5 (2023/03/23) - Minor bug corrections. Added "-p=M" parameter for displaying the date as: "Month Year".v1.5.3 (2020/12/08) - MPO file support. v1.5.1 (2020/06/13) - First public release. |