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 DC's perspective projection (zooms, pans, terminology, views)

Started by prl, November 14, 2014, 01:13:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

I'm hijacking my own thread to further discuss a new revelation to me, thanks to Phil.  DesignCAD pans and zooms in perspective mode are based on a one-time static internal image computation with what you see on the screen being subsets of that overall perspective image projection view.   So in real camera terms, DesignCAD can't pan, or in typical prl CAD wordplay, DesignCAD can't pandle it.


So from that topic, I'll post the discussion.

Lar , this also lends itself to some of that "insane distortion" you and I like. (Well I like it for the wacko renderings I create.)  At the far edges of the internal image, DesignCAD is bending the perspective projection even more than just a typical FOV distortion. 

Quote from: Dr PR on November 13, 2014, 09:09:05 AM
The screen shows all or part of this image. When you zoom in and pan you are just looking at a part of the image that DesignCAD has produced.

Believe it or not folks, I've finally deciphered what Phil means. Phil, you should have posted a picture. So knowing what you're saying, I still don't understand what that image represents in terms of a camera view.  But I think it means DesignCAD can't really do a pan in perspective mode. As you say, it generates one image and pans are nothing more than cropped images.

Of course, a camera doesn't behave this way when you pan and it shouldn't surprise you that in SketchUP, if I pan, I actually translate sideways,  just like you would if you were holding the camera and walking sideways.

A movie - How a perspective pan SHOULD work - shown in SketchUP using a DC model.

A movie - Example of how perspective PANS are WRONG in DesignCAD

Now for you DesignCAD guys so you can see the difference.  Attached is the DesignCAD model and a graphic.


Put yourself (stay) in perspective mode, and use the "set view pointers" command (icon to the right of the UP icon) similar to what I'm doing in the SketchUP movie.  Once you are looking at the left model with the yellow cone head on, start panning to the right.  In DesignCAD, you will NEVER pan to the other model with the red cone because you aren't panning the camera. You are panning the original view where the yellow cone model is still correctly displayed in terms of projection view distortion, FOV, etc. So DesignCAD's perspective views are static.  And in terms of a camera lens, I have no clue how to describe what DesignCAD is doing.  It is interesting though.  Panning and zooming portions of a static camera lens, I guess, sort of, who knows.

Now if you are wondering what SketchUP is doing and what DesignCAD should be doing but isn't, here is a concept movie using DesignCAD only.

A movie - What a Perspective PAN should be using a DesignCAD Camera Object

Dean

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

Dr PR

prl,

The Japanese have a word for it - satori! It's the same idea as the little lighted light bulbs that cartoonists used to use to show that a character finally understands.

Until you started this discussion I don't think I really understood what is happening with pan and zoom, although I do remember similar discussions many years ago. But I have known for a long time that DesignCAD takes a lot of shortcuts for generating the image we see on the screen, and I suspect these shortcuts are the cause of a lot of the little display quirks DesignCAd has always had.

Back in the days of 10 MHz 80286 processors and 2D drawings regenerating the entire image took a relatively long time. Back then the 2D program was entirely screen oriented. The cursor keys moved a set number of pixels and not a specified distance in drawing units. The drawing was a virtual sheet of paper and the screen was a variable sized window (zoom) that you could slide around (pan) to see the entire drawing - and you moved the screen position by pixels, not drawing position.

When 3D was added the program just created a 2D image of the 3D drawing, just like the image of a 2D drawing. Pan and zoom continued to work the same way. This was much faster than trying to regenerate the entire drawing every time you pressed a cursor key or moved the mouse to pan/zoom the screen image. Today, 20 years later it still works the same way.

I posted images and explanations here:

http://forum.designcad.com/index.php?topic=5975.15;topicseen

I'll repeat them here to illustrate what is happening.

"Image geometry" shows the relationship of the View Center, Viewer Position and View Distance. DesignCAD uses these to generate the internal image (outlined in blue) centered on the Viewer Position.

"Internal Image shows the image the computer generates. This is what is initially shown on the screen after a view rotation or View Distance change. The View Center is at the center of the image, as is the Viewer Position.

"Pan and zoom" show what happens after the internal image is created and we pan the screen image or zoom the screen image. In these cases we see only a part of the internal image on the screen, as shown by the black rectangles.

A simple zoom in reduces the part of the internal image displayed on the screen (black rectangle). The View Center and Viewer Position are still in the center of the screen.

Pan and zoom can move what part of the internal image is displayed on the screen (black rectangles) to the side and reduce the visible part of the internal image even more. In these cases the View Center and Viewer Position are no longer at the center of the screen, and may not even be in the part of the image shown on the screen. But the entire original internal image is still there, as shown by the blue rectangle.

Phil
DesignCAD user since 1987

Dr PR

So what does this have to do with the way a camera works? NOTHING!

That's what has frustrated me ever since 3D was introduced. The whole idea of the "View Center" is totally contrary to the way the real world works. Cameras do not have one and only one fixed point that they can be aimed at as you move the camera around.

****

In DesignCAD the view is object oriented - always pointed as a specific spot in the drawing (the View Center). To aim the view somewhere else you have to haul anchor, move the ship somewhere else, and drop anchor again to reset the View Center. That's about as clumsily and user hostile as you can get.

With real world cameras, rather than the view rotating around an object (fixed point, View Center), the view rotates around the camera position (camera oriented). This is what you are calling "panning" the camera.

