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.

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.

prl

If you use a Camera lens zoom in SketchUp, here is a summary of the field of view/focal length relationships.  (Many of you know I tend to send DesignCAD models to SketchUp since I prefer its camera and rendering interfaces.)



Yes, that's a DC drawing.

SketchUp is based on a 36 mm image sensor aperature width, a constant. SketchUP has a field of view range from 1° minimum to 120° maximum

FOV            Focal length

1°      2062.595702328479100 mm
35°       57.088706442538367 mm
60°       31.176914536238471 mm
120°      10.392304845413289 mm

To help you see the relationship between field of view and focal length, this movie has some preset scenes. Note the tabs at the top of the SketchUP drawing window.  Those tabs define the Field of View that will be set once I click it.  The movie is animated so keep an eye on the bottom right corner.  There is a focal length dialog box that updates itself and the Field of View is adjusted. 

With the exception of the overview tab, the camera at all times is positioned at the top of the 6' line in the movie.  The camera itself never moves.

A Movie - A typical Camera lens zoom in SketchUp by adjusting the Field of View between 1 to 120 degrees

Reminder: When the movie is playing, if it is going too fast, you can left click in the movie area to start/stop the action.  Also the slider to rewind.

Edit: For you folks that have SketchUP (free or Pro), here is the SketchUP file.  I saved it as version 5 so most anyone should be able to load it.   Remember, click the tabs and the animation is automated for you.

https://dl.dropboxusercontent.com/u/81411430/DesignCAD/20141108/DesignCAD%20zoom%20and%20field%20of%20view%20discussion%20(Nov%202014).skp

Dr PR

prl,

Thanks. That's exactly what I would like to see in DesignCAD for an "architectural" view mode. The "Field of view angle" changes are essentially what you do with a zoom lens to "zoom in" (narrow field of view) or "zoom out" (wide field of view).

Now all you need to be able to do is interactively move the camera position and direction of view. This is equivalent to walking through a building (moving the camera position) while pointing the camera in any direction (not just the direction you are walking).

Personally, I like using cursor keys to fine control camera position - like walking through a building step by step, forward/back and left/right. The mouse/cursor or the mouse wheel can also be used in conjunction with keys (Shift, Ctrl, etc.) to "fly through" a drawing.

I like using the mouse/trackball to rotate the camera left/right around the vertical axis and up/down around the horizontal axis. Note: Left/right and up/down are camera relative to the center of the current camera view - what the user sees.

We also need a way to rotate/spin the camera around the view axis (a line from the camera to infinity through the center of the view). Holding a key (Shift, Ctrl, etc.) or mouse button while moving the mouse/trackball could do this.

****

Note: What CD4 is calling "aperture" is actually the equivalent of the image sensor size in a real camera. This is entirely different from the meaning of "aperture" in cameras.

Phil
DesignCAD user since 1987

samdavo

Quote from: prl on November 08, 2014, 07:11:21 AM
With the exception of the overview tab, the camera at all times is positioned at the top of the 6' line in the movie.  The camera itself never moves.
prl
just an observation re panning and "camera-like behaviour".
I note and take your point that Sketchup seems to behave like a camera (where DCAD does not).  This can be demonstrated by panning in SKU, even with the free version.   i.e. when you pan left in SKU the view changes so that you are looking down the line of the left hand wall;

...  when you pan right, you see more of the outside of this wall, to the point where extent that you are almost viewing normal to it. (well - maybe almost 60 degrees to it?)
But DCAD behaves completely differently. (2 cents). 

PS I am probably using pan left when I should say pan right and vice versa, apologies for any confusion  - meanwhile the garden needs some attention :)

Quote(Many of you know I tend to send DesignCAD models to SketchUp since I prefer its camera and rendering interfaces.)
   (edit)   So prl,
I assume you are saying that this "camera-like behaviour" is good for some things (viewing), but there is still a place for DCAD's viewing / drafting philosophy as well - eg where panning doesn't change your drawing lines, but simply pans a large flat drawing, 3D or otherwise,  "a panel at a time".

In fact I suspect I would have trouble (when drawing a 3D object) if panning changed the view so dramatically.

