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.

Bitmaps

Started by SciGraphics, October 08, 2007, 12:38:06 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

SciGraphics

I truly wish the dreaded "jumping bitmap when zooming" disorder could be fixed. I do almost all of my work from bitmaps and it is most aggravating to be forced to zoom in by at least a power of three in order to have things remain lined up.

thnx in advance, Jim A.

edgar

Quote from: SciGraphics on October 08, 2007, 12:38:06 PM
I truly wish the dreaded "jumping bitmap when zooming" disorder could be fixed.

Hi Jim!

I have seen other comments on this topic over the years. How would you like the behaviour changed? Before we convince DCad to change something we have to make sure we are not asking to break something which is currently working! Could you post a short description of how DCad implements the insertion of a bitmap currently then describe the problem you currently experience and exactly what experience would better suit you.

My personal thoughts run toward "why would anyone try to stick a bitmap (which is pixel oriented) into a cad drawing which is dimension oriented?" I can see pasting a bitmap into the surface of an object and telling DCad how to stretch/shrink said bitmap to fix the width and height of the object (if it was a picture being pasted on the face of a cube, for instance). I can even imagine asking DCad to do a rough job of zooming in and out on said face doing a small amount of pixel morphing to accomplish a "reasonable interpolation" of the visual result.
-Ed

Dr PR

I understand Jim's problem. I have often inserted a bitmap image of a scanned blueprint into a DesignCAD drawing so I can use it as a pattern. I then draw over the bitmap to generate a vector version of the bitmap. This is useful for reproducing complex shapes that cannot be dimensioned, like lines drawn with french curves.

The problem has two parts. First, as you zoom in and out the pixels in the bitmap get larger and smaller, but the vector lines do not (if they are zero width). Since there are no "handles" on the pixels, DesignCAD has no way to keep the pixels aligned with the vector tracing. When you are zoomed way out it appears that the vector lines are aligned with the pixels, but when you zoom in and the pixels become large the thin vector line just passes somewhere close to the large square pixels.

This would be useable except that the display routines in DesignCAD don't always scale the bitmap and vector images the same on the screen. Zoom in a bit and the vector line might be to the left of a line of pixels. Zoom in more and the line might be to the right. If you are trying to make an accurate trace the only way you can do it is to keep the same zoom magnification for the entire drawing.

The second problem occurs if you try to load two or more bitmaps into a designCAD file. Bitmaps do not always load at the same scale (pixels per unit drawing length). For example, say you load a bitmap into DesignCAD. Then zoom out and load the same bitmap again. The two bitmap images are not the same size, even though they came from the same file! This is a major problem if you need to load a lot of bitmaps that are parts of the same drawing. For example, I once loaded 24 bitmaps that were partial scans of the same large blueprint (I couldn't scan the entire 3' x 8' drawing into one file).

The way to solve this scaling problem is to always start at the same zoom level. Since DesignCAD has no way to let you set the zoom level (it is drawing relative) you need to place a reference in the drawing before you import any bitmaps. I usually draw a long line across the drawing. I disable all other layers and use View/Fit to Window (CTRL W) to zoom out so the line spans the screen. Then I import a bitmap image. After zooming in and out while positioning the bitmap I repeat the process to get back to the same drawing relative scale before importing the next bitmap. This actually works quite nicely.

I think the bitmap problem dates back to Prodesign's strange infatuation with the image on the screen. The original mid 80s program did not have any drawing relative scales. Everything was pixel relative to the image on the screen. Users were trying to create 2D models in the computer's memory, but DesignCAD was making pictures on the screen. All cursor movement was screen relative, and when you changed the zoom the distance moved by the cursor remained relative to the pixels on the screen. Zoom in and a cursor step (pixel) might be a thousandth of an inch. Zoom out and it (pixel) might be a mile. In effect the default scale changed every time you zoomed in and out. It drove me nuts (yes, again, it is DesignCAD's fault). Bitmaps still work that way. To the programmer the task is creating a picture on the screen in pixel dimensions, which has no relationship to drawing scales. To the user it is a job of creating a drawing of a real object, with real world dimensions.

It took a lot of letters from users, and some telephone calls to the fellow at American Small Business Machines to finally explain the error of DesignCAD's ways. Sorry that I can't remember the original designer's name. The pixel oriented legacy still remains 20 years later in DesignCAD V18.0. Open Options/Cursor and look at the Cursor Step section. You can still select Relative to Screen.

****

A potential fix would be for DesignCAD to ask for a relationship between pixels in the bitmap and units in the drawing. For example, you might specify that a pixel in the bit map has a dimension of 1/600 inch. Then images that were scanned at 600 dpi would import into DesignCAD at the same scale that they were scanned, 600 dots = 1 inch.

Another way would be for DesignCAD to allow specification of pixels per drawing unit relative to an imported image. You could import one bitmap image and set the "bitmap units" relative to some feature of the bitmap, say a distance scale on a map, just as you can currently set drawing units. DesignCAD would then calculate the pixels per drawing unit. Subsequent imported images could be placed into the drawing at that pixel/unit scale so all imported bitmaps would be at the same scale - each pixel would be the same size.

Finally, the "jitter" between vector and bitmap images could be reduced by scaling the bitmap image relative to the vector drawing during zoom in/out. A corner of the bitmap image could be used as the reference point into the vector drawing, and the bitmap could be scaled using the pixels/unit scale described above the same way the vector drawing is scaled to produce the image on the screen.

Hey, it's just a programing problem, right?
DesignCAD user since 1987