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.

Dr PR

Lar,

In real life there is a significant difference between moving the camera closer to an object and zooming in. It's called "foreshortening."

When you just walk closer to an object the camera's field of view doesn't change - it has the same view angles, but what is in the view does change. As you approach a distant object you pass by things that were in the view and leave them behind you. For example, a shrub that was originally in front of you will move out of the field of view when you walk past it.

When you stand in one place and zoom in you reduce the view angles (the telephoto effect), narrowing the field of view. But the same objects remain in front of the camera. For example, the shrub will still be in the picture, but less and less will be visible as you zoom farther in toward an object that is off to one side of the shrub. Zoom in far enough and the shrub may move off to the side out of the picture. It is a lot like cropping an ordinary image.

There is one other effect of taking pictures with a long focal length lens (zoom lens or fixed). If you are looking at distant objects they all appear crammed together, or closer to each other than they really are. This is foreshortening. It is an optical illusion. Because everything in the line of sight is much farther away from the camera than the objects are separated from each other, they appear to be projected on a plane and your mind interprets them to be close together. In fact they may be relatively far apart.

****

For walk-throughs we do need to be able to stand in one spot and widen/narrow the field of view, like using a camera's zoom lens.

DesignCAD's "View Distance" doesn't do this. It changes the camera's position.

Again, we have two distinctly different viewing requirements, and DesignCAD has only one:

1. The jeweler's view. This is what DesignCAD has now - the view is always centered upon a single point/object. We spin the camera around that object to view it from all sides. This is perfect for creating single objects, which is what we normally do in mechanical CAD. The "zoom" function moves the camera in and out. This is great when you never want to be looking from the inside out.

I'm glad DesignCAD works this way when I am working on relatively small objects or parts of a larger project.

2. The tourist's view. This is the walk-around and walk-through viewing that is needed for architectural drawings (ships, terrain, etc.) and when you want to stand inside your design and look out. This is where we need a "camera's" view, where the camera doesn't move when the image is zoomed or the view is rotated.

Like tourists we need to be able to take the camera with us when we move, but we don't want to have to change the camera's settings in order to move our position! That's silly! So as we move the camera's zoom level doesn't change (unless the user changes it).

This gives us three options:

A. Stand still and zoom in on a distant object (constant view distance and changing view angles).
B. Walk toward a distant object but don't change the zoom level (changing view distance and constant view angles).
C. Walk toward a distant object and change the zoom level (changing distance and changing view angles).

****

I haven't played many computer games - DesignCAD is my main computer recreation. However, as I mentioned, I have used MIcrosoft's Flight Simulator. I install it on all new computers and use if for a few hours while flying around the San Francisco Bay area. Turning on all options and maximum realism (maximum scenery details, cars and trucks moving along highways, boats and ships in the bay, clouds, wind, rain/snow, other air traffic, aircraft mechanical problems, functioning instruments, etc.) and then flying a small Cessna low and slow down Market Street or lengthwise through the Golden Gate Bridge really gives a computer a run for it's money. It really tests the CPU's processing power and the video card's functioning. It is enough to bring most computers to their knees, with frame refreshes as slow as several seconds between images. My current computer is the only one I have ever had that will do all of this, but the frame rate does drop (10-15 fps) so there is a slight noticeable jerkiness when flying low over Market Street. Maybe someday I will get a computer that does it all as smoothly as a movie.

As I said, Flight Simulator does have a complete set of camera movement (aircraft motion) controls and a full set of camera (pilot's view) rotation and zoom controls. These are independent of each other and can all be done with a keyboard and a mouse/trackball, but a joystick and engine control quadrant make it a lot easier.

Phil
DesignCAD user since 1987

prl

Quote from: Lar on November 05, 2014, 07:53:14 AM
In Cinema 4D zooming-in and moving closer has the same result

That's odd and appears wrong.  I would have thought C4D would be more correct than SketchUP.  Can you do a moving-in in C4D while also seeing the focal length (field of view) of your camera?  It shouldn't be changing as you do  (unless you tell it to).  SketchUP with the exception of mixing terminology seems to be more accurate in terms of what really happens.  The C4D field of view adjustment is the camera zoom discussed above.


Duh, I just re-read your quote.  Of course.  You're saying the same thing twice.  Example: in C4D blue is blue. In your case you're saying In Cinena 4D CAD zooming-in and Camera moving closer has the same result.  C4D does a CAD zoom and comparing it to a Camera move which are equivalent terms for the same action.


Maybe Phil can take a real camera to one of Seattle's finest coffee shops and reproduce my SketchUp movies?  I'll buy the coffee.

prl

Quote from: Dr PR on November 05, 2014, 08:56:06 AM
a significant difference between moving the camera closer to an object and zooming in. It's called "foreshortening."

Thanks Phil.  Another term I learned.  Lar, look at the mullions/storefront in the graphic in reply 9, specifically the vertical on the left side of the cup.  Cups are the same size but not much else. That apparently is called "foreshortening". 

Edit:
Realizing that Lar got tripped up with the terminology, time to invent two general universal terms dispensing with CAD or Camera people.

In all people speak:

clzoom - camera lens zoom
cpzoom - camera position zoom

DesignCAD,  C4D and SketchUp normally do cpzooms but can (less frequently) do clzooms.  Now that is much simpler, no?


Lar

Just responding to this at the moment (later I'll have time to read through Phil post):
Quote from: prl on November 05, 2014, 10:34:14 AM
Quote from: Lar on November 05, 2014, 07:53:14 AM
In Cinema 4D zooming-in and moving closer has the same result
... You're saying the same thing twice.  Example: in C4D blue is blue. In your case you're saying In Cinena 4D CAD zooming-in and Camera moving closer has the same result.  C4D does a CAD zoom and comparing it to a Camera move which are equivalent terms for the same action.
Well, actually the thing I'm saying in Prl's quote is incorrect, but I am not saying the same thing twice. To explain: in C4D cameras are objects that you can select. Say you have 2 windows open, one of a top view showing the entire model (win-1) and the other showing the what a particular camera is seeing (win-2). In win-1 you can see the camera object and select it.  A graphic representation of the camera's field of view is visible and you can drag its borders in and out to make the field of view bigger or smaller. While doing this you will see the scenery in win-1 get narrower (zoom-in) and get wider (zoom-out). This is equivalent to manipulating the zoom control on a real life camcorder - the scenery in the view-finder zooms in/out but the camera remains stationary. Now, in win-1 you can also click on the camera and move it around. While doing this you will see the scenery in win-2 changing to match how you move the camera. To move it in a straight line closer to its subject you can click its Z-axis stem and drag it closer, or further away. In my mind this is not 'zooming', it is 'moving closer'.

Now, what I was saying in my earlier post is that doing both of the actions would result in the same level of perspective in win-2. However, I am wrong. Moving the camera closer results in more perspective (aka distortion) than dragging the field of view smaller. This would match Prl's SketchUp images (compare the amounts of perspective-slash-distortion the cup and saucer has in the two images in his post). I just read the bit in Phil's post explaining foreshortening but that is not what I'm discussing here (ie, things viewed from further away appear crammed closer together than when viewed from a near distance). What I'm discussing is the amount of distortion an image would contain when captured using the 2 methods I discuss above (which is what I thought Prl was attempting to display with the images in post #9). In computer renderings the amount of perspective is important for displaying the exact artistic feel you are trying to put across to the viewer, from an isometric or 2d 'flat' view that totally lacks perspective, to a natural perspective, to a more dramatic perspective, to a dcad type insane perspective. In real life, a political party can take advantage of this visual effect to make it appear in the news like his political rally was better attended than it actually was (by the use of various lens).

Try this: use you cell phone to snap a picture of whatever is in front of you right now. Now, without moving away, look at the picture on the camera then look out at the natural scenery. The objects in the photo probably looks further away than what you are seeing with your natural eye sight, even though it is what you just took a picture of at that very same location.

One of the things I like about dcad is the ability to manipulate the amount of perspective a given view can have, without changing the zoom level. Compare the 2 attached images... they are both the same view of the same model but the difference in perspective results in totally different artistic sensations.

Lar
ps, I also added a screen from c4d showing the different cameras and their view windows (note the camera distances in each window)...

Dr PR

Lar,

Good examples.

I agree that the perspective control in CAD is a good thing. As your examples show, you can get these perspective effects by moving a real camera closer/farther away and adjusting the lens focal length (zoom). However, in the real world there are significant limits on what you can do to achieve a really wide field of view (spherical distortion, chromatic distortion, etc.). There are 180 degree fish eye lenses but they are extremely expensive and are not part of a zoom lens.

In CAD it is possible to get the fish eye lens effect without all the problems. But DesignCAD's method of moving the camera position closer to get a wider view angle when we change the view distance leads to some really strange results. One, it can position the camera inside the thing you are trying to see and the result is that the closest parts of the object disappear. This is what you call "insane perspective." The problem is that you are trying to do "tourists" views with a "jeweler's loupe."

DesignCAD just doesn't have the proper viewing tools to get the architectural perspective. CD4 does.

Phil
DesignCAD user since 1987

prl

Quote from: Lar on November 05, 2014, 03:44:43 PM
ps, I also added a screen from c4d showing the different cameras and their view windows (note the camera distances in each window)...

Lar, thanks. It will take me a bit to digest what you've said, but that is a good thing.  I like the information you have posted.  Opens my eyes to more things.

An initial question,

1.  In C4D, specifically your graphic with the settings, are the focal length input dialog and field of view dialog linked?  If you change the one, will it adjust the other?  They should always be proportionally related.  In other words, the focal length of 31.777 degrees only corresponds to field of view of 60 degrees.  Can't have 31.777 and field of view of 10.577 degrees.

Also, read this quote of yours and tell me if I have corrected it properly using my new invented terms.

QuoteOne of the things I like about dcad is the ability to manipulate the amount of perspective (aka clzoom) a given view can have, without changing the cpzoom level.

Terminology reminder:
clzoom - camera lens zoom - camera position stationary with zoom achieved by camera lens optics, aka fov, focal length adjustments, etc.
cpzoom - camera position zoom - camera position is moving (typically with clzoom held constant but one could do both at the same time in some programs).

prl

Lar, I agree that DesignCAD can do some very interesting "insane perspective" things.  That was what I was playing with during the winta last year.  Putting DesignCAD's camera (cpzoom) between the mirror (a plane) at the bottom of the bottle and the book (a solid) on top of the bottle.  All that with texture wrapping, reflections, and of course the insane perspective depth buttons (clzoom).

And yes, that is DCAD, not SU or any photoshop tricks


prl

And since I'm again updating and flogging this topic including definitions, what I'm going for at this point with Lar, Phil, SketchUp, C4D, and DesignCAD is trying to see if either C4D and DesignCAD have added quirks (call them features whether intended or accidental) in addition to the two new terms.

In other words, have they invented some new optics that only exists in CAD?

clzoom
cpzoom

In a bit I'll make a quick DC model with rectangle box on the ground with a hipped roof, similar to what Lar has shown in his graphic, and position a line with camera location looking at a specific point on the model.  If you guys want to play,  we can then all compare, DesignCAD, SketchUP, and C4D.  It will let us "see" and maybe learn something about all of them and whether or not we have added visual/rendering capabilities besides clzoom and cpzoom.

Lar

...only have time to answer one question at the moment...
Quote from: prl on November 06, 2014, 04:45:57 AM
... are the focal length input dialog and field of view dialog linked?  If you change the one, will it adjust the other?  They should always be proportionally related.
You are right. Changing either of these will change the other and not the aperture width. However, if you change the aperture width it will change the field of view and not the focal length.

Quote from: prl on November 06, 2014, 04:45:57 AM
Also, read this quote of yours and tell me if I have corrected it properly using my new invented terms.

QuoteOne of the things I like about dcad is the ability to manipulate the amount of perspective (aka clzoom) a given view can have, without changing the cpzoom level.

Terminology reminder:
clzoom - camera lens zoom - camera position stationary with zoom achieved by camera lens optics, aka fov, focal length adjustments, etc.
cpzoom - camera position zoom - camera position is moving (typically with clzoom held constant but one could do both at the same time in some programs).
I'm not sure it relates because I'm talking about perspective/distortion and not zoom, even though dcad refers to what controls it as 'view (ie, camera) distance'. I think it maybe should be referred to as 'lens type' or 'perspective factor' instead of 'view distance' since manipulating it seems to change only the amount of perspective and not the zoom. If the zoom happened we would not be complaining about that insane perspective, as I put it earlier. Remember, when you get the insane perspective you can simply zoom in and the perspective regains its sanity(**). Try it, you'll see.

Lar
(**) Well, here's a prime example of doing the right thing without understanding why (like a toddler sticking out his hands to regain balance without understanding the reasons behind his actions). Thank you, Prl, for introducing this topic, which led me to an understanding of what's behind dcad's insane distortion and why my 'just zoom-in' fix works...

prl

Quote from: Lar on November 06, 2014, 06:02:50 AM
I'm not sure it relates because I'm talking about perspective/distortion and not zoom

Lar, I know I'm beating this to death, but in camera terms,  perspective/distortion is zoom (what I'm calling clzoom).  Trying to determine if DCAD and C4D are doing additional optic effects in addition to clzoom and cpzoom.

Basically, for anything we see on the screen, the camera is positioned at some real location, and the camera lens has some focal length, say 35mm or whatever depending on the insane distortion.  Those two values, (camera position and camera lens focal length, aka perspective, aka insane distortion) should let us see all the weird things we can generate.  But as we know, DesignCAD has some quirks (features) so I'm going to get to some sort of comparison experiment going to see if we have more than these two parameters.

Edit: A few posts down, Lar showed me that C4D introduces a third parameter,  aperture, meaning lens size.

Lar

More importantly, Prl, I'll leave you in charge of writing the macro that allows the user to manually set points for the 'set viewer points' command, followed by the macro zooming in on the target point at an appropriate level.

Have fun...

Lar (...where's that 'devil' smiley when you need it...)

prl

Quote from: Lar on November 06, 2014, 06:02:50 AM
However, if you change the aperture width it will change the field of view and not the focal length.

Now back to Phil.  I feel like a science detective.  If you change the size of the aperture, is that equivalent of unscrewing the current lens and putting on a bigger or smaller lens (same camera position, same camera focal length, but bigger or smaller lens)?  Looks like C4D is letting you change the lens size which is a lens scaling parameter.  This is scary, that is what Rob was talking about.

Dean

Prl,
What about "Space" = Distance in time > what defines the "limits" the space we see? don't you think there should be more :)"Focus" on this?
This video was created using the 'walk through animation tools"  https://www.dropbox.com/s/fjfu7cm8vtkbyis/Over%20Easy.wmv?dl=0

The" walk through tools" and the 'edit user defined view" window create the "space' to view objects.
The"lens" is just a tool to distort the view.

DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

prl

Hi Dean,

At this point, I'm chewing on static views.  So far, anything we see on the screen is a function of 3 variables.

1.  Camera Position
2.  Camera lens focal length (aka camera zoom, perspective, insane distortion)
3.  Camera lens size (aperture) - not something SketchUP has, and not sure about DesignCAD.

Dean

True, but
In the real world space is infinite and we adjust to whatever it is we're looking at..
In Cad, there must be a defined (calculated) space, correct, Sku and most other 3d programs that have a perspective view mode calculate the two 1)Space and 2) view) Dcad doesn't do this automatically when using the mouse. Dcad needs the "space' defined prior to creating a view, correct?
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit