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.

Options for a Cross-section quadrant

Started by samdavo, June 14, 2014, 03:06:34 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

samdavo

Just playing around with a crossectional quadrant - actually started with a 270 degree sweep followed by a vertical biscuit cutter.

1. If the section planes are left as planes, possibly a different colour ( and use qs2.d3m quick shading).

2. You can add a texture-mapped crosshatch to the section planes, but then qs2 doesn'lt seem to work.  You can improvise with shadows, but I am coming around to the opinion that shadows are unsuitable for engineering drawings.

3. Arguably better is to remove the section planes, and replace with a 3D hatch such as WIN_FWDDIAGONAL.  That way you can see through the hatch (almost like a lace curtain).   And with 3D hatch in a different colour (say green), you get an interesting effect.

4. Arguably best (imo) is as per 3. and again use qs2.
(edit) or possibly BOTH 3, and the closeup of the counterbored hole shown in 4.

prl,
Actually I have a question.  Sometimes qs2 is reluctant to show all "edge-lines".  I've never noticed it before, Doubt is has anything to do with 3D hatching (?) , or texture mapping (?),  but maybe it does.



prl

Sam, the way (order) DesignCAD displays things isn't always a given, what with all the different settings and accelerated, non-accelerated etc.  And in my opinion, DesignCAD often confuses itself.

If you run across an example that you could post, I would be interested in dissecting it a bit.

By the way, what was your method for cutting out the wedge?

samdavo

#2
prl
I will go into some detail.
Firstly the 2D drawing gives you all the evidence you need.
Make the shape in plan into a plane (MP)
Likewise the holes
and the half-elevation into a plane (after stretching it to the enveloping circle RADIUS) - see first jpeg, top right.

Basically the 270 degree sweep (W) of the stretched front view about BC achieves all the circular shapes;
the extrusion (Ctrl+Shift+ X) of the plan along another BC (later superimposed with the first);
and the extrusion (ditto) of the boltholes along AD ( which is longer than BC in both directions).

Superimpose them all (using point B in each case)
Then Solid Intersect, and Solid Subtract.

Back to your question, I use 270 degree sweep to get the cut-out quadrant.
cheers

PS Suppose it was a simple rectangular plate, or some other shape where sweeping didn't help. In those cases the red plane of the plan view is actually made up of four quadrants, (mirrored about x and y), and it is easy to drop off a quadrant before you extrude.  which also gets the same/similar final result. 

samdavo


samdavo

#4
I'm gonna add another option for the cross section(s), and that is to make it/them transparent. (Step 5);

Btw, what I would personally do then is make a screensnap of that isometric, and add it to the drawing, after changing it to 2D. (Step 6).

I can then export that as dwg, and send that to an Autocad user, - as a 2D drawing.(2 cents)

Quote from: prl on June 14, 2014, 05:20:23 AM
If you run across an example that you could post, I would be interested in dissecting it a bit.
I will keep an eye out, but it can be a temporary problem (i.e. where qs2 doesn't kick in when asked to), where perseverence sorts out the problem, whatever that problem was.  Certainly it is rare.  Cheers

samdavo

#5
prl
I find I most like the option of removing the section planes (you have to explode the solid to do that of course), and replacing them with 3D hatching ( WIN_FWDDIAG and WIN_BACKDIAG), and then using qs2.d3m ( what a macro!!).

I have also redone the holes with only 12 facets instead of 120 - (I now realise why they looked black - too many vertical facet edges).

Finally, I also find myself experimenting with lighting to get the best out of your qs2 macro -
and under these circumstances I get a pretty good effect with
1) one light with H=0, V= 0 move with eye ( i.e. straight ahead)
2) a second and third with H=90, again move with eye, (both from the right hand side),
   a) the second with V=45 (to lighten up the grey I chose for the all surfaces including top, RGB = 146.146.170, which is otherwise mid grey)
   b) the third with V= -45,  (to illuminate the counterbore underneath)

All three lights have intensity settings of 100, 100, 100. (just to eliminate that as a parameter). 
The effect of this is:-

1. there is a difference in the grey on the front face vs the side (which is brighter, due to two lights there) - in fact there is plenty of contrast as you go around the circular ram of the piston, dark and light; and
2. the counterbore shows through better and brighter (with the light underneath as well).
3. the hatching gives a lace curtain effect, which is similar to transparent (but clearer and less hassle imo).  This pseudo-transparency really helps to give a clue of the counterbore underneath.   If you compare the green solid above the grey one, this still has the solid section planes, and is not as good imo. 
4. As an afterthought. compare the (grey) interior of the holes, compared to black in the earlier posts - another improvement imo. (As per second sentence in this post).

PS In case you open the dcd file, it all looks pretty bright / hopeless, until you run that qs2 macro of yours.

cheers  (and thanks again :) )
sam

prl

Quote from: samdavo on June 15, 2014, 02:01:51 AM
and then using qs2.d3m ( what a macro!!).

Happy neurons!  Sam, it is amazing what you can do with a flint ax.  Your posts are my version of the "Discovery" channel.

samdavo

well you made the axe -
I'm just trying to hone it a tad :)
and maybe someone else will be blamed for chopping down the cherry tree. (?)

Dr PR

Sam,

Shadows are essential for some shaded views. See the two attached pictures. Notice the lap siding on the house. Without shadows it is a continuous "flat" surface and you cannot distinguish the individual boards - might as well be slabs of plywood. You need the shadows to make the individual siding boards visible. This drawing (from the first 3D version of DesignCAD) was the reason I begged for shadows for many years before DesignCAD eventually got them.

Any time you have two objects of the same material/color with parallel surfaces they will shade exactly the same from a single light source (like the sun) and you cannot distinguish one object from another, even if the surfaces do not lie in the same plane. Shadows will often eliminate this ambiguity and reveal surface details.

****

You can control the darkness of shadows in the "Options/Options/Light Source" dialog. Click "Shadow Options" and set the "Shadow Softness" slider to 0.0 for no shadow or 1.0 for totally dark shadows. I find 0.3 to make nice light grayish shadows that allow details to still be visible in the shaded areas.

Note: Leave "Shadow Tolerance" at  0%. No one seems to know what this is supposed to do, but what it actually does is cause the shadows to wander away from the object that is casting them. You get odd gaps between the shadow and the object casting it. Totally unrealistic.

****

Also, I set the "Light Source" "Ambient," "Diffuse" and "Specular" sliders to 100% (on a few occasions I might set "Ambient" to a lower value to get a special dark effect).

The diffuse and specular controls in the light source are totally crazy! These control the shinyness and coarseness of all surfaces in the drawing. Suppose you have two objects, one with a smooth shiny material (Aluminum) and another with a rough dull surface (Concrete) - these properties are set in the "Materials" dialog. However, if you set the "Specular" slider to 0% the Aluminum object will have a dull surface, and if you set it to 100% the Concrete object will be shiny. Likewise the "specular" control for the light source changes the surface texture of the object material! This is just stupid! In the real world surfaces don't change from shiny to dull depending upon which light you use to illuminate them!

If you set both light source sliders to 100% the materials properties will determine what the materials will look like with all light sources - the way the real world works. The only thing that will affect surface appearance will be the color of the light - again, the way the real world works.

I hope when the new display code is incorporated we will have more realistic lighting controls.

Phil
DesignCAD user since 1987

samdavo

#9
Phil,
Thanks for that great summary of shadows.

I have finally twigged to the fact that (for me anyway)
a) shadows are for artistic presentations,  eg - as per your house
b) and qs2 is for drawings of bits of machined steel (which is my bread-and-butter).

But ...
BOTH have a stack of fun aspects attached.

Lights, number of, colour of, location of, spotlight vs directional, etc.   

Just watching TV here ...  I have been playing around with this myself, especially qs2.   

Here are a couple of options (based on those 2 options) for the standard drawing "drumset".

1. Using shadows, or
2. Using qs2 ( with the drum-cylinders all in layer 2, and layer 2 turned off (unselectable) - because qs2 (as you know)  is just a trick of selecting things whilst they are shaded, where the "selection" is wireframe/hidden lines removed.  I believe you and prl were discussing exactly that on a thread a few months back.

I have colours from 45deg right (purple) and from 45deg left (dark blue) - trying to get a disco effect I guess.

Using qs2, the same colours show up on the sides of the drums (especially if you turn off the lines down the cylinder, i.e. turn off layer 2).
 

prl

Quote from: samdavo on July 07, 2014, 04:21:30 AM
Using qs2, the same colours show up on the sides of the drums (especially if you turn off the lines down the cylinder, i.e. turn off layer 2).

A wonderful discovery or invention by you.  I like qs2 but always hate all the visible facet lines.  So your saying by creating a multilayer solid, with offending hidden facet lines on a separate layer, turning off that layer and then qs2.d3m, gives us the clean flat shaded look?

I'll definitely look into this and how I can automate that.

samdavo

#11
Quote from: prl on July 07, 2014, 04:48:41 AMI like qs2 but always hate all the visible facet lines.  So your saying by creating a multilayer solid, with offending hidden facet lines on a separate layer, turning off that layer and then qs2.d3m, gives us the clean flat shaded look?
Absolutely - exactly in fact :)

Here is the same set of drums with qs2, but with all layers visible - make that edible / selectable.

Sure you get "wanted lines" to delineate planes and widgets,
but you also get all those "unwanted lines" eg on the curved surfaces.

PS , whilst I am at it, I add a drummer's view of the drums, with the cylinders etc turned off (layer 2).  = second jpeg.
And I'm starting to think you can simulate shadows by shooting a dark colour from the left, and a brighter one from the right (2 cents).   

(edit) I attach "just 2 drums" - i.e. I reduced the file size to make it post-able.

samdavo

#12
and another example of how good qs2 is ...
standard drawing "hotel" -

a)  "common - mist" washed out appearance when shaded, with no clear delineation between windows and walls etc
b) nice crisp outlines after using qs2  (and turning off the dome, which I have put in layer 5, to avoid unwanted "facets").

Unwanted Common - mists  and unwanted facets.  (and no, this isn't a political forum) :).


Dr PR

Sam,

I haven't used qs2 because, as you say, my saved renderings are "artistic" - or as I would say "realistic" (even though DesignCAD's shadings aren't very realistic.

Please elaborate a bit on how you get a multi-layer solid with the facet lines on a hidden layer? Do you explode the solid and move certain parts to different layers?

Is there some trick to showing the outlines of things like spheres and cylinders - that have grid surfaces - without showing the facets? In other words, a sphere outline should appear as just a circle, and a cylinder, torus, etc. should just show as the outline of the visible edges as seen from the point of view.

There has been discussion on the Forum for years for having something like qs2 as a native function in DesignCAD. Getting rid of the facet lines but still showing the outline of the grid surface was one of the requests.

I typically do this by saving a view of a 3D drawing as a 2D drawing using "Hidden Line" with hidden lines hidden. Then I open the 2D drawing and trace over it on new layers to get the outlines I want. Then I delete the original hidden line image. It is  a lot of work, but it gets rid of the damned facet lines.

Phil
DesignCAD user since 1987

samdavo

#14
Phil,
as it turns out, for both standard drawings "drumset" and "hotel" above, I was able to select the cylinders and domes etc ( i.e. grids and/or solids that would present too many facets) - and simply change them to some layer that I just turned off.

then render with accelerator on
then run qs2.

Then because qs2 is simply a trick that highlights selection(s) using black as the selection colour, ( i.e. all you are doing is rendering then selecting objects) - then because eg the dome of the hotel is in layer 5 which is turned off, then it doesn;t get the "black selection lines".
cheers

I enclose the standard drwg Hotel, in case anyone wants to go through these steps themselves.  Also another copy of qs2.d3m

PS On another matter, I find that parts of solids that were formed by subtraction can be selected without the need to explode the solid into planes - all discussed elsewhere recently/somewhere around her anyways.

And if you look at the second jpeg, some spheres and part-spheres have facets, some do not,