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.

Shadow problems

Started by adriank, May 06, 2009, 10:42:31 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Adrian 2.0


Dr PR

adriank,

I have been fighting the same problems.

A. I can see where the circular shadowes are coming from (the circular planes below the surface), projected back along the line to the light onto the surface, 180 degrees from where they should be. You may be able to "fix" this problem by:

1. Select the object creating the shadows
2. Open the Info Box (CTRL I)
3. Click the double arrow button (red and blue arrows) below the layer window to "Reverse the Order of the Points." This makes absolutely no sense at all but it sometimes makes an object's shadow go where it is supposed to.

CAUTION: this can cause normal objects to produce weird shadows or render strangely. Save the drawing first! To be safe, select only the offending surface if you can.

B. Where are the objects causing the linear shadows? Older versions of DesignCAD often created shadows from objects on hidden layers. Are there objects above the plane on layers that are disabled? V19.0 seems to have solved this problem, at least for on-screen display. Printing is still screwed up.

C. Occasionally (after solid Boolean operations, I think) some facets of surfaces are shaded incorrectly, with one end having the correct illumination from the light source and the other end showing the "shadow" side illumination (from the side opposite the light source). This may appear as if a rectangular plane has been split into two differently shaded triangles, or it may look as if the plane was twisted "bow tie" fashion. Just saving the drawing, closing it, and then opening it again will correct this problem. When DesignCAD reads a file it tries to correct messed up point orderings. This works mostly, but not always.

CAUTION: if you cause this problem by reversing the point order it will not go away when the file is opened again!

Note: the messed up surfaces are not necessarily part of a solid that is the result of the solid Boolean operation. Changing solid A may cause strange display problems with solid B, while solid A displays correctly. Something about the point order in the drawing list is being screwed up.

D. Sometimes just regenerating the view (CTRL R) will cause strange rendering problems to go away. This is especially true with Gouraud shading (hardware acceleration on), where occasionally flat surfaces will render with dark shadows around the edges as if the surface curled under around the edge.

E. Sometimes a surface disappears entirely when shaded, but still prevents objects behind it from showing through. Only the background appears through the missing surface. Select the surface (and only the offending surface) and reverse the point order (in Wireframe mode).

****

There is definitely a bug that is screwing up the point order. I don't recall having seen this in V15, so I'll bet it was introduced when shadows were added in V17.

****

What version and release date DesignCAD are you using ("Help/About DesignCAD")? What operating system? Please include this information in all posts.
DesignCAD user since 1987

Adrian 2.0

Dr PR,
You are now officially my hero! Reversing the order of the points does indeed make the problem go away! Even though it is going to be a nightmare in some instances to isolate the offending plane / object! (I am now running 19.1, by the way, with the same issues as 19.0)

As I said in my original post, it all seems to come down to one point that causes the problem, this being the original point that set the radius of the arc before it was converted to a plane, I guess reversing the order of the points will always move whatever causes the problem to a different point?
Thanks for all the 'cautions' I will definately tread carefully & always save a copy before proceeding.
I've frequently experienced the 'dark edges' issue, but it does seem less of a problem now than on V18, when regenerating did not always fix it & sometimes I had to turn DCad off & on again.
I've never had a surface dissapear on me yet, but I guess if I'm really lucky.......

When I printed to a rendered PDF file is the only time I got hidden layers casting shadows, and then I also got another really nasty surprise when DCad moved ALL the lines drawn on hidden layers to another part of the drawing, which could not be undone. That is, closing the file without saving & re-opening it did not put them back. Luckily I was working on a copy of the original file and I don't try to print rendered PDFs any more!

Dr PR

adriank,

Did you print with the V19 PDF option or did you use an PDF print driver like CutePDF?

I have only tried the DesignCAD PDF print function once, and it failed. I set up the print routine for smooth shading but I got a wireframe in the PDF file.

I have used CutePDF for quite a while and it works almost perfectly (occasionally I get a ripple in the output). However, V19 still prints shadows from hidden objects, so when I want an unadulterated print I have to copy the items I want to print to another file.

As far as I know, nothing moved in my file when I tried the DesignCAD PDF print option.

****

Thanks for the information about the arc radius point. DT has been looking at this problem and every bit of information helps.

When you convert an arc to a plane the resulting plane has a huge number of facets/points. This increases drawing size pretty quickly. If you then extrude the plane the drawing can become huge. I once extruded a circular plane along a curve to create a simple hand rail. The drawing increased in size by 13 Mbytes - just for the one railing! I needed dozens of similar railings,. The XP machine I was using had only 1 Gbyte RAM and DesignCAD became flaky with file sizes over 35 Mbytes. I repeated the extrusion using a simple 16-sided polygon and the file size increase was only about 100 Kbytes. The resulting railing renders smoothly just fine as long as you don't look too closely at the ends.

If you create a circular plane ("O" and select "Draw as plane") you can set the number of segments. For objects to be viewed close up 72 segments works nicely. For objects always viewed from a distance 12 to 36 segments work OK. I typically "cheat" and use 12 segments for the ends of small bolts and screws that may not be seen at all. This helps reduce file size. A 12 sided cylinder produces just as good a shadow as a 144 segmented piece.

Some of the files I work with have grown to >250 Mbytes so I am especially careful to minimize segments in extrusions to the absolute minimum that will work. I have had problems with files over 275 Mbytes on my Vista 64 machine with 4 Gbytes RAM.
DesignCAD user since 1987

Adrian 2.0

Dr PR,
I was printing with Adobe Acrobat.
Generally I don't have problems, but I am usually only printing 2d line drawings. I seem to remember also having problems printing rendered drawings to the MS XPS Document writer, so I figured it was an issue related to rendering a print job generally. I don't even try now, I save a JPG with a high resolution in smooth shading & get satisfactory results - better now I can get rid of the liver-spots all over!

I know exactly what you mean by inflating file sizes with ridiculous numbers of points on extruded circles. Another drawback is the quantity of background lines produced that prevent you finding an object to edit. The opposite effect on very large radius arcs also becomes a problem, when vectoring it turns it into a straight line, or maybe only one midpoint. I tend to set up my shapes with construction arcs & lines, and then trace that by drawing a plane, snapping on only some of the points.

My file sizes are nowhere near the size of yours, round 30 Mbytes unless I try importing a largish DWG file, then it gets interesting!
I work on an HP laptop which also runs 64 bit with 4 GB ram. I'd love to add more but don't think they make 4GB ramstrips for a laptop yet?