mcjStereoMountTool

Introduction

This script lets you mount pairs of monoscopic renders as a Stereoscopic image viewable in any  VR Headset or phone-based viewers


Installation

The zip package is found at the bottom of this page

Unzip it in your Daz Studio Content Folder

ex:  C:\Users\username\Documents\DAZ 3D\My Library

( the daz format content folders contain a folder named scripts )

Once unzipped you will find this script in your Content Library

in scripts/mCasual/

History

2023-02-03 - First release

Mounting One Stereo Image in Side-By-Side format

In our example our two renders don't need cropping ,  so we set the "Crop Left and Right" slider at 0.

Our images are 1920x1440  ( must have the same dimensions ).  If we don't want/need to resize the left/right images we check the "No Resize" checkbox.  This will give us a 3840x1440 stereo image


If we want a more standard format like 2560x1440 then we adjust the "Width" and "Height" sliders and un-check the  "No Resize" checkbox


Next in the "Orientation" section we select the "Side-by-Side" format.  The left image will be placed in the left-side of the stereo image. The "Cross-Eyed" format has the right image on the left side.


We can optionally have text pasted at the top and bottom of the 2 images.   If we don't want the texts to "block" the images, we could set the dimensions of the output image to 2560 x 1520,  and have bottom and top margins of 30 pixels.

Time to add our monoscopic images

Use The "Add One" button below the "Images List Left" to select your left-eye render, Then the "Add One" button below the "Images List Right" to select your right-eye render.

We're ready !

Use the "Preview One Stereo image" to see what the stereoscopic image will look like.

Use the "Mount Stereo Image(s)" Button to produce the stereo montage image.

You then have to supply a location filename and image type ( .png, .jpg, .bmp )

the resulting image filename will have a zero-padded number appended to it ex "mystereo00000.png"

Mounting asequence of Stereo Images

Use the "Add All in Folder" buttons, select one of your many images in their respective folder

The folder containing the left images must contain only the left images

and the folder containing the right images must contain only the right images 

else you wont be able to mount them. Also avoid creating your stereo images in those folders.

We're ready !

Use the "Preview One Stereo image" to see what your stereoscopic images will look like.

Use the "Mount Stereo Image(s)" Button to produce the stereo montage images.

You have to supply a location filename and image type ( .png, .jpg, .bmp )

the resulting image filename will have a zero-padded number appended to it

 ex "mystereo00000.png, mystereo00001.png ... mystereo01799.png, "


What is cropping about

When you rendered your two monoscopic images, if your left eye camera pointed straight ahead  and was 7 cm to the left of the right-eye camera which was also pointed straight ahead, then on the left side of the left-eye render there will be a part of the scene that the right-eye camera cant see and on the right side of the right-eye render there will be a part of the scene that the left-eye camera cant see. This will look confusing when you view the stereoscopic image.

Programs like StereoPhotoMaker let you slide the images sideways so that the nearest objects  in the scene coincide. But here we'll only used cropping.

In the image below you can see 2 renders that were shot this way.

To get the value of the cropping needed,  you will need to open the image in a paint application.

Find the nearest object in the scene, in this case the red glowing line on the floor.

Layer one image on top of the other and measure the crop margin needed ( see below )

Or just eyeball it. Note that without cropping most of the stereoscopic image will look A-OK.


How to avoid cropping


Instead of pointing both cameras straight-ahead, rotate the left camera slightly to the right and the right camera slightly to the left.

The goal is to get both camera's closest objects coincide. In the image below, i placed a  a ping-pong ball if front on the 2 cameras and the nearest object was the back of Peachie's chair. Then i pointed both cameras at the pin-pong ball.

As you can see below the ping pong ball is at the center of the 2 camera view fields. So no cropping will be needed, we'll set the "Crop left-right" slider at 0

With a 35mm camera lens, the rotation needed is only 1.5 degrees.

I wanted precision so I parented a copy of the ping pong ball to each camera, then set the parented ball's  x-translation to 0, so it's now in the middle of the camera view-field. Then rotated the camera until its parented ball coincided with the non-parented ball.

Rendering and Mounting 360 degrees spherical-lens renders

This is only available for the iRay Renderer renders.

if you go in the camera settings, you will find in the "Lens" section the settings to render spherical renders

so set the "lens type" to "Spherical"

then ( something i only started using recently ) 

set the "Lens Stereo Offset" slider to -35 mm

the iray render using this camera will be the left-eye render

set the "Lens Stereo Offset" slider to +35 mm

the iray render using this camera will be the left-eye render

This mimics your eyes with a 70mm separation.

Maybe smaller values like +/- 30 are preferable.

Renders need to be of high resolution, use dimensions like 3072x1536, 4096x2048, 5120x2560 or 6144x3072 ( 2x1 ratio )

I saw some VR 360 stereoscopic images packed to fit into HD 16x9  frames, 

the Left eye render occupies the upper half and the right eye render occupies the lower half.

Mounting VR360 Stereoscopic Images

The only difference here is that you Select the "Top-Down""Orientation" section