However, there are two ways of "panning" a real world camera. You can rotate the view, or you can just move the camera sideways without rotating it. DesignCAD can't rotate the view, but the program's panning does emulate side stepping the camera (like having it mounted on the roof of a car pointing perpendicular to the direction of travel).

****

In the real world the view angle (zoom) is independent of the distance between the camera and the object. The focal length of a camera zoom lens can be adjusted (zoomed) to get wider or narrower views without moving the camera. DesignCAD does work this way, more or less.

****

In the real world the perspective depends upon the distance between the viewer/camera and the object being viewed.  DesignCAD works the same way -  you change the View Distance (distance between the camera and the object) to change the perspective angle of the object being viewed.

****

I don't have a problem with DesignCAD's "jeweler's view" (the way it works now) when I am working on a single object. That is where my attention is focused and it is convenient to be able to spin the view around the object without having to constantly rotate the camera step by step. It is a looking from the outside in view. DesignCAD does this right!

However, the "Set View by View Center" function is useless to me because you have to manually execute a separate command to position the View Center. That's why I use vc.d3m - it lets me snap to any point in the drawing and automatically sets the view center before starting to rotate the view.

****

What is missing from DesignCAD is the "tourist's view" or "architects view" that allows us to walk through our drawings and look from the inside out. This is exactly what you have been talking about, and apparently what SketchUp and your other program (C4D?) do. They got it right.

We need to be able to:

1. Rotate the View Direction (line of sight - where the camera is pointed) from the Viewer Position (center of the screen image) totally independent of where the Viewer Position is relative to the drawing (no View Center).

2. Move the Viewer Position (camera) through the drawing totally independent of the position of anything in the drawing. For this mode there is no View Center and the View Distance and View Direction do not change as the Viewer Position moves.

3. Change the View Angle (camera focal length) independent of Viewer Position and object locations. This will not change the perspective - only the zoom level. This will change the sizes of the images of objects relative to the screen size.

The perspective of the view of any object will be the result of the distance between the Viewer Position and the object (in effect every object has a different View Distance).

4. Rotate the view with respect to the Viewer Position - rotate the camera around the line of sight.

Phil
DesignCAD user since 1987

prl

Quote from: Dean on November 14, 2014, 06:26:19 AM
:) how are you Panning?

In DesignCAD using the pan command or you can click the middle mouse button and do it.  Now Dean, you're not going to introduce something even more interesting are you?   8)

prl


Dean

Pan with "fly by" using the camera tool ="Y"
You are Panning in 2d.
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

Quote from: Dean on November 14, 2014, 09:27:55 AM
Pan with "fly by" using the camera tool ="Y"
You are Panning in 2d.

A big smile on my face.  You've introduce a funny concept, panning in 2d in 3d perspective mode, but I understand what you are saying.  Probably better to think of it as static image panning. 

I'll try the fly-by and see if that forces DesignCAD into a dynamic image mode.

prl

Quote from: Dr PR on November 14, 2014, 08:56:45 AM
So what does this have to do with the way a camera works? NOTHING!

Which is probably why having those little camera icons mislead me into thinking the camera (line of sight) was simply pointing the wrong way.  I thought what DesignCAD was looking at was dynamic (live as they say).  Phil's comment about this static image method being some sort of old fashion acceleration trick makes sense (if it still were 1990).

prl

Quote from: Dean on November 14, 2014, 09:27:55 AM
Pan with "fly by" using the camera tool ="Y"

Dean, I'm glad you're around. You see things differently and you're good at letting me know that.  Normally the "Y" does an orbit, but I guess the "fly by" puts DesignCAD into a dynamic perspective mode and moving the camera icon cursor left and right (which initially causes what appears as a model rotation) is a true pan, like SketchUP. In other words, the camera is walking left/right, like it should in that concept movie.

Dean, can you remind me of the various Ctrl, Alt, Shift combinations for "walking" the camera.

Dean

I was just writing this :)
While in "fly by"experiment with holding left click >ctrl+shift or ctrl etc, you'll see but won't see the (always facing you) view clipping panes. A 3 dimensional cube with no sides. Turn off fly by and adjust view distance (with mouse) =Ctrl+shift left click> then pan your 2d way, It will all become clear to you after a while. You can always 2d adjust the viewing cube by standard zooming etc.
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

Quote from: Dean on November 14, 2014, 09:45:10 AM
you'll see but won't see the (always facing you) view clipping panes. A 3 dimensional cube with no sides.

You're turning into the Riddler.  Thanks, I'll experiment and see if I can achieve satori! one more time.

Dean

If I was there and showing you it would take 5 mins! ::)
Remember when i said view distance + zoom = distance between clipping panes. you'll see what I'm talking about when you can replicate what i'm doing. It's just a hand coordination to brain thing ;D I looked and there's nothing at all about this is the help file. Which makes it's a riddle. I really think once you can control this you will mathematically figure out what Dcad is doing.
Perhaps >lets try and get you doing what I am doing.
Take another look at my videos.
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

Dean, look over this movie.  Do I at least have the panning part right?  I'm guessing some of the other key combinations let you "walk" the camera into and out of the direction of view (as you said many posts ago).

A movie - Dean the HERO method of doing a CORRECT DesignCAD perspective PAN


Dean

Yes, keep going, There are many other combinations, don't guess > :) do it.
remember at any point time you can 2d zoom, set view point etc...
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