News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Bitmap rotation in Win7

Started by Blood, June 05, 2013, 01:56:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Blood

Hi

We have been struggling with another issue using DCAD on a Win7 machine. This particular PC is very powerful - Dell Precision 64bit, 8GB RAM, Xeon quad core, dedicated graphics card.

When drag-rotating a bitmap in DesignCad V.22 the rotation is incredibly slow and the image itself disappears leaving just an outline which stutters through the rotation increments.

It actually makes the program unusuable and the person working on this has made enquiries about an alternative program.

Does anyone have any tips to share that may help me troubleshoot/fix this issue, please? It is strange because we don't see this behaviour when using V17 on XP PC's with no graphics cards, poor CPU's etc.

This Precision was bought specifically for this type of work. The guy who uses it does a lot of GIS work with very large datasets (millions of points) in MapInfo which breezes along with no issues whatsoever.

Thanks!
Using DCAD V17 and V22 in 2D mode on a Windows domain.

DrollTroll

What's the drag increment set to? Try setting it to 1 or less, and that may smooth out the rotation.
How large is the image (pixels)? If it's a huge image, DesignCAD may well struggle with the amount of memory involved.
25 years with DesignCAD

SciGraphics

DT: If I'm using drag mode (which is mostly) I set the increment at "0". Jim A.

Dr PR

Blood,

DesignCAD seems to have a file size limit that is unrelated to the amount of RAM or free hard disk space. The largest file I have been able to open was about 350 Mbytes. However, when I tried to edit it the program crashed.

I have edited a 275 Mbyte file successfully.

You can edit >300 Mbyte files OK until you generate a shaded image (this uses up RAM space to store the shading information). After this the program will crash if you try to edit the file again. You can close the file and reopen it in wireframe and work on it more. This is how I generated the 350 Mbyte file.

From this I guess that the largest file size that you can actually work with is around 300 Mbytes. When you save a backup file it will be twice the size as the working file - apparently it saves the working file and a backup copy. So a 300 Mbyte file saves as a 600 Myte backup. My guess is that this is what DesignCAD keeps in its working memory, plus shading information, program variables, etc. If all of this adds up to more than about a gigabyte the program crashes.

This is all guesses. DT has never actually told us what the largest file size is that DesignCAD will work with.

****

DesignCAD also does strange things to bitmap images. I ran some tests with various bitmap file sizes. I used the same drawing and resized it in Photoshop from 1.4 Gbytes to 96 Mbytes. Above 267 Mbytes the image was corrupted when the file was saved and then reopened.

            DCAD
Image  File                               Image       Image    Image
Mbytes Mbytes   Pixels             Rotate      Saved     Corrupted
1460    0.033     57590x9096  No             No
384      7.7         28800x4549  Yes           Yes         Yes
322      6.2         26400x4170  Yes           Yes         Yes
267      5.5         24000x3791  Yes           Yes         No
96        3.3         14400x2275  Yes           Yes         No

Thse results seem to be similar with what I have seen with actual drawing sizes. DesignCAD compresses the bitmap size drastically - about 50:1.

Details

I created 1.5 Gbyte file in Photoshop and saved it in TIFF format. Then I imported it into V22.1 DesignCAD (File/Image/Load Image File), dragging and setting a point for the image. It did import, apparently OK - the bitmap was visible. I then saved the files, and that appeared to work OK. However, Windows shows the DesignCAD file size to be 33 Kbytes!

The DesignCAD "Help/Drawing Info" reported the file size as 53" x 14.5" but Photoshop said it was 96" x 15" at 600 dpi. Windows reported the TIFF file to be 1.46 Gbytes and 57590x9096 pixels at 600 dpi and 24 bit color depth. That comes out to 96" x 15.2" which agrees with Photoshop.

I zoomed in and counted the pixels at 110 pixels per 1/10 inch, or 1100 dpi!? To count pixels I drew a line 0.1 inch long and placed it over a line in the bitmap.

At 1100 dpi the file size would be 58300x15950 pixels, or 929,885,000 pixels. I can see lots of different colors in the pixels, so the image shown in DesignCAD must be more than 1 bit per pixel. If it was a 256 bit gray scale each pixel would be one byte, and the file size would have to be at least 929 Megabytes.

I tried to rotate the bitmap with a rotation increment = 0 and the program showed a rotating outline that rotated smoothly. But the image on screen stayed where it was originally - the image handle had moved. CTRL W resized the shreen as if the image was rotated, bit the image still displayed in the original horizontal position.

I closed the file and then DesignCAD, and then restarted the program and opened the file. The bitmap was gone.

****

I reduced the file size in Photoshop to 28800x4549 pixels and saved it as a TIFF file - 383.8 Mbytes. At 24 bits per pixel that would be about 128 megapixels. I then imported it into DesignCAD.

"Help/Drawing Info" reports the file size is 100.7" x 15.9"!? Now I count 287 pixels per inch. That would be 28901x4563 pixels, or 131.9 megapixels. Again, there are a lot of different colors. Windows reports the file size as 7.7 Mbytes.

When I tried to rotate the bitmap the program was very slow and jerky, but the image did eventually rotate.

I saved the file and opened it again. The image was there - at least most of it. But some of it was covered by a large black rectangular thing. The Info Box reported it to be a bitmap. I selected the black rectangle and deleted it, and the entire bitmap disappeared.

