2.12 Encoding images for viewing via lenticular screen
3DMasterKit software allows to prepare images for viewing through the lenticular screen.
To create this kind of images do the following:
- Create a new project or open an existing one;
- Add a multi-view sequence of frames to the project. Sort frames in the list so that they are located in the order of shooting from left to right;
Fig. 2.12.1. Navigator window. The sequence of frames
- By means of the context menu which opens by the right-clicking set the leftmost frame of the series as the Left frame and the rightmost one as the Right frame. Perform alignment of the Left frame with the Right one by a chosen object, which will be located at the zero parallax plane. Then execute the Edit >> Automove menu command. As the result, all the in between frames will be aligned. After that, it is necessary to select all the rest frames in turn (make them Active), in order to make the final vertical and horizontal adjustment as well as zero parallax point adjustment, if it is necessary;
- If it is necessary to use only some images of the uploaded series (not all of them), for example, in order to decrease parallax of a scene, you can select a necessary sequence of frames by marking the outermost frames of the sequence as Left and Right ones;
- Crop images the way you like using Crop rect;
- Switch to the Lenticular tab in the Navigator window. Set the parameters of the lenticular material and print size then click Generate;
- The generated (interlaced) image can be either printed or saved to a file.
Useful tip: The program has a feature of saving to a file simultaneously with generating. It is convenient to use this feature when creating lenticular images of large sizes. The To file option allows you to significantly speed up the generating process. Besides, if there is not enough RAM to display the lenticular image on the screen, you can still create it with the help of the option of direct encoding to a file. The image is generated either to a Photoshop .psd file (with the support of the CMYK color model) or to the Windows bitmap .bmp format. Files with the image size of more than 30 000 x 30 000 pixels or with the size of more than 2Gb are saved in the Photoshop .psb or BigTIFF (.tif) formats intended for large documents. For more details see section 3.1 Working with a project – Encoding to file
The project can be saved as an .mtp file. All the changed settings will be saved in the project.
Fig. 2.12.2. Lenticular tab of the Navigator window (photos made by Andrezej Pędowski).
Encoding parameters
The Width and Height parameters allow to specify the image size (in millimeters) you want to use for printing. When you change the size, the image proportions are retained. You can change proportions by cropping the image using Crop rect (Frames tab).
The Resolution parameter defines a resolution of an encoded image in ppi (pixels per inch). In most cases it is recommended to set the resolution equal to a resolution of a printer you use in ppi. Note, that printing resolutions are indicated in dpi (dots per inch). Values, which are specified by printer manufacturers, can be up to 5440 dpi and more. However, it is necessary to distinguish dpi resolution from ppi resolution. When processing in the program, a digital image resolution is measured in ppi. When an image is printed, every pixel is represented by several color dots. That’s why the printing resolution in dpi is higher than digital image resolution in ppi. At the same time, printer driver processes images with the resolution defined in ppi. For Epson printers this resolution usually is 720 ppi, for Canon printer - 600 ppi. Use the Preview mode or the Pitch test dialog to find out printing resolution in ppi.
Before printing an image, the program by the request of the printer driver sets the image to the resolution (in ppi) which the driver is capable to process. So if you create an image for printing, you are advised to use the printer resolution in ppi. It would save both generation time and required memory size.
Note: The Resolution parameter has a direct influence on information transmission from the source frames sequence to the encoded image. When specifying resolution, you should take into account that the higher the value of this parameter the larger the encoded image will be (in bytes) and the longer it will take to encode it. On the other hand, small values set for this parameter will cause to detriment of image quality.
The minimal number of source frames can be calculated in the following way:
Nmin = Res/Pitch
Where Nmin is the minimal number of frames, which is needed to get satisfactory 3D effect and Pitch is a pitch of a lens measured in lenses per inch (lpi). For example, if the resolution equals 720 ppi and the pitch is 60 lpi (Pitch=60), then Nmin is 12. So it is better to use at least 12 source images to create 3D in this case.
Image encoding can be performed for a lenticular screen with either horizontal or vertical lenses orientation. The direction of lenses is set in the Horizontal/Vertical option. You should set vertical direction of lens for stereo images (in respect to the horizon line). Dynamic images (flip, morph, etc.) can have any lens direction; however, most typically horizontal lenses orientation is used. The Pitch parameter defines the width of the lens base. This value is specified in lpi (lenses per inch). You can select the value from the drop-down list or type it using the keyboard.
3DMasterKit Professional edition allows encoding an image part by part. It may be useful when you have to print a large format image. For more details see section Canvas and image cropping.
Useful tip: Sometimes when lenticular screen is imposed on printed image the color moire effect occurs (periodical stripes running over the image). This effect appears due to the interference of the lenticular lens with the color dots of image. The effect occurs when using printers with regular method of color dot formation. To reduce the moire effect, sometimes it is useful to rotate the image before printing. Rotation angle is defined in the following way: you must apply a lenticular screen onto the printed image and rotate until the moire disappears. This angle can be measured with protractor or using mathematical formulas (arcsin, arctg etc.). The rotation of the image to the appropriate angle during printing should prevent color moire effect.
Rotate with the Rotate dialog.
Menu command: Edit >> Transform >> Rotate Precise...
Hot keys: Ctrl+Alt+R
Toolbar button: .
Attention: To get a high quality lenticular image you have to perform a pitch test prior to encoding to correct the encoding pitch.
Picture layout
You can use additional settings for the encoded image: Registration marks and Crop marks. The picture layout is created to demonstrate in the preview mode how these parameters are applied. To open the Picture Layout window press the Layout button in the Lenticular tab. The dialog with the picture layout parameters will be shown (see Fig. 2.12.3):
Fig. 2.12.3. Picture layout dialog
When enabling the Registration marks option in the Registration marks tab you can set the frame width measured in lenses (i.e. the width of 1 lens corresponds to a 1-stripe interval of the tuning frame). In the Registration marks structure group you can choose one of the pre-installed modes for flip and 3D images, or the manual mode, where you can set the number of colored lines. You can also set the color for each line under the lens, for that - choose the required color in the palette and left-click on the required line in the Preview area (or use the right click when hovering on the line).
Note: To quickly color all the lines with the chosen color - hover on the rightmost or leftmost line, press and hold the left mouse button, then pass the cursor towards another utmost line and release the left mouse button when the cursor hovers on the required line.
The Dynamic marks parameter adds the area of dynamic marks to the upper and lower parts of the frame in the middle of its width, which helps to align the printed image under the lenticular lens. When the image is positioned correctly, the mark in the lower part of the area will be located right under the mark from the upper part of the area.
By checking the Crop marks checkbox in the Crop marks tab you can set the length of the crop marks (in mm/inches) with the maximal value of 10mm/0,4 inches. If you check the Bleed parameter, the image will stand proud of the expected cropping size by the set value. The maximal value of this parameter is 5 mm/0,2 inches. If this parameter is checked, the crop marks are set according to the picture size specified in the encoding parameters. The Outline frame parameter adds an outline black frame with the width of 0,1 mm (or 0,004 inch) to the resulting image.
By checking "Fit registration marks to the picture size" you can include the tuning frame with registration marks to the picture size set for printing. In this case the set picture size (width and height) will correspond to the picture width and height together with the tuning frame.
Note: If the above mentioned parameter is checked, the picture bleed will start from the edge of the tuning frame.
In the Layout view area you can see the way the layout will look like with the current settings of the registration marks, crop marks and outline frame. In the left lower part of the window you can find the image size (in mm/inches and pixels), current overall size (with the width of the tuning frame and the crop marks), as well as the output file size when you generate the image to a file. Below you can see the image generated with the use of all the above mentioned encoding parameters:
Fig. 2.12.4. Registration marks and crop marks for the encoded image
How to find the proper lenticular pitch
To get a high quality lenticular image, the pitch of the lenticular material has to precisely match the width and step of encoded stripes in the interlaced image.
To identify the precise encoding pitch it is necessary to perform a pitch test prior to the image generation. The pitch test is needed for every combination of lenticular lens, printer, paper and printer settings.
Here's the video demonstrating the printing pitch test for several lenticular sheets with different LPI:
Triaxes 3DMasterKit Pitch test video tutorial
A fragment of the pitch test is shown in the picture (fig. 2.12.5). The test represents a set of stripes, each of which contains coded lines which have their own pitch different from the neighboring stripe by the value of the Correction step. To find out the necessary value of pitch correction, you should print the test using the printer and paper on which you are going to print the encoded image.
Fig. 2.12.5. Lenticular pitch-test
To generate the pitch test, you have to select Project >> Pitch test... in the main menu or switch to the Lenticular tab of the Navigator window and press Pitch test.... After that, you will see the Pitch test dialog as it is shown in the Fig. 2.12.6. You can specify the necessary parameters of the test page in this dialog.
Fig. 2.12.6. Pitch test generation dialog
The value of the tested pitch is set in the Pitch field and is specified in lenses per inch (lpi).
The distance between lines in each stripe can be specified in the Test Step field. As a rule, at first the step value of 0.1 is tested, the stripe which renders switching between background colors more precisely and sharply is kept in mind. After that a refining pitch test is performed with the step of 0.01 lpi.
Use the Resolution field to specify the printer resolution (in ppi). It is recommended to enter the resolution which will be used to encode the lenticular image.
Besides, you can set the stripe length and width, the quantity of stripes and the distance between them, as well as direction (horizontal or vertical), printer resolution and the color of the background and lines constituting the stripes.
The Frame checkbox allows the lenticular screen to be applied correctly to the printed pitch test. A pixel-wide frame is placed around the pitch test, which allows it to be aligned with the lenticular screen appropriately. To perform this, apply the lens to the pitch test in such a way so that the black frame is visible at a certain angle throughout one lens along the full length.
The Control Lines option adds triple lines in the middle, on the left and on the right edge perpendicularly to the pitch stripes. It helps to align lenticular over the pitch test paper.
Using Place title over the test strips option pitch test strips will take up the entire length of the sheet and title will be placed over the test strips in the header area. Also a pitch number value will be placed over the test strips and to the right of the center of the sheet.
Click Select printer to choose one of the installed printers in the system. The Printer name and its resolution (pixels per inch) will appear above the button.
By clicking To file... you can save the generated pitch test image into a file.
The File size field will show the generated file size (raster data) or a prompt error message will appear if there's some input error:
Fig. 2.12.7. File size field in the Pitch test generation dialog
The Pitch test generates in four modes: Color A4, Simple Black/White, Thin, and Custom.
Color A4 - three colored lines (red, green, dark blue) with white line after each colored line.
Simple Black/White mode generates two lines with a 1:1 aspect ratio for every lens. On default one line is black, another one is white.
Thin mode generates N lines with the size of 1:N size, where N is determined by the following correlation: (Resolution) / (Pitch). On default the first line is black, the others are white. This handy mode enables to determine the real printer resolution, as well as the visibility of a separate frame.
Custom mode allows to control the number of lines in a stripe.
You can set the color by double left-clicking or right-clicking on the line image, or choose the required color in the palette and left-click on the line. You can also change the color of all lines or a group of lines by selecting them with the mouse.
You can type the number of lines directly in the Lines number field or change the value by 1 unit up or down using the corresponding arrows.
The stripes on the test sheet are numbered, and there is a specified line-repetition interval for each stripe (analog of the lenticular pitch).
To find the best pitch for lenticular encoding you have to:
1) apply the lenticular material to the test sheet (with the smooth side) so that the strokes of test stripes match the lenses;
2) look at the lenticular image so that the view direction is perpendicular to the lens orientation, view the image from the distance optimal for image observation (30-50 cm for images with the width of 10-30 cm, 1 m – for large-width interior design items);
3) by altering the angle of observation (moving forward and backward in respect to the lenticular image) identify the code stripe which changes its color simultaneously along its full length. Use the pitch period of this stripe when encoding the image - enter the pitch value into the Pitch field (lpi).
А |
Б |
Fig. 2.12.8. |
For more information read this guide: Pitch-test.