Exporting DC models to SketchUp for perspective viewing

Started by prl, November 08, 2014, 07:11:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lar

Now create a movie where the 'rotation/orbiting center' is not visible in the window and orbit using the 'Y' command. It will still orbit around the orbiting center even though the center is not visible in the window.

*****************************************
Quote from: prl on November 13, 2014, 08:12:11 AM
Darn, what I should have done is before ending the movie, use the vc.d3m command and you would see the camera fix itself plus the model being re-centered at the middle of the screen.

Quote from: Lar on November 13, 2014, 07:01:00 AM
The fix for this is simple enough: use the 'set viewer points' to either create a new target, relocate the old target (set only the first point, of course)... or slide the camera back to where the target was in sight. When you use the command it brings the target to the center of the window.

**************************************************************
Quote from: prl on November 13, 2014, 08:18:06 AM
Then the user does something and they can become disconnected.  The target point is still there but it has moved away from the rotation view center. 

Quote from: Lar on November 13, 2014, 07:01:00 AM
However, what we are looking at in any window can be anywhere perpendicular to the 'camera-to-target-line' (ie, the camera can't angle away from the target, just slide). We can pan or slide (via scroll bars) away from the target, zoom to anywhere on or away from the model, wheel scroll in or out on the center of the window, regardless of where the target is.

prl

Quote from: Lar on November 13, 2014, 08:24:12 AM
Now create a movie where the 'rotation/orbiting center' is not visible in the window and orbit using the 'Y'

OK, I'll be Steven Spielberg. But for now, here is how the vc.d3m fixes the problem.  It reconnects the rotation view center and the target position.

https://dl.dropboxusercontent.com/u/81411430/DesignCAD/201411014/Vc%20fixes%20rotation%20view%20center%20and%20target%20position.swf
By the way, how and why are you guys using the vc.d3m if you don't get what it is doing?

prl

Quote from: Lar on November 13, 2014, 08:24:12 AM
Now create a movie where the 'rotation/orbiting center' is not visible in the window and orbit using the 'Y' command. It will still orbit around the orbiting center even though the center is not visible in the window.

Are you asking a question?  Yes, it will orbit off-screen.

https://dl.dropboxusercontent.com/u/81411430/DesignCAD/201411014/Using%20Y.swf

Dr PR

I agree with what prl says in reply #18. But you are really confusing the issue for anyone who comes into these discussions late by not using the terms that are in the Reference Manual, regardless of whether you think they are good terms or not. What is important is to use terms that others will understand, and not just you.

However, part of the problem here is that you are ignoring why DesignCAD does what it does and what the terms really mean.

"Viewer Position" is the DesignCAD term for where the screen is relative to the drawing.

"View Center" is where DesignCAD is looking (from the Viewer Position) when it creates the image that we see.

"View Distance" is the distance from the View Center to the Viewer Position.

"View Direction" is the angle of a line from the View Center to the Viewer Position.

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. But the View Center and Viewer Position for the entire image do not change until you do something (rotate the view around the View Center or change the View Distance).

Zooming and panning are like using a magnifying lens to look at a newspaper. When you do this the entire newspaper page is still there, but you only see part of it. The View Direction does not change, just your "magnifier" position.

****

There are two things going on - the program generates a view using the current View Center, Viewer Position and View Distance. Then we have the zoom and pan tools that allow us to inspect parts of this view.

We really have a "Screen Center" (essentially the camera position for creating the screen image) for what we are looking at and the View Direction. We change the Screen Center when we pan, and we change the magnification in the View Direction when we zoom. The View Center and Viewer Position can move off screen when you pan and zoom, but they are still what the program will use if you regenerate the image. They don't change with pan and zoom.

This is how DesignCAD works now, and it is horrible for trying to create architectural walk throughs.

****

I love vc.d3m because it automatically changes the View Center and then puts me into the view rotation about the new view center (Set View About View Center). The thing I want to look at doesn't move off screen when the view rotates. In my opinion this is the way the Set View function should have worked in the first place.

****

Now, instead of beating a dead horse and creating endless meaningless terms for the condition of the dead horse, why not start thinking about how a walk through viewer should work and encourage DT and company to implement one after they finish with the Red SDK modifications?

Phil
DesignCAD user since 1987

prl

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.

But I can easily fix DesignCAD's perspective pan defect.  The code is simple.

Dr PR

prl,

Right! And this is confusing, as we all have seen. There is the program's "view" of the entire drawing and there is what part of that view the program shows us on the screen - and they aren't always the same.

While the program always has a View Center and a Viewer Position for generating new images we can move the screen image around using pan and zoom so what we see on the screen is just a part of the whole image the program has generated.

Here are some pictures to illustrate.

"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

prl

Phil, I like it.  DesignCAD perspective pans are merely moving cropped zooms looking at portions of one original image.

I wish to continue this revelation (to me, since you understood it already) in a separate topic.   So please add a copy of your post #20 there.

New topic - Understanding DesignCAD's perspective projection (zooms, pans, terminology, views)

samdavo

well FWIW, I find it real interesting that
a) DCAD is ideal for drawing something, and
b) SKU is ideal for taking accurate photos thereof