I've tried using the translate node to move each image a/2 px left or right, but it cuts off the image.
2 Answers
I suggest a different solution:
here's the Compositing setup:
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.
- 3,189
- 1
- 9
- 26
-
1This approach is much better than my answer. Will the Composite output also stretch to the dimensions of the generated image, or does that only work for file outputs? – TheTrueJard Apr 09 '20 at 23:52
-
1
-
-
image node, new, than follow the screenshot:
https://i.imgur.com/J4FG4Uq.png
– Sanbaldo Apr 10 '20 at 01:32
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).

(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.
(Here you can also see that the top and bottom were cropped off, hence why we needed to increase the focal lengths)
Result:

- 3,189
- 1
- 9
- 26
- 693
- 3
- 11


a, and you are trying to composite them side-by-side into one image of size2abya, is that correct? – TheTrueJard Apr 09 '20 at 22:41