****

I opened DesignCAD and imported the same image again, but this time I just pressed Enter when it asked me to set two points for the bitmap. "Help/Drawing Info" reports the file size is 1600.4"x252.8". I measure about 18 pixels per inch, or 28807x4550 pixels (131 megapixels). So no matter how I import it the image is about the same number of pixels. I saved the file and Windows shows it to be 7.7 Mbytes.

Again, rotation was very slow.

Again, when I saved and closed the file and then reopened it there was a large black rectangle.

****

I reduced the image in Photoshop to 14400x2275 pixels and saved it again as a TIFF file. File size was 96 Mbytes.

After importing it into DesignCAD "Help/Drawing Info" reports the file size is 800.2"x126.4". Measurements show 18 pixels per inch, or 14404x2275 pixels, or 32.7 megapixels. Windows shows the file to be 3.3 Mbytes.

The image did rotate a bit faster, but it was still pretty slow and jerky.

This time when I closed the file and reopened it the image was OK, without the black rectangle.

****

Next I made the image size 32"x5" or 19200x3033 pixels. The TIFF file was 170.6 Mbytes.

It loaded into DesignCAD at 1066.9"x168.5". Again it loaded at 18 pixels per inch, or 19204x3033 (58.2 megapixels).

File size was 5.4 Mbytes.

The file saved and opened OK. There was no black rectangle.

****

I changed the TIFF file to 267 Mbytes and 24000x3791 pixels. Again it loaded into DesignCAD at 18 pixels per inch. "Drawing Info" reported 1333.7"x210.7" or 24007x3793 pixels.

The image rotated slowly and jerky.

The file saved OK - 5.5 Mbytes.

****

Resized the image to 322 Mbytes. DesignCAD file size 6.2 Mbytes. Drawing rotated OK, but slow and jerky.

The file loaded with the black rectangle.

Phil
DesignCAD user since 1987

Blood

Thanks for the replies and apologies for the late response.

I passed the info onto the person affected by this and they said they have tried everything but it makes no difference. The images are quite small <1MB jpg. Changing the increments does not affect the rotation - it always stutters.

Very strange!
Using DCAD V17 and V22 in 2D mode on a Windows domain.

Dr PR

Blood,

What is the manufacturer and model number of the graphics card? Not all graphics cardsare created equal!

Phil
DesignCAD user since 1987

Blood

Hi, Phil

The card is an AMD FirePro 2270
Using DCAD V17 and V22 in 2D mode on a Windows domain.

Blood

Update:

I have swapped out the graphic card for an Nvidia GeForce GT 630 - DX11, PhysX, 1GB memory. I downloaded and installed the latest driver released 1 July 2013 from Nvidia's site. The AMD driver and associated software has been uninstalled

Bitmap rotation is barely improved using the new card.

Any further thoughts about this, please?

Thanks
Using DCAD V17 and V22 in 2D mode on a Windows domain.

DrollTroll

Try using Move instead of Rotate:

Select the image.
Press Ctrl-H to set handles, select the "Any location" option from the dialog box.
Gravity snap to the lower left corner.
Gravity snap to the lower right corner.
Command should end (assuming 2D mode). If not, press Enter.
Press M to start the Move command.
Gravity snap to the first handle, then move the cursor. The bounding box should rotate about the lower left corner.
Is that any smoother?
25 years with DesignCAD

Blood

Thanks a lot for the Move suggestion. I have tried this on a couple of our machines. The one in question still experiences the same stuttering when the image is moved (you have to wait several seconds before the outline moves), but on my XP machine the rotation is instant.

I'm going to do some research on tweaking the graphics and see if we can resolve this.

Many thanks!
Using DCAD V17 and V22 in 2D mode on a Windows domain.

DrollTroll

Just for grins, on the Win7 machine, try booting Windows into Safe Mode, start DesignCAD, load a simple image, and try rotating it then. Same stuttering?
25 years with DesignCAD

Rob S

Mine does the same as described in the first post above, I thought it was just normal for images, which I don't have need to rotate very often.

Win 7 64 HP laptop, switchable graphics.

Is anyone actually able to smoothly rotate images, and have them remain visible during the rotation?
User since forever

prl

Quote from: Rob S on July 16, 2013, 10:03:59 AM
Is anyone actually able to smoothly rotate images, and have them remain visible during the rotation?

No.  On my XP machine only the bounding box is rotated until you complete the command, then the image is presented.  This is normal isn't it?

minstrel

#13
Quote from: prl on July 16, 2013, 11:46:35 AM
...On my XP machine only the bounding box is rotated until you complete the command, then the image is presented.  This is normal isn't it?

Yes and no.  With Shading options applied - Gouraud/Enable graphics acceleration - the image is ever present during the rotate function...which for the most part is smooth, but just a tad jerky!

Minstrel

edit - oh, I working in Vista.

prl

Quote from: minstrel on July 16, 2013, 12:52:17 PM
Yes and no.  With Shading options applied - Gouraud/Enable graphics acceleration -

Good point Minstrel.  I was assuming 2d mode.   And if in 3d mode, then wire frame.

So for what it is worth, using XP while in DC 3d mode, I too can get the image to rotate in real time if I am in hidden line mode or shaded mode with graphics acceleration checked in the >Tools>Shading command.