0

I've tried using the translate node to move each image a/2 px left or right, but it cuts off the image.

To illustrate, here's an image: enter image description here

schuelermine
  • 229
  • 2
  • 10

2 Answers2

4

I suggest a different solution:

here's the Compositing setup:

enter image description here

The first node (image node) is an empty image (generate in blender as 100% alpha image) with the full size of your output image (1024x512). When the alpha image is added to the rendered image, the output (file output) is a 1024x512px file.

Add the second scene (again translated in the opposite direction) and you'll have the two renders aligned.

Sanbaldo
  • 3,189
  • 1
  • 9
  • 26
0

This is a bit of a hack and requires you to change a camera setting, but it gets the job done:

Create a new scene and set its output resolution to something with a 2:1 aspect ratio (such as 1024x512, if the original images are 512x512). Add the two inputs as Render Layers.

The issue here is that when you render, the two images will be rendered with the same aspect ratio as the current scene (2:1) instead of the aspect ratio of the scenes they were created in (1:1). To get around this, we have to render the inputs twice as wide as the output results will be (because parts of it get trimmed off), and trim off whatever's left.

Set the cameras to be exactly 1/2 the original focal length in the camera settings in the properties panel. (Ex: if they were the default 50mm before, change them to 25mm).

cameras

(The image shows both the original and new focal lengths, for clarity.)

Rendering these from the new scene will crop off the top and bottom edges when it changes the aspect ratio. Then, in nodes, you can translate them as necessary and combine. The Box Mask node crops the left side of the topmost image so it doesn't overlap with the one next to it.

nodes (Here you can also see that the top and bottom were cropped off, hence why we needed to increase the focal lengths)

Result:

result

Sanbaldo
  • 3,189
  • 1
  • 9
  • 26
TheTrueJard
  • 693
  • 3
  • 11