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 produce superior quality renderings in DesignCAD

Started by Miro, September 14, 2007, 08:24:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Miro

You can output supper high quality renderings in DesignCAD, as good, or better than in MAX or other high end programs.
The procedure is simple and it will take care of the antialiasing problem. So here it is.
From the DesignCAD menu click: File

prl

Nice post Miro.  Any way you can give us some quick tips on understanding lighting, shadows and texture mapping in DesignCAD? A mini example file maybe.

I've fiddled with all this but either things aren't fully working or things are purely hit or miss.  Settings seem to be all over the place and knowing where and what is a challenge.  You've shown that DesignCAD can do this nice rendering stuff but the interfaces for them are terribly obtuse and documentation is . . . . .?????

Dr PR

Nice work!

I have been using 2000 to 4000 pixel width/height to get decent images, as you have shown. However, the File/Image/Save images are not as good as what I get if I print to the CutePDF program. This program installs as a printer in Windows. Anything you print to this "printer" is saved in a PDF file. Just print normally and do not use the print to file option in the DesignCAD print dialog. Cute PDF handles the file save operation.

I load the PDF into Photoshop and edit the image there, if necessary. The image resolution is quite a bit better than anything I have seen from the DesignCAD File/Image/Save. See the attached images. However, I have seen a slight problem. Occasionally the CutePDF image has a slight stretch distortion in a small part of the image. This hasn't been a problem for me.

DesignCAD File/Image/Save image


CutePDF image


The original images were both created back to back from the same DesignCAD session, same image in the working window, same zoom, same orientation. Both are full window images. The original Image/Save file was 3807 x 2000 pixels (548 Kbytes), and the CutePDF image was saved as an 8 1/2" x 11" page (732 Kbytes). I cut a small sample area from both the File/Save JPG file and the CutePDF PDF file and saved them as JPGs with Microsoft Photo Editor. The samples are zoomed so individual pixels are visible in Photo Editor and the resultant JPGs are about the same size. The unzoomed PDF image is noticeably clearer that the File/Image/Save JPG when viewed at the same size.
DesignCAD user since 1987

Miro

Hi Dr PR, I have never tried your way and any way that works is good, but (perhaps I was not clear in my original post), the larger image is not better, it is just larger and the sharpness and the antialiasing is achieved by the subsequent resizing to smaller size. The resizing is done in any good image processing program.
So if your image on the screen is 600 x 600 and you take the same image up to 3000 x 3000, the final image will be 5x larger. Resizing it back to 600 x 600, essentially, you will reduce the jagged edges 5 times and end up with very clean and smooth image.

To my knowledge, DesignCAD is the only program that can take image large than screen size, without cropping it that is.
What is interesting about this is that in reality the geometry is there, but DesignCAD can not interpret it because it does not have functioning antialiasing and other programs, such as cutePDF do. What is puzzling is that DesignCAD people yet did not come up with separate rendering plug-in the same way as MAX does it or something else so that this major deficit is finally resolved.

Miro

Hi Prl, there texture mapping in DesignCAD is actually pretty good. Maybe not as flexible as in MAX but certainly far better then in TurboCAD. Main difference between the two is that in DesignCAD (as in most programs) the texture is applied to an object essentially from one end to another rather then projected on an object as it is in TurboCAD. That is a great advantage, because if you apply a different texture of different size to the same object, e.g a table top the image stretches or shrinks to fit. Not in Turbo. You are out of luck, you have to remap the item. That is one really bad feature in TurboCAD. We are lucky as the mapping in DesignCAD is pretty much straight forward and it takes little experience and learning to map items. One bad thing about mapping in DesignCAD that using Box mapping, one must apply texture to each side of the box separately. Top, front, side and so on, instead of just mapping is as box automatically.
Grid mapping is only good for close-ups, but it is useless when object is in distance, because the wire frame will show through where the wire frame is dense, e.g. close radii.

Now lighting and shadows is another matter and there is no easy way to learn but by trial and error.
Rule one, select something simple to learn on.
Rule two, get a good book to read, because you will spent hours trying to do it.
Unless there is an instant preview the present interface is unusable for all practical purposes, because time to render and to see the final result grows exponentially with each value added.
To waiting many minutes to see each change on even a simple object is simply not acceptable. Further more, as I found out, setting spot light is unstable and no matter what coordinates you set "point from" and "point to", the values will change. I am not sure it this is a bug or if I am missing something here.

