DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Understanding Zoom, Field of View, focal length, cameras and CAD

Started by prl, November 02, 2014, 01:39:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

Quote from: Dr PR on November 07, 2014, 09:38:11 PM
You asked something about blue lines crossing that makes no sense to me.

Phil, I'll weed things out.  Referring to the graphic Lar made, what is the point where the blue lines cross called?  (The camera lens, your eyes balls, viewer position, you tell me. ?? I'm looking for a term I can refer to consistently that we all understand)




Lar, referring to your graphic above.  May I ask you snap three graphics of your example building.  One using aw = 36, fl = 31.117,  aw = 72, fl=31.117, and aw=72, fl=62.354.  Seeing is understanding.


Phil,

Quote from: Dr PR on November 07, 2014, 09:38:11 PM
I'm sorry I even responded about how real cameras work. It is mostly irrelevant and has lead the discussion away from how virtual cameras should work.

Since CAD is borrowing camera terms, I felt is useful to know which terms are accurately used and which terms are borrowed but represent a different function.

Don't worry about Dean and Sam.  They're smokin something different. 

To everyone else

I'm trying to demonstrate that we have three different zooms.

1.  Camera lens zoom   (camera position is stationary, field of view is changing)
2.  Camera position zoom (camera position is moving, field of view is constant)
3.  Model Display zoom (camera position is stationary, field of view is constant, the "amount of the world we see", aka "display area" is changing).

Lar

Quote from: prl on November 08, 2014, 12:11:11 AM
Lar, referring to your graphic above.  May I ask you snap three graphics of your example building.  One using aw = 36, fl = 31.117,  aw = 72, fl=31.117, and aw=72, fl=62.354.  Seeing is understanding.
I won't have time until late tomorrow to do the pics but I'm sure that your 1st and 3rd requests are the same as the window with the red circle in my C4D screen capture. You 2nd request would simply show more of the scenery, since the field of view is wider. The amount of perspective/distortion should be the same but it will be more pronounced at the edges of the window.

Concerning CAD focusing, you can say it doesn't exist because it has no opposite, ie, there is no such thing as blurring in CAD. When you see blurring in 3D renderings it is a post-rendering process. After the image is rendered the software blurs the parts of the image that is outside of the focus area. This area and the amount of blurring can be set arbitrarily by the user.

Lar

Dr PR

One thing that I think I saw in one of the "movies" posted here was things disappearing from the background.

One thing to keep in mind is that in DesignCAD the "screen position" (where the image is displayed) is the "View Distance" from the "View Center." The "View Center" is a predefined XYZ coordinate somewhere within or around the drawing objects. The "View Distance" is defined in the "View Toolbox."

****

As has been discussed many times, if the "View Distance" in the "View Toolbox" is too short parts of the drawing will disappear. This happens if the distance from "View Center" as defined by the "View Distance" is shorter than the distance from the view center to (part of) an object.

In effect, there is a surface at the screen position ("View Distance" from the "View Center") that cuts off any part of an object outside that surface - in the direction of view from the "View Center" toward the screen. You see this in Dean's "target 0" movie in post #56 in this thread.

****

I have never before seen this view clipping in the background (in the opposite direction from the "View Center" into the screen.) You see this in Dean's "fly by" movie in post #37. Again, I have no idea what he is doing in this movie. I'd guess he is changing the "View Distance" because we also see the near objects disappearing as the view moves into the chess set.

But why do the more distant objects disappear?

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on November 08, 2014, 12:31:23 PM
One thing that I think I saw in one of the "movies" posted here was things disappearing from the background.

Yes, DesignCAD is a bit wacko. When you hit the perspective depth buttons, it computes some sort of field of view angle based on camera position and target position.  SketchUP only uses the second point to define the "direction of view", not the FOV.

Then complicating matters is the view center and the clipping planes you are seeing, in essence a 3d camera viewing box.  The viewing box moves and 3d objects start vanishing.  The viewing box has a near camera side and a far camera side.  Only things between the near and far sides can be seen.

The DesignCAD Theory of Parallel Visibility topic was tackling this viewing box for anoxometric projection views.  But it does also exist for perspective projection views.  Never got that far with the investigation.

Dr PR

prl,

You lost me again. What "perspective depth buttons?" I've never heard of them and they aren't in the Reference Manual index.

