Math problem

   1548   2   1
User Avatar
Member
143 posts
Joined: March 2014
Offline
Hello,

I have two ortho cameras set up like this:
cam1: resolution=100x100 , screen window size = 16.6x16.6
cam2: resolution=512x512 , screen window size = ? x ?

I have a single sphere with black background that I want to render with each camera. My question is, how should I set up my Screen Window Size in cam2 to relatively reference cam1's resolution such that the output images of the spheres (not including the black background) are the exact same size whenever I change cam1 resolution?

I'm horrible at math so any help would be really great.

Thank you,
Caesar

Attachments:
cam123.PNG (47.4 KB)

User Avatar
Member
143 posts
Joined: March 2014
Offline
Ok for those of you as mathmatically challenged as I…

it's…
(SWS = screen window size)

cam2 SWS = cam1 SWS * (cam 1 resolution/cam 2 resolution)

User Avatar
Member
2042 posts
Joined: Sept. 2015
Offline
Well your cam of 100 to 16.6 screen size is .166.

So with the same ratio 512 becomes 84.992.

Maybe try that for your screen resolution of cam 2.

But I don't know if it would work.

I don't have experience with cameras, but I think the cameras have a focal length setting? I don't know if that would make a difference or not.

Could always just try 84.992 and see what it looks like.
  • Quick Links