Placing point light which is directional and has a position and direction by coordinates is difficult and one must first establish/find what the coordinates are.
In other programs a light is an object and can be moved by mouse, so positioning is much easier and quicker. To place light by coordinates was a bad decision by the programmers in my opinion.
In any case to learn, one must understand what are the properties of each light source, what is Directional light, what is Spot light and what is Point light, and how the values set for each will play with each other. This gets more complicated because the properties of material of the object you are lighting, whether it is shiny, transparent and so on will effect the results. In addition properties of the surface, if any, your object is sitting on, e.g. a table top or a floor will also play an important role particularly for casting shadows.
So you see, you have to deal with many factors and each plays an important part in lighting an object.
To get somewhere, start with a single light source and see how it plays with the material of the object. Add a second light source e.g. a light coming from another window. At that point, cut down the values of the first light source and adjust the values for the second light source, so that the main light source provides lets say 70% of light and second light source provides 30%. 

It is my experience that the best lighting results balanced against time investment are simple 0,0 or 5,10 degrees for the directional (Ambient lighting) and degree of reality is achieved by the material property of the object.

Here is a samle with directional lighting casting shadow, spot light, (not placed as I wanted, but it is there), and a point ligh placed in the glass. The liquid in the glass suppose to be red vino, but the point light was effecting the color of the table cloth no matter how smal the values for the point light were, becasue there is no cut off for point light, so I had to changed the vino to water :-\


Dr PR

Miro,

Sorry, I did miss your point about resizing in another program. I have done this in Photoshop, and it does produce a better image, as your pictures show.

I think the Image/Save function doesn't actually produce any more pixels than are shown on the screen. If the selected screen image is 600x600 pixels and you save it as 1200x1200 pixels, it just produces a JPG file with each original pixel replicated as a square of four same colored pixels. It still has the same "jaggies." The Image/Save function just saves the image on the screen one way or the other. With a 1600x1200 pixel screen the most you can get is about 1.9 million pixels.

Here is a portion of an image (432 x 398 pixels) saved at native display resolution:


This is about the same image area saved with 2000 x 1897 "pixels":


There are more pixels, but both images have the same "jaggies." Expanding the working window to full screen and operating your display at its maximum resolution will increase the original screen pixel count, but as you point out the saved image is not very "sophisticated." You can make it look better with digital massage in a photo editor, but nevertheless what you start with is not very good.

The print function generates far more pixels in the original print image. The original vector drawing is converted to a pixel resolution equal to the number of pixels in a printed page.

Same area from printed image:


There are still jaggies, but MUCH smaller. You can see the facets in the lines that DesignCAD uses to represent curved surfaces.

The resulting file sizes are about the same, but the algorithm that generates them is obviously very different. If you print an Image/Save JPG file on an 8 1/2" x 11" page the individual pixels are easily seen. The pixels cannot be seen in the image printed from the CutePDF file. The same is true if you examine the files in a photo editor.

I can't explain it, but I have seen this many times. Also, I can't take credit for discovering it. Someone at DesignCAD/Upperspace tech support tipped me off to this trick several years ago.
DesignCAD user since 1987

Miro

Dr Pr, You are right the jaggies are there no matter how large the image is, because there is no antialiasing to speak of in DesignCAD.
However somehow I am missing my point, so I will try again.
The increase in quality (due to added antialiasing) is generated by the "other program" In my case a Paint shop Pro or MS Word.

Here are three images. The first one is a section of image which is 3972 x 4000 = 15 888,000 pixels. (Large, but still jagged). The second is an enlargement of the same section taken from "resized/pasted" image down to 547 x 551 = 301,397 and the third one is the same section in original (resized) size, 66 x 86 pixels.
You will notice that the second image has perfect antialiasing, so in real size it looks smooth as you can see on the small image.


The purpose of taking large image is NOT to make the image better but you need the large image so that it can be reduced and it is the size reduction process, when the antialiasing needed for the smooth edge is created.
I must say that my terminology is not accurate using "image is resized". Using a command resize will produce horrible results. It is "the automatic resizing or fitting" the MS Word or the Paint shop Pro uses to fit the image much larger than screen into the program window or in case of MS Word, fit it on the page. So if you open the large image in PSP, the program reduses the size and at the same time "fixes" the antialiasing and the MS Word does the same thing while fitting the image on the page.

Some programs may open the image in full size without fitting the whole image in the window, so you may not get the same results, but PSP will automatically reduce it to available space and MS Word wil fit it on the page as default.