****

One thing we have to keep in mind about DesignCAD's viewing functions - they do not in any way mimic the way we see things in the real world. So what may seem to be wacko is actually quite reasonable once you get you head screwed on right - if you can!

In DesignCAD's "jeweler's view" of the world the entire virtual universe is centered at the "View Center" and we are aliens orbiting outside and looking in through the a window in our spaceship. The screen image is that window.

If you think of it that way we should never have a "View Distance" less than the largest the dimension of the entire drawing and never far enough away that things will disappear. It is only when we violate these assumptions that the display gets wacky.

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on November 08, 2014, 02:53:26 PM
You lost me again. What "perspective depth buttons?" I've never heard of them and they aren't in the Reference Manual index.

Circled in blue.

Dr PR

DesignCAD user since 1987

samdavo

I'm guessing this is a case of
"You say tomato, and Dan Quayle says potatoe" (2 cents)
anon

Lar

My response below was originally posted in the wrong topic (the last section of reply #8 , http://forum.designcad.com/index.php?topic=5977.msg42172#msg42172)

Quote from: prl on November 08, 2014, 12:11:11 AM
Lar, referring to your graphic above.  May I ask you snap three graphics of your example building.  One using aw = 36, fl = 31.117,  aw = 72, fl=31.117, and aw=72, fl=62.354.  Seeing is understanding.
Image attached... Note that both settings of the 3rd camera are doubles of the 1st, so the field of view is the same and thus the view in their respective windows are the same. The 2nd camera's aw is double the 1st but its fl is unchanged, resulting in a wider fov angle, thus we see more of the scenery. essentially zooming out.
Lar

prl

Thanks Lar, I've reordered my responses so thing follow normally.


The perspective projection (what Lar is calling the distortion look), it's about focal length, not FOV.   My realization based on Lar's C4D graphic above.

The perspective distortion we see of a model is the function of  focal length only.  Keep the same focal length and the perspective distortion is always the same regardless of image sensor size.

Lar's RED and GREEN views of the model seem to bear out the Model Display zoom, the "amount of the world we see" changes, but the perspective distortion stays the same.  Lar, tell me if you agree or disagree.  I'm coming to this merely looking at the building lines in your graphic.

So I've adjusted my wording in what I was trying to demonstrate.

1.  Camera lens zoom   (camera position is stationary, focal length is changing)
2.  Camera position zoom (camera position is moving, focal length is constant)
3.  Model Display zoom (camera position is stationary, focal length is constant, the "amount of the world we see", aka "display area" is changing).

prl

Phil, Lar, do you agree with the following?  If not please correct mathematically (in other words, keep it short  ;))

Variable definitions with parameter domains and units:

fl - focal length, mm

fov - field of view, degrees

iss - image sensor size, mm

pv - perspective view.  A view. The visual appearance of the object being looked at, displayed with perspective projection (as opposed to axonometric, also called parallel projection or paraline projection).

pvis - perspective view image size, mm2.  A graphic area. The amount of the pv mapped onto the image sensor surface (a film plate, a CAD screen, etc.)


Function Dependencies:
pv,  a function of (fl)
pvis, a function of (fl, iss)
fov, a function of (fl, iss)

Lar

Quote from: prl on November 10, 2014, 04:31:17 AM
Lar's RED and GREEN views of the model seem to bear out the Model Display zoom, the "amount of the world we see" changes, but the perspective distortion stays the same.  Lar, tell me if you agree or disagree.
My own observations, from my first C4D screen capture> the two bottom images, tells me that perspective distortion depends on the amount of the field of view. The wider the fov angle the more distortion. In that screen capture the green cam has a narrower fov and the perspective is natural. However, the blue cam (wider fov angle but closer, so same "zoom amount" as the green cam) has a more artistic (ie, unnatural) perspective (ie, distortion). As described in the image from the C4D manual, you can narrow the fov until all perspective is lost and the projection becomes parallel.

*********************************
Quote from: prl on November 10, 2014, 04:31:17 AM
1.  Camera lens zoom   (camera position is stationary, focal length is changing)
If the focal length changes then so does the field of view. A narrower field of view = zoom in.

Quote from: prl on November 10, 2014, 04:31:17 AM
2.  Camera position zoom (camera position is moving, focal length is constant)
What you call a zoom here is just the result of being closer to the subject. Being closer means a narrower cross section of the field of view falls on the the subject, so the subject takes up more of the image.

Quote from: prl on November 10, 2014, 04:31:17 AM
3.  Model Display zoom (camera position is stationary, focal length is constant, the "amount of the world we see", aka "display area" is changing).
This is only possible if the aperture width is increased, and it results in the field of view also increasing (while the focal length remains unchanged). Result: more of the scenery becomes visible, ie, zoom out.

****************
Quote from: prl on November 10, 2014, 04:31:17 AM
Function Dependencies:
pv,  a function of (fl)
pvis, a function of (fl, iss)
fov, a function of (fl, iss)

These dependencies I'll have to digest further. The definitions before them I agree with, except rather than "pv" I would say "pa" for "perspective amount", meaning the amount of artistic perspective the user desires in an image.

****************************
Just to throw something else into the pot: I recall when using my Super-8 movie camera back in the early 80's (before we had automatic focusing), the proper way to focus a subject was to zoom in (by rotating the zooming ring) as much as possible on the subject, focus the image, then zoom out to the desired starting zoom for the filming. This way, as you film, you are free to zoom in and out on the subject without losing focus. I always found this strange because I previously thought that once you change the zoom you would have to change the focus. Using this technique did make filming a lot easier, though. This fact has no bearing on CAD, however, since a CAD image is always in focus (blurring is a post-processing effect, ie, the software blurs the desired portions of the image after the image is originally rendered).

Lar

prl

Update: I was wrong.  Lar debunked this thinking in reply 76

Quote from: Lar on November 10, 2014, 08:27:04 AM
My own observations, from my first C4D screen capture> the two bottom images, tells me that perspective distortion depends on the amount of the field of view.

Based on your graphic, the red and green have the same perspective, right?  The amount of building or world we see is different.  Based on what you're showing me, FOV does change but it is a function of focal length and image sensor width (C4D aperture width).  Hence FOV isn't the principal variable, it is a by-product computation.  The result of focal length and image sensor width. (Think about it.  Can't measure the angle if you don't have both).

Regarding my variable pv.  Not really a variable. It is a pure unbounded perspective "view".  Not cropped in any way.  We don't have that in real life (our eyes or cameras), but CAD lets us do it conceptually but it can't be implemented (computing an infinite world).

And hang in there, I think I can prove that for any given perspective view on the screen, it can be achieved with two different cameras using different positions and focal lengths (think different lenses)  based on camera lens zoom, camera position zoom, and display zoom.

prl

Update:  I was wrong.  Lar debunked all this in reply 76

Lar, here is what I'm building up to.  Should be able to get to a yes/or no conclusion soon. I could be wrong, but I'll let the math take me there.

Say we use your C4D model.  Pretend that you have a zip-line fastened to the building corner and that zip-line has no sag (hence a perfect line) and it is attached to some tower or mountain behind you. Our camera(s) can only travel along that zip-line and the view direction is always with the zip-line.  (You are in a zip-line chair/harness with a camera).

Zip-line experiment 1:
Are there two or more positions along the zip-line where you could snap a photo with two different camera lenses (meaning different focal lengths) that would give you the same perspective projection.

Answer should be no.  For the same perspective projection, regardless of how much or little of the world you see, you need the same focal length.

Zip-line experiment 2:
Using two cameras that have lenses with the same focal length setting, but different aperture width (say a bigger round lenses), are there two locations along the zip line where you can snap a photo resulting in the same perspective projection AND the same amount of the world shown in the pictures?

In other words, the same identical picture. 

I believe the answer is yes.

prl

Update:  I was wrong.  Lar debunked this thinking in reply 76

Here are the zip-line experiment 2 results visually:

edit:

Lar, I've attached the DC model if you wish to export it to C4D and try it on your end. 

Just so you know, you're the only one, or actually C4D is the only program that can verify if what I'm doing with SketchUP is correct.  Remember SketchUp has a constant Image Sensor size (I can't change it), so I've had to simulate the 72 mm Image Sensor size by half-sizing the model.  I think this is equivalent to leaving the model alone and doubling the aperture width in C4D (leaving the focal length constant) and moving the camera half-way down the zip line, but you never know until you see it.  Seeing it (in C4D) is believing it or debunking it.