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.

How to smooth jagged lines?

Started by MarkX, October 30, 2011, 04:54:32 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

MarkX

I've tried every rendering mode, with and without graphic acceleration, and with/without "smooth" material. I still get jagged lines as shown in the attached. I'm not expecting photo-realistic rendering -- just some nice smooth lines. Is there a secret to getting some nice rendering?

Thanks!
Mark

SciGraphics

Mark:
  What screen resolution are you using? If you are using a low res. display and you save image you'll get a low resolution result. Instant jaggies. Below is my disclaimer in very small type. Jim A., Tucson, AZ

[4pt/size]I confess that my knowledge is limited.


Dr PR

Mark,

There are three ways to render.

1. One is on screen. This is limited to the resolution of your screen, and this isn't very high as far as images go. Screen captures always have jaggies.

2. Another is by "File/Image/Save Image File." Select "Smooth Shade" from the pull down list, and enter the number of pixels you want. Something like 4096 or greater will give a smooth image when viewed on the screen or when the image is printed. For large page format printing or smaller jaggies use even more pixels. Of course, more pixels takes longer to render and makes larger files.

Note: If you select the "Current Display" option, no matter how many pixels you enter into the box the image will have the same jaggies as the screen image - they will just be rendered with greater precision (more pixels but the same jaggies).

3. You can "print" to a PDF printer driver like CutePDF. You can set the page size and pixel density and then send the output to PDF files. I have created 96" x 48" files at 300 dpi this way (something like 1.6 Gbytes). They make excellent poster plots.

Phil
DesignCAD user since 1987

MarkX

Thanks Dr PR for the tips. The smooth setting and high DPI does give better results.

Its a shame that the on-screen render can't be a little cleaner. These jags are prominent enough that I could actually count them. My screen resolution can do much better than that, so its an application thing.

Thanks,
Mark



Dean

Hi Mark,try increasing the view distance as displayed in the pictures below. You can also adjust the edges of the shadows.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Dr PR

Mark,

Do you have the Windows display resolution settings set to match the resolution of your display? If not you may be seeing reduced image quality because the DesignCAD image is being "massaged" to force it to fit the resolution of the screen. DesignCAD generates the pixel density set by the Windows display resolution settings, but your graphics driver has to fit this to the actual capabilities of your monitor. If your Windows settings do not match your display card and monitor exactly the image will suffer.

Likewise, be certain that the color resolution matches your graphics card's capabilities. For example, if you have selected 16 bit color quality and your graphics card can do 32 bit color, image generation will be slowed down greatly while the graphics card does all the math necessary to dither the low resolution colors to produce the colors the display card actually sends to the monitor.

****

CAD programs do not play games with images the way some image display programs do. I don't recall the name of the most common trick right now, but it involves converting sharp black on white lines to fuzzy grayscale where the jaggies become lighter grays. Image resolution is sacrificed to make it look pretty. Doing this real time would slow CAD to a crawl.

****

You say you think your graphics card/monitor should be able to do better, but I doubt it. I have a 21" (diagonal) monitor that displays 1280 pixels horizontally. That is only 80 dots per inch. My 22" monitor displays 1680 pixels horizontally, 91 dpi. I have a 42" monitor that can do 1920 pixels horizontally, a dismal 53 dpi! For comparison, my printers do up to 2400 dpi, and 300 dpi is the minimum for reasonably good jaggie free prints. A 150 dpi print will have pretty obvious jaggies.

To get 300 dpi a 22" display would have to generate 5,500 pixels horizontally, and the 42" monitor would have to do 10,800 pixels. I know of no such monitors or display cards, but if they exist they will be extremely expensive.

Phil
DesignCAD user since 1987

Lar

Quote from: Dr PR on October 31, 2011, 02:27:06 PM
CAD programs do not play games with images the way some image display programs do. I don't recall the name of the most common trick right now, but it involves converting sharp black on white lines to fuzzy grayscale where the jaggies become lighter grays. Image resolution is sacrificed to make it look pretty. Doing this real time would slow CAD to a crawl.

Anti-aliasing is the term I think you are looking for.

Lar

Dr PR

Lar,

Right. I had another teen-age moment there.

Phil
DesignCAD user since 1987

MarkX

Hi Dr Pr,
Quote from: Dr PR on October 31, 2011, 02:27:06 PM
You say you think your graphics card/monitor should be able to do better, but I doubt it. I have a 21" (diagonal) monitor that displays 1280 pixels horizontally.
I was basing this on the appearance of lines in SketchUp. I suppose its doing some sort of anti-aliasing. The anti-alias object in the DC shading/renderer dialog doesn't seem to make any difference.

I checked and my screen resolution and my windows settings match. For historical reasons I've been limiting DC to something less than the full screen. Maybe I'll let it stretch out and see if that helps.

Thanks!
Mark