prl

Quote from: samdavo on November 08, 2014, 03:03:49 PM

   (edit)   So prl,
I assume you are saying that this "camera-like behaviour" is good for some things (viewing), but there is still a place for DCAD's viewing / drafting philosophy as well -

Sure.  For building 3d models, I prefer parallel line projection anyway. Perspective projection requires too many decisions (camera, target etc.).  Don't need those hassles while building something.

samdavo

prl
Sticking with the way SKU pans for a moment ( and I added "shadow" above as you can see)
Undoubtedly a minor point, but in SKU, even the shadows seem to radiate from the same vanishing point, EVEN as you pan.

Stands to reason I guess, i.e. the light source doesn't move as you pan in SKU, although the observer walks left or right compared to the object (room), effectively walking around the front of it in the process.

Other vanishing points still hold true in that process as well.
(2 cents)

samdavo

The other quick comment I notice with your drawing of the coffee shop ...
The target (midheight of central window mullion) is not as high as the 6-feet-eye, i.e. the girl is less than 6 feet -  and hence you are looking down slightly.
And sure enough the lines of the various other mullions are no longer parallel,  i.e. there is vertical taper.

No biggie (and this is what you would expect),  but just that I read on wiki that SKU would (or maybe could ?)  draw "two-point perspective"   - i.e. elementary school perspective drawing - whereby vertical lines remained parallel - refer third jpeg attachment.   Clearly your drawing does not comply with that (and looks the more realistic for it, i.e. like a camera lens - or if you prefer, a very carefully drawn 2-point-perspective, but with rotated axes) (2 cents)   

http://en.wikipedia.org/wiki/Perspective_(graphical)#Renaissance_:_Mathematical_basis

samdavo

Final comment
But this is a real building just opened as part of University of Technology Sydney.
https://www.uts.edu.au/partners-and-community/initiatives/city-campus-master-plan/projects-progress/dr-chau-chak-wing

No need to worry about distorted views lol.   Nor presumably whether the walls are built exactly as planned/intended (?) 
The building has dozens of deliberate distortions;   It is allegedly designed from the inside out - or maybe the architect just reached his fill of having to conform   :) .  A third explanation could have something to do with the fact that the architect is allegedly 85 years old.

QuoteGehry Partners designs from the inside-out, meaning that the design of internal spaces must be developed before design of the building's exterior can start

http://www.vogue.com.au/vogue+living/design/gehrys+chau+chak+wing+building+uts+has+been+completed,34173

prl

Sam, no need to end the discussion, it is just I'm pondering several interesting topics/aspects of DesignCAD, LarCam, cameras, zoom, terminology, interfaces, etc. 

Your observations easily get me going . . . .  so in the background I was wondering if a PAN in perspective projection mode isn't or should it not result in a DC camera orbit.  Remember Phil's rehash of terminology. For perspective projection we do need a target point (some specific place to look at) and then what Phil is saying makes sense.  All the rules about your vision is perpendicular to the screen and the screen is always looking at the view center . . . . yada yada yada.

So in axonometric (parallel) projection mode, a pan is a typical CAD pan.  (There is NO target point or view distance etc.  or to put it differently, everything in the direction of view is a target point and view distance can be any number.)  Example, in a front view in axonometric projection mode, a model can be 10' away or a million miles and you can't tell the difference.

In perspective projection mode, a pan is really a typical CAD orbit, no?  You're tethered to the target point. My figurative zip-line.

That is what I'm pondering (in the background amongst LarCam, PrLarCam, DrPrLarCam, DrPrLarSamCam, DeanVision, RobSemtery, MagiCam, VisionCadTrolls, Beautifully Simple CADThe CAD Guys etc.)  If I left you out, and you want a Trade-mark name, let me know.

samdavo

PS It would be gr8 if DCAD could export in SKU format :)
Gr8 for DCAD users,  and presumably gr8 for IMSI. (2.5 cents)

(edit) PS I would argue that a pan in SKU is not an orbit, just a movement of the eye to left or right, still looking in the same direction

(i.e. east at dawn in this case).  -

but please note that I'm guessing bigtime. Cheers

prl

Quote from: samdavo on November 12, 2014, 11:40:14 AM
(edit) PS I would argue that a pan in SKU is not an orbit, just a movement of the eye to left or right, still looking in the same direction

No, you're absolutely correct.  SKU moves the target position AND so does DesignCAD.  It does a translation. In DesignCAD, the target position in a perspective projection view does NOT always coincide with the view center, line of sight, etc. . . .   Hence folks often encounter the camera looking at nothing.

Lar

Prl,

I disagree with you "camera orbit path" in your diagram being centered on the center of the model.<<and I don't think your last reply - which you posted ahead of me - applies to my argument>>

The orbit path is always centered at the target location (and each window will have its own target location, even if they are all in the same place).

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.

In Cinema 4D this is know as a "zoom offset" but requires special controls of the camera properties (I intentionally hide the controls from sight in my C4D screen capture so they don't generate more questions).

Now, in dcad, wherever we are looking and regardless of where the camera is pointing, when we orbit, the camera's "body" just spins around the target. Its like being on Earth and looking at Mars while Earth spins around the Sun, except imagine our telescopes cannot rotate on their own bases so we cannot keep our sights on Mars as we pass it so it eventually goes out of our frame of view. This is what causes the off-center orbiting.

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. It also centers the "camera clipping cube" on the target so if parts of the model (that you want to see) is invisible (due to being out of the clipping cube) you can create a new target by gravity snapping in the invisible area and where ever the point lands will come into view.

Lar

prl

Quote from: Lar on November 13, 2014, 07:01:00 AM
I disagree with you "camera orbit path" in your diagram being centered on the center of the model.<<and I don't think your last reply - which you posted ahead of me - applies to my argument>>

The graphic is misleading, my fault.  The Model View Center is a point in 3d space that can be anywhere you put it on the model or in space if you want. It does NOT have to be at the center of the model, though it could be but more often than not, isn't.  More confusion for most.

prl

Quote from: Lar on November 13, 2014, 07:01:00 AM
The orbit path is always centered at the target location (and each window will have its own target location, even if they are all in the same place).

That's wrong.  The target location is where the camera is pointing.  The camera orbit location (DesignCAD calls it View Center, a bad name) is a point in 3d space but it isn't necessarily at the center of the model or the center of the view. It can be wherever you put it.



I'll post a movie.

Keep your definitions in mind.  The target position is in the line of sight of the screen (perpendicular into the screen).  In other words, middle of the screen where there is nothing.  Note you can't ever see the target point but it is somewhere on that perpendicular line extending to infinity into the screen at the center of the screen.

View Center is a misnomer.  It is a point in 3d space which isn't necessarily in the middle of the model or the view.  You can put  it anywhere.  The camera will spin about that specific point.

In the movie,

The camera target point is the screen center and it is looking at nothing.

The view center point is at the bottom of the black line on the zip-line tower.  You can see a portion of the model in the lower left screen.

I will spin the camera about the view center (which is that point where the black line hits the green grade).


https://dl.dropboxusercontent.com/u/81411430/DesignCAD/201411014/Target%20position%20versus%20View%20Center.swf

Lar

Quote from: prl on November 13, 2014, 07:40:02 AM
That's wrong.  The target location is where the camera is pointing.
Ok, I guess you are using target in a real world sense and I'm using target in a dcad sense. In the 'set viewer points' command the status bar refers to point-1 as the target, and dcad may refer to it in some places as the 'view center'. This is the point the camera will orbit around whether the camera is looking at it or not.

Let's call it the 'center of view rotation', aka the 'rotation view center', with the freedom to interchange 'rotation' with 'orbit' and leave out the word 'view' once the context is understood.

Lar

prl

Quote from: Lar on November 13, 2014, 08:14:08 AM
Ok, I guess you are using target in a real world sense and I'm using target in a dcad sense.

OK with your definitions.  After using the "set view pointers" command, DesignCAD briefly has it all correct.  Remember the command pulls everything to the middle of the screen.  So target position= the dead center of the screen = rotation view center.  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.