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.

Printing internal view of 3D just destroyed my file

Started by adriank, June 03, 2013, 02:14:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Adrian 2.0

I recall this happening to me a few generations back & I thought V22 was better behaved, but I just had to rebuild  this drawing.
The file 'PLAN 3D 3' is what I start with, focal point is centre of the bedroom - I zoomed in to a focal length of 4m so I could see the inside of the room, rendered it phong, shadows on, transparency on then made a Cute PDF with print section (smooth shade).

I tried to zoom back out & got garbage - all the elements that were behind the station point have been scrambled.
This corruption cannot be undone.
The file looks fine until you extend the focal distance so if you unwittingly save the file after print everything gets destroyed - luckily I noticed & closed without saving & only lost half an hour!
The JPG is a low-res version of the PDF which printed up just fine.

Anyone else managed to total their drawing like this?

Rob S


Firstly, I didn't even know you could set a short view distance like you did without distorting the drawing!!!

This used to happen to me mostly when I had imported a drawing from Autocad, which uses inch units, and the view distance was too small for the drawing. 

Resetting the view distance to a much larger value usually straightened things out for me, but that isn't working for me so far in this drawing.

So, I hope someone with a better understanding of this will chime in here.
User since forever

DrollTroll

I can't seem to reproduce the problem, adriank (starting with your unbroken drawing).  I notice that the drawing size for the destroyed drawing is in the thousands of units, while for the unbroken drawing it's only the tens. Did you happen to use the Units command at any time in the broken dcd file?
25 years with DesignCAD

Lar

Quote from: Rob S on June 03, 2013, 07:30:29 AM
Firstly, I didn't even know you could set a short view distance like you did without distorting the drawing!!!
The view distance is 4 and that seems small but the drawing is in meters. I switched to feet and the view distance changed to about 16. That is still small but the drawing itself is small so the distortion is minimized.

There is distortion though: if you look at the image the bed is small compared to the room but if you look at the top view of the pre-print file the room does not appear so huge.

Quote from: DrollTroll on June 03, 2013, 08:00:45 AM
I notice that the drawing size for the destroyed drawing is in the thousands of units, while for the unbroken drawing it's only the tens. Did you happen to use the Units command at any time in the broken dcd file?
DT,

The overall broken file is thousands of units but deep in there is some original sized entities (if you select the bed in the perspective view then zoom out full and change the view to top you will see where the unbroken stuff is. The oversized stuff was actually generated when the file was broken.

I remember this happening a good many versions back. It's like the mechanism that generates the print actually distorts (flattens) the entities to create the print but forgets to put them back to normal. I remember reporting this back then and you fixing it pretty quickly.

In 22 a shaded print gets corrupted - the image is offset almost out of the selected viewing box. This was reported on the forum recently.

Lar

DrollTroll

OK, after fiddling with it for a while I did manage to break the file. Thanks, I'll look into it.
25 years with DesignCAD

Adrian 2.0

Hi Rob,
As a rule of thumb, your distance from the focus of your view is approximately equal to the width of the view window that is not distorted. Anything outside that view window will be increasingly distorted the further away you look, so at a 4m view distance I can see a 4m wide view of the room that is not distorted. This room is about 7m wide so it's starting to stretch out on the sides of the view.
The trouble is that if I move further out (away from the view centre) I move outside the room & look at the outside wall instead.
The distorted 3D you get when importing a DWG would always have a nucleus that is viewable if you zoom in far enough.

The focus of the view is not necessarily the 'view centre' - it is the object you are looking at. If your view centre is say 4m in front of the object then you can theoretically reduce the view distance to 0 & still see the object un distorted.
DCad only lets you zoom in with the decrease view distance down to a value of 1.06 but if you use the 'set viewer points' tool you can set a view distance a lot less than that. I frequently set the view distance 0.1 in front of the viewing point which gets a lot of the walls that I don't want to see out of my way without me having to temporarily delete or hide them and gives me a wider scope to 'pan' left or right without distorting the view.

Adrian

prl

I was wondering if anyone (Lar, Adrian) ever considered the following concept.   I'm strongly thinking Lar has but I'm not sure if I remember him mentioning this or if I came to this myself. 

Anyway your camera position and the point you are looking at can be represented with a small plane at the camera and a perpendicular line from the camera plane to the target point.  Using the camera plane, you slice away everything behind the camera plane.  You then again use the camera plane to set a temporary UCS after the slice.  This will roll/rotate the screen view of the model around perpendicular to the workplane, just as if you are looking through the camera. Obviously this approach uses a duplicate of the model for the express purpose of creating that view.  With the view angle established, you can zoom in/out to crop the model to the screen real estate to your wish.

Not that I tried this with DesignCAD but many programs with section cut controls do sort of thing to the model non-destructively.

Lar

Prl, I may have posted a similar approach many years back, when dcad wasn't able to look between objects (or we users were not hip to the short-viewing-distance trick).

The idea was to write a macro to create animations, where the camera did not move but the model followed a path... at each frame the macro would slice the model at the camera location (so you are able to see inside), save a numbered bitmap, undo the slice, move the model again, and repeat, for the number of frames needed. Simple except for calculating the 'inverse' movements of the model so as to emulate smooth and dramatic camera movements and zooms. This I probably would have done by first drawing a path for the camera to follow, then move the model along it. I would then have to compile the numbered bitmaps into the animation using a video editor.

I never did write that macro, probably because I decided it would be wasted effort since dcad could not (back then) do shadows. transparencies and reflections (still can't do reflections!!).

Lar


Adrian 2.0

Prl,
I've experienced some unfortunate results when I cut some entities- most notably grids - that cause the render (& texture map) to mess up. If a portion of that entity is required in your 'scene' but it extends behind the camera & gets cut you'll get a mess.

I've noticed that even with my short view distance method of getting internal views the entities outside the view don't cast a shadow, so as far as DCad is concerned those entities are truncated. In the image I posted you will see the shadow from the louvre windows stop half way across the floor ..... which leads me into another issue.
Why does glass cast a solid shadow when transparency is turned on?
I'd prefer if it was ignored & cast no shadow - then I wouldn't have to go removing all the glass from the windows to get a realistic shadow map.

Adrian