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.

How to print drawing in Phong and Gouraud without graphics acceleration

Started by Dempsey, April 18, 2009, 03:32:22 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dempsey

Rendering Gouraud WITH graphics acceleration seems to be the best I can do for printing or PDF output.

To get the casted shadows I need Phong or Gouraud without graphics acceleration, but I cannot figure out how to print it. When I do a straight print the result is a wireframe. From paperspace (my preferred option so I can add drawing identification) I can only do smooth shading which is the same as Gouraud WITH graphics acceleration.

The only way I have been able to save a drawing in Phong and Gouraud without graphics acceleration is to save it as an image.

Am I overlooking something?
Dempsey

Dr PR

Dempsey,

I have printed many images with shadows using CutePDF. I have also printed a few to my printer.

In the Print dialog select the "Type" tab. Then in the pull down list select "Smooth Shade." To get shadows select "Print Shadows."

Some people have reported better results from printing from Print Preview. To do this, first open the Print dialog and select the printer, Smooth Shading and Shadows, and then click the "Close" button. DesignCAD remembers your print settings and uses them from Print Preview. However, the preview image IS NOT what gets printed.

Before printing it is a good idea to display the image with the Shading dialog Phong mode with shadows to verify the lighting settings.

As far as I can tell the type of "Shading" mode shading and graphics acceleration settings are irrelevant to printing. What you see on the screen in any shading mode IS NOT what gets printed. The screen display image and print image generation routines appear to be unrelated.
DesignCAD user since 1987

Dempsey

Dr Pr,

First of all you suggestion does not work from paperspace.

Then I tried it by printing from the main 3D window to CutePDF. By the way I am printing a grandfather clock. The rendering without hardware acceleration was slow, but this took at least 4 to 5 times longer -- I almost finished a nice glass of wine while waiting (will make me an alcoholic if I am not careful) --. When I looked at the result I was very disappointed. Rather than the 3D view I got the frontal view. My 3D display has the proper settings with the the light sources I like and material red oak.

When you look at http://www.van-vliet.org/dempseywoodworking/grandfatherclock.shtml drawing 12, then that is what I expected, but what I got is shown in the attached pdf file.
Dempsey

Dr PR

Dempsey,

I have no experience with paperspace. I still do things the old fashioned way because it works.

I have no explanation why you got the front view if the Main 3D window was active when you printed. Are you sure the Front window wasn't active just before you printed?

Printing with shadows takes much longer that just displaying with shadows. On my machine images saved with "File/Image/Save Image" are about 400 Kbytes and the same file "printed" to PDF as an 8 1/2" x 11" page is about 600 Kbytes. However, the 50% larger printed image takes 10-20 times as long to save.

The display and print shading routines are definitely different.
DesignCAD user since 1987

Adrian 2.0

Dempsey,
I have just succeeded in printing a 15Mb file rendered in Phong, with shadows on, antiliased & transparency on (that also multiplies the print time) and it took 12 hours!
if you are getting a drinking problem, I should be in intensive care.
The result was un-usable because it printed the shadows of all the layers that were turned off (not the objects, just their shadow)
The light sources also shifted, so it didn't highlight what i wanted.

I have most success (and speed) by saving an image set to 'smooth shading' & depending on the proportions up to 6000 pixels wide.
As Dr PR said, you need to render the file according to the way you want it printed before you do this because save image doesn't give you all the options (anti liasing, hiding lines, dims etc) & it prints whatever the last settings were. Remember to un-check the 'same as current display' or you will just get a very big crappy image
You can also 'print' an XPS document using Microsoft document writer, it looks exactly the same as PDF (unwanted shadows and all) & as far as I can tell it is un-editable, or extractable so no use to me.

Dempsey

Thanks adriank. Another piece to the puzzle.

A few days ago I was digging once more into the settings of the CutePDF "printer". It defaults to 600 dpi and can be set as low as 75 dpi and as high as 4000dpi. I think the problem is that DesignCAD uses its own dpi setting and ignores the CutePDF setting. It is on my to-do list to find out exactly what is happening so that I can formulate a request/complaint to IMSI.
Dempsey

Dr PR

Dempsey,

I suspect you are right about DesignCAD having its own default DPI settings. It does have to translate the pixelless vector drawing to a raster image, and that means it has to put some number of pixels per unit length.

If you think about it, raster images have no "physical" size - they are just a bunch of numbers in a file that represent dimensionless pixels. You can print the pixels at ANY size - if you want 1" square pixels you can have it if you can just print enough sheets (or find a plotter large enough). The "dots per inch" is just a command to the printer driver telling it how large to print a pixel relative to the page size. Higher dpi makes a smaller picture, lower dpi make a larger picture.

I printed a 2D 121.18 x 115.536 drawing units file from DesignCAD (print units = inches, page size 8.5 x 11) with CutePDF (600 dpi default setting), then selected and copied the image from Acrobat into a photo editing program. The resulting image size was 10.64 x 10.3 inches and 1021 x 963 pixels (96 dpi).

I rescaled the DesignCAD drawing  to 1/10th the original size with the "Units" command and repeated the process. The resulting size in the photo editor was exactly the same.

Then I set drawing units to inches and repeated the process. The results were exactly the same.

I scaled the inch unit drawing to 1/10th original size and repeated the process. The results were exactly the same.

I did it again, but selected a print page size of 22" x 36", and the resulting image was 947 x 893 pixels, and 9.86" x 9.3," smaller than the 8.5" x 11" page print!?

I printed a 3D drawing that was  478 x 149 x 147 and followed the same process. The resulting image was 1283 x 680 pixels, and 13.36" x 7.8" (96 dpi). If DesignCAD was printing any number of pixels relative to the original drawing size the second file should have had about 4x the number of pixels horizontally as the first file. Instead it had just 1.25 as many pixels.

Conclusion: drawing units and print page size have no effect on the number of pixels in the print file.

****

Both files were printed from a full screen window. The first (2D) had drawing objects that were arranged almost within a square boundary. The second (3D) had an image much wider than tall.

In the process described above when I select the image in Acrobat Reader I get only the non-background elements. That is why both files did not produce the same size image. They were printed to 11" x 8.5" "paper" but a lot of that space was blank. Acrobat selected only the non-white elements.

It looks to me that what gets printed may be about the number of pixels DesignCAD displays on the screen. My screen resolution is 1600x1200 pixels. I measured (with a ruler) the first image (2D line drawing) to be 0.64 as wide as the screen, which would be 1030 pixels, and the print image was 1021 pixels wide - almost the same. However, the second image (rotated and shaded 3D object) was about 0.93 of the screen width, and that is 1500 pixels, but the print image was only 1283 pixels, a significant difference, but still in the same ballpark.

Somewhere some arbitrary dpi setting gets hung on the image, probably when DesignCAD prints it to the 8.5" x 11" paper, or possibly when the photo editor program gets the image.

DesignCAD user since 1987

Rob S


DR

Was the image copied to the paint program using windows clipboard?  If so I think what you are running into here is a limitation of the clipboard.

It captures the image that is displayed in the acrobat screen.  You could test that by varying the window size prior to taking the clipboard image.

A 2D designcad drawing printed with Cute pdf or adobe pdf, is actually stored in vector format in the pdf file, and it can actually be re-extracted to a dxf file using something like aide pdf to dxf converter.  Of course, it does not have 16 digit precision, but you can easily zoom in 1000 percent.

To get this resolution into the paint program, I think you would have to export from pdf to high resolution image, and then open the file.

If you have acrobat standard, as opposed to just the viewer, it allows save-as or export to jpg image at resolutions of up to 2400 dpi.  It can also save files in eps format

A shaded 3D drawing is printed as a raster image, so the pdf resolution should adapt to the page size being printed.  I believe the cute pdf printer resoltion can be set to 4000 dpi, so that might take a while to print!! I have not tested if that is what you get, but I might try and do that later today.

User since forever

Dr PR

Rob,

Ah so! You are probably right!

When I save files with CutePDF and open them in Photoshop the results are very different.

Dempsey,

One thing you can try before printing in paperspace is to open the Print Dialog from the normal (non-paperspace) mode and select the print settings. Then click "Close." The print setting stick and will be used the next time you print. This works for using the instant print buttons on the tool bar. Maybe it will work for paperspace.
DesignCAD user since 1987

Dempsey

I did a "quick" test by setting CutePDF to 4000 dpi. Took about 40 minutes to generate the pdf file from paperspace, while the result was pathetic. I will have to create a simpler drawing and then print it with the different settings to get this sorted out once and for all.

I will see what I can do before Tuesday, otherwise you will hear from me again in August.
Dempsey