Dr PR

Sorry, I am not trying to be argumentative. I understand what you are saying. It does work - I have used the same technique with Photoshop. It is one way to get a good looking image.

However, what of you want a large sharp image? In your example you have resized from an original image that is 4000 pixels wide to a final image that is 86 pixels wide. That is a 46.5 x reduction. DesignCAD limits the number of pixels to 10,000 horizontal or vertical in a File/Image/Save. A 46.5X reduction takes this to 215 pixels wide. What if you need a sharp image 1000 pixels wide?

I don't know what magic is at work in the print process, but it generates extremely sharp original images. No reduction necessary. What is really strange is that the files aren't very large - not a lot of pixels. But the antialiasing is very good.

I discovered that I can select a plotter in the DesignCAD print function and then select a large sheet size (say D - 34" x 22"). Then if I switch to CutePDF and print I get a larger image than if I print to an 8 1/2" x 11" page size. The resulting antialiased image is about 1300 pixels wide.

So, what I am saying is that there is a way to get a larger relatively sharp image to start with. Then if you use your techniques you get an even sharper smaller image.

One caveat. Like many other DesignCAD users I have no experience with texture mapping. I do not know if CutePDF can print a respectable texture map image.
DesignCAD user since 1987

Bob P

When I want a large high quality image, I use a virtual printer that creates a very large (pixel-wise) file.  I'm at home now, and don't remember the program, but I remember it being around $20.

Dr PR

Bob,

If you remember the name I would be very interested in knowing what you use.

The CutePDF program works OK. Setup allows page size up to 36" x 96". It appears to "print" at 72 dpi. I printed a 36" x 72" page and the resulting file was 6.2 Mbytes. ((36" x 72 dpi) x (72" x 72 dpi)) should be 13.4 million pixels. PDFs contain compressed images, and the background was white, so maybe that is why the file is only 6.2 Mbytes. It took about 15 minutes to write. I had to zoom to 800x in Acrobat Reader to start to see the pixels. The resolution is incredible!
DesignCAD user since 1987

Bob P

The printer is listed as Easy Image Virtual Printer but it may not be available with that name anymore.  "Details" list verypdf.com as the origin.  Currently the only thing I could find on their site was docPint which looks more sophisticated (and expensive).  I hope I can find my old installation software because I'm going to "refresh" the hard drive and OS on this machine soon.  :'(

A search in "image virtual printer" turned up some others too, including a freebie.
More stuff

Dr PR

Bob,

The CutePDF Writer is free:

www.cutepdf.com

They also have more sophisticated PDF composition programs for sale at pretty reasonable prices. Don't be put off by the cutsy name, it is a very useful tool, and you can't beat the price!

I opened the 36"x72" PDF file (mentioned in my earlier post) in Photoshop. Photoshop uncompresses the file, expanding it to about 36 Mbytes. It is about 5100 pixels x 2500 pixels in 24 bit color. Cute PDF did write it at 72 dpi.

Oddly, the image is not as sharp in Photoshop as it is in Acrobat reader. I have noticed this in other images. Photoshop does no antialiasing, so the jaggies are more visible than in Acrobat. This is understandable for a pixel editing program, but I have always thought it odd that Acrobat Reader (free) is a much better display and printing program than Photoshiop ($$$) and they both come from the same company.
DesignCAD user since 1987

Bob P

I already have Adobe Acrobat and I've used that method.  Just trying to simplify things a bit for others.

csuebele

I just joined the forum & bought v18.  I've been using designCAD since the early ascii versions.  I upgraged to v18 because it could write psd & jpeg files, but I was disappointed with the quality.  It seems that, as others have mentioned that entering a higher pixel resolution just makes more pixels of the same screen capture rather than refining the image.  I have used a pdf writer to make a file to transfer into photoshop and to get a good resolution, I will pane the drawing and splice the panes in photoshop.  I did try something that worked well to get a wireframe view of high resolution.  I converted the view I wanted into the old ascii 2D version, then converted that into either a dwg or dxf file.  This I could open in Illustrator as paths at any res I wanted.  I plan to use this method to do a rendering in photoshop.  The shadows are a bit frustrating to use.  I just learned that you have to have the graphic acceleration turned off for it to work, so it runs slower.

It would be nice to have an image save that created a high res image that is not based on the screen capture and a more direct way to export a 2D vector drawing from a 3D view.

Lar

csuebele,  to get a finer image choose something other than 'Current Display' as well as increase the image size.

Lar