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.

More shading problems

Started by roger_c130, May 13, 2012, 05:06:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

roger_c130

This is an example of the problem I have now.  I draw a square with a circle in the middle.  Declare it a plane.  Extrude it to 1/4" thickness. Declare it a solid.  Shade it and the circle is totally ignored. 
A few years back that didn't happen to me.  The shading skipped around the hole. 

There's one other strange result I get when making solids.  I often get the original plane of my piece which I can pull away or even delete.  Is that normal?  It doesn't always happen but I haven't spent a lot of time trying to figure out when it happens or when not.  I delete them and nothing seems to be affected.

Bob P

Quote from: roger_c130 on May 13, 2012, 05:06:55 AM
This is an example of the problem I have now.  I draw a square with a circle in the middle.  Declare it a plane.

What is "it"?  If you draw a square in 3d mod, you already have a plane.  The circle has a plane option when drawn.

Once you have both as planes, subtract the circle from the square and extrude.

Alternate method:  In 3D, draw the rectangular solid and subtract a cylinder that passes completely through the rectangular solid.

roger_c130

"It" is any form I'm working with right now.  I just used drawing a square with circle as an example.  I do exactly the same thing with all the forms I've created but haven't started to shade them until now.  The cut-outs use to be skipped some years ago, i.e., the circle in my square would show up as a hollow opening.  One more thing happening this morning is the color I wish to shade with.  No, No, it comes out white no matter what I try.  Well that's not true - I can get it to shade all black.

roger_c130

Sorry, I should have mentioned that the square/circle was started in 2d.  That's how all my present project forms have been started.

MarkX

Quote from: roger_c130 on May 13, 2012, 06:39:01 AM
"It" is any form I'm working with right now.  I just used drawing a square with circle as an example.  I do exactly the same thing with all the forms I've created but haven't started to shade them until now.  The cut-outs use to be skipped some years ago, i.e., the circle in my square would show up as a hollow opening.  One more thing happening this morning is the color I wish to shade with.  No, No, it comes out white no matter what I try.  Well that's not true - I can get it to shade all black.
Its unclear to me what it is that you want to accomplish. If you drew a circle on top of a plane, its not going to show up as a "hollow" unless you first subtract the circle.

If you want to "tattoo" the side of the cube with a circle, be sure the circle has been defined as a plane and that it is a different color than the cube.

If everything is shading only white ... maybe you're using hidden-line mode instead?

You might post an example of what you're trying to do.

Have fun --
Mark

roger_c130

 Example of what I'm trying to do.  1/2" block with hole in middle(approx).  When I shade the result is like putting a sheet over the entire drawing.

Bob P

You have forgotten the step of subtracting the circle-plane from the square.
edit > polygon edit > polygon subtract

In your case, the result is actually a (positive) cylinder superimposed on a rectangular solid.  That's why you see the cylinder in wire frame.

MarkX

In my experience so far, if your final product is going to be 3D, its better to subtract the components as 3D components rather than subtracting them while they are 2D planes. If you do the polygon subtract,what you'll get are two pieces. Just seems ugly to me.

If you extrude the two objects (possibly in one extrude) and then do your subtract, you'll get the solid with a hole just like you expect. There are still hidden cut lines, but the resulting object will act like a single component in most respects.

Mark

Dr PR

roger,

Actually the program is doing more or less exactly what you have told it to do.

There is ambiguity when you tell the program to subtract one object from another if both objects have a coplanar surface. Surfaces are zero thickness with no volume. When you use Solid Subtract there is no volume to subtract at the surfaces - DesignCAD leaves the surfaces intact but removes the interior volume. Whether this is the right way or wrong way to do it is questionable, but that is what it does.

If you want the cylinder to cut the surface the cylinder must extend through the surface, and not just to the surface. This is unambiguous when the Solid Subtract is executed.

****

The "additional plane" problem has been reported before in older versions. This has taken two forms.

1. After a sweep (and possibly other functions) the original plane remains at one end of the new solid. It is a separate object from the solid and can be moved or deleted. When this is done the solid still has the end plane where the original plane was. V22.0 allows you to eliminate this plane after the sweep if you want to.

2. In some odd cases, after an extrusion the original plane may or may not behave as a part of the extruded solid. If you select some other part of the solid the plane moves with the solid. But of you select the plane after the extrusion you can move the plane separate from the rest of the solid. This left an open end to the solid where the plane had been. The Info Box says the plane  is a solid (it is still a part of the solid). Deleting either the plane or the solid deletes both. I think this was fixed in V20 or V21, maybe earlier.

****

One other problem you may encounter is shading coplanar surfaces. If you have two coplanar surfaces that are different colors, how is DesignCAD supposed to know which color to display? In fact, it tries to show them both (what you are telling it to do) and the result will be zebra stripes or something like that.

You must be careful to avoid coplanar surfaces in 3D drawings. Since 2D drawings are all supposed to be a single plane, extruding in 3D objects that were created in 2D is just asking for trouble.

As Mark said, it is better to start with 3D objects when working in 3D. You can use a 2D drawing as a template (in a separate layer) but you should never extrude anything created in 2D. Create new 3D solids on top of the 2D drawing.

Phil


DesignCAD user since 1987

roger_c130

Sorry, but the light still hasn't come on for me about solids and shading.  I'm attaching to files to show what has me bamboozled.  The first file is a form I drew some 7 or 8 (maybe more) years ago when I was just beginning to try 3D.  All of my drawings at that time were started in 2D.  I would open them in 2D, delete unwanted lines, click on 3D.  I think I then selected the whole drawing and declared it a plane.  Then I extruded the plane to whatever thickness was required and declared it a solid.  Frustration then with getting the color I wanted to shade.  For some reason I was in and out of material/add until I've built up a lot of adds I can't delete.  Once I figured out the color I just hit shade and the result is what I got in the first attachment.  It looked perfect to me.  Holes and later some slots worked just right.  I was so ignorant of 3D back then that I can't fathom using Solid Subtract.  Even today I have trouble getting it to work.  The hole disappears leaving just the beginning circle.  So, I have a ways to go.  I hope the form attached works the way I describe.  If it doesn't come thru shaded just try selecting Gouraud, graphic acceleration, whatever color you want.  It may just pop up the color I used.  Anyway, it looked good enough to print and to place in a composite drawing of all the like pieces to form the fuselage which permitted verification of design.  I didn't use it because it was drawn at 1/10 scale and I have since reduced that to 1/12.  That's why I'm trying again.

The second attachment was an attempt to see what differences there were between starting with a 2D drawing versus a 3D.  I couldn't get my head around it as the saying goes.  I don't know why I extruded to 1/4".  I have a number of washers in my plan and I should have used their thickness.  The results look the same to me.  The third example is something I haven't seen before.  I thought maybe sweeping around the circles would produce a result different from the other two.  What I got was a duplicate of the whole drawing.  Before, it was just the original plane. 

I have also been trying to use solid subtract as you both recommend.  However, when I execute the instruction, the smaller solid disappears leaving just the original circle.  Both were defined as solids.  I didn't extend the smaller hole solid beyond the main form so maybe that's what caused the problem.  I swear I never went thru this in the original 1/10 drawings.  It's crazy.  I'll keep working at it.  Thanks to both.

magic

Hi Roger,

I just had a quick look at your example, and as to the coloring and your 29 Default materials i'm a bit lost.

However in your washer example. you haven't actually subtracted the center cylinder from the outer cylinder. If you do, you get a perfect hole.

Do as follows: Go Solids > Solid Subtract (or Ctrl+U), click the center cylinder and then the outer cylinder. Shade and see your hole.
It's a kind of magic!




MarkX

Quote from: roger_c130 on May 14, 2012, 05:48:37 AM
I have also been trying to use solid subtract as you both recommend.  However, when I execute the instruction, the smaller solid disappears leaving just the original circle.  Both were defined as solids.  I didn't extend the smaller hole solid beyond the main form so maybe that's what caused the problem.  I swear I never went thru this in the original 1/10 drawings.  It's crazy.  I'll keep working at it.  Thanks to both.
Hi Roger,

In your washer example, the objects labeled 2D to 3D are actually two cylinders or two cylinder-like objects. If you subtract the inner one from the outer one you end up with a washer. Its thick. Its actually possible to then use the handle scaling tool to resize it to 1/4". I've attached the altered version. Don't take my word for it that the wash is 1/4" thick, though ;-)

HTH
Mark

roger_c130

Phil and Mark, the default materials list goes back to the days when I was designing a 1/10th scale model.  Shows you how confused I was back then.  I've asked thru the forum if there was a way to clear them but it doesn't seem possible.  What was confusing about the color?  Do the holes show up well and are they truly holes thru the form?  Sure looks good. 

The washer was a poor choice.  I knew I had two cylinders.  I just tried to find out why a 2D drawing wouldn't work well moving to 3D.  My entire plan was drawn in 2D and that's very Big.  Lots of parts.  I don't try any 3D ops on the drawings until I've toggled to 3D.

How about the duplicate tube or whatever in the third drawing.  I've learned to recognize when the original form still remains and when I went after it in the third drawing what a surprise.  I've never seen a duplicate of the whole form.

MarkX

Quote from: roger_c130 on May 14, 2012, 07:31:49 AM
Phil and Mark, the default materials list goes back to the days when I was designing a 1/10th scale model.  Shows you how confused I was back then.  I've asked thru the forum if there was a way to clear them but it doesn't seem possible.  What was confusing about the color?  Do the holes show up well and are they truly holes thru the form?  Sure looks good. 

The washer was a poor choice.  I knew I had two cylinders.  I just tried to find out why a 2D drawing wouldn't work well moving to 3D.  My entire plan was drawn in 2D and that's very Big.  Lots of parts.  I don't try any 3D ops on the drawings until I've toggled to 3D.

How about the duplicate tube or whatever in the third drawing.  I've learned to recognize when the original form still remains and when I went after it in the third drawing what a surprise.  I've never seen a duplicate of the whole form.

Hi Roger,

I ignored the duplicate tube or whatever since sweeping doesn't seem to be an appropriate technique for this object.

If you have a plan that you have drawn in 2D, and its all "flat" stuff like you have in EXAMPLEFOLDFORMS, then you probably have a bunch of polygons on top of polygons. Just because you have a circle on top of a square, doesn't mean that you have a hole through the square. That would be like when Wiley Coyote drew a circle on the wall and suddenly a freight train came through.

You have to either subtract the circle from the square *before* extruding, or do the extrude first and then subtract the resulting cylinder from the resulting cube.

Of these two approaches subtracting the cylinder(s) afterwards is better. If you try to subtract a circle from a square, you will immediately notice cut lines running from the edge of the part and out to the circle. Instead of one part with a hole, you have two parts. I don't know if this is the way DC has always worked, but to me its annoying. If I drill a hole through a board and the board falls into 2 pieces, I have either a defective board or a defective drill or both.

If you subtract the solid cylinders from the solid cube, the resulting object is also cut -- but its redefined as a solid and the cut lines are hidden. So you can treat the resulting object like a solid.

Since its been 7 or 8 years, you might not remember all the steps you went through back then. Or maybe DC has changed.

As a side note, so far your real problem hasn't had anything to do with shading. Its not shading that's the problem. You haven't formed actual 3D objects that meet your specifications.

Good luck!
Mark

cavelamb

Quote from: roger_c130 on May 13, 2012, 06:39:01 AM
"It" is any form I'm working with right now.  I just used drawing a square with circle as an example.  I do exactly the same thing with all the forms I've created but haven't started to shade them until now.  The cut-outs use to be skipped some years ago, i.e., the circle in my square would show up as a hollow opening.  One more thing happening this morning is the color I wish to shade with.  No, No, it comes out white no matter what I try.  Well that's not true - I can get it to shade all black.

You may want to try moving the lights around a bit for better "color".