<p>I rendered similar images using a Vulkan and an OpenGL ES program. Supposedly the two programs should generate the same result, so I want to test it by comparing the two images. However, the camera settings, the size of the images and so on make it hard to compare images directly. Does anyone have some ideas about this?</p>
<p>Thank you!</p>

CC BY-SA 4.0
2022-05-21T14:05:36.563Z
How different are the camera for this, are the cameras in different positions or is it just the aspect ratio that is different?
pmw1234
CC BY-SA 4.0
2022-05-25T02:06:58.003Z
What is aspect ratio?
Lily
CC BY-SA 4.0
2022-06-07T08:20:54.820Z
so I made sure gl_position and all sorts of position variables are set the same. adjusted mvp matrices and cam pos, and all panned out well.
Lily
<image-comparison>
how to compare two slightly different images rendered by two programs
Lily
# how to compare two slightly different images rendered by two programs

(Asked by: username_0 on 2022-05-20)

I rendered similar images using a Vulkan and an OpenGL ES program. Supposedly the two programs should generate the same result, so I want to test it by comparing the two images. However, the camera settings, the size of the images and so on make it hard to compare images directly. Does anyone have some ideas about this?

Thank you!

**Tags:** image-comparison

> **Comments:**
> **username_1**: How different are the camera for this, are the cameras in different positions or is it just the aspect ratio that is different?  
> **username_0**: What is aspect ratio?  
> **username_0**: so I made sure gl_position and all sorts of position variables are set the same. adjusted mvp matrices and cam pos, and all panned out well.  

---

## 0 answers

