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.

Mirroring and Hidden Line Removal problem

Started by Padmavyuha, September 04, 2014, 08:51:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Padmavyuha

I drew a wardrobe foot that has two of its sides sloped (the outer two faces are vertical) - I built it using planes and gravity snapping, and then collated all those planes into a single solid using ctrl-D (see, I do read the manual).

The problem is that I've then used Mirror to create the other 3 feet, but these feet, whilst in all other ways exactly as they should be, are transparent instead of solid when I'm in Hidden Line Removal mode (see image). Any idea why, and how to fix this? They each show up as coherent objects when I select them, so they're not unrelated planes.

Sorry to bombard you with all these questions, it's just that my trial version runs out at midnight (UK time) and I'm learning this on behalf of a friend who has the paid version, but is 260 miles away.


Dr PR

That is strange.

Sometimes I accidentally draw with lines instead of planes. They look the same in Wireframe, but behave differently in Hidden Line and Shaded modes. You can tell the difference in Wireframe mode by deselecting the "Wireframe Renderable Objects" option in the "Wireframe Command" dialog. Only nonrenderable objects like lines and curves will appear.

On the other hand if "Wireframe Nonrenderable Objects" is deselected lines and curves will not appear.

It sounds like you used planes to build the solids, so there must be another explanation.

I would bet that the cause of the problem is non-planar ppolygons (Planes). You can create non-planar polygons (all points in the polygon are not in the same geometrical plane) but it is a very bad idea to do so. If a polygon is not perfectly flat the rendering routines have trouble deciding "which way is up" relative to the surface. The program calculates a "normal" (line perpendicular to a surface) for each polygon. Each surface should have only one normal, but non-planar polygons have two or more. This can cause very peculiar results when shading or using Hidden Line.

****

There is (should be) a workaround for now. The Hidden Line mode "Hide Command" dialog has an option "Hidden Lines as Dash." If this is enabled solids will appear "transparent" in Hidden Line mode - the "hidden" lines are displayed as dashes. Disable this option and see if your "transparent solids" display problem goes away.

It still doesn't explain why mirrored duplicates behave differently from the original, but DesignCAD has had a similar occasional problem with shaded views for some time.

Phil
DesignCAD user since 1987

Padmavyuha

Thanks - the rest of the image (and the first foot I built) are all hiding their hidden lines fine, so it's not any global setting that's doing this. Something must be different about these mirrored objects, so now that I've given my brain a rest, I'll try and see what it is in Info.

samdavo

#3
My guess is that you don't have a plane on the "far side of the close foot".
Then when you mirror it you see inside the "close side of the far foot".

Try adding a plane in the distance to complete the cube (rather than a hollow box).

PS One of the things I really like about DCAD is that it is so reliable and simple when you mirror things.  Maybe it's me, but I find that some other programs still let the mirrored object slide around in space, and it can be a damned nuisance.

In the first jpeg, (Hidden Line Removal), HLR, you see a hollow box for the leftmost foot - and the furthest foot.  Note that DCAD still can accept that as a solid, IF you drew it with 5 planes for instance. (edit) I suspect most people would draw a solid box and then distort/stretch it a bit - or maybe surface connect. But not draw the individual planes, including those on the far side(s) - which as I say, I suspect you have forgotten. And if you draw the individual planes, be real careful in getting all 6 of them.

In the second jpeg ( using qs2), you will see that the left-most foot looks ok when rendered,  but not in HLR (i.e. qs2 effectively adds HLR on top of rendered). 


samdavo

#4
Pav,
get your friend to join the forum, and we'll teach him/her how to draw and dimension the foot like this ... (assuming he/she has the time to fiddle with this stuff - personally I add all my dimensions and notes in a 2D drawing,  and just add a simple 3D isometric as a screensnap).

Rendered, material texture (cherry), shadow, outlines shown in black, hidden line removal, and dimensions. 

(edit) Ok a bit of fine print left out :)  - including how fiddley that first jpeg is or can become in general.  By comparison, the second jpeg is dead simple, just use qs2 - but because accelerator is on, you don't get shadow or details of material texture. (2 cents)

I add a link to prl's initial post of a qs2 drawing which blew my personal socks off. Reply #9 here :-
http://forum.designcad.com/index.php?topic=4529.msg27991#msg27991
cheers


magic

Hi Padmavyuha,

I did this little film on your leg problem for the post that you deleted again: http://www.magicsystems.com/Wardrope%20leg.htm (i.e. before dimensions were introduced).

Sorry about the missing commentary, but I was in a hurry. Anyway, when I'd completed the movie, you'd deleted the post.
It's a kind of magic!




Padmavyuha

#6
Thanks for all the responses! I'll take a proper look at all of them later today, and pass on the info to my friend. The original foot (which I mirrored from) is solid from all angles, but mysteriously the all mirrored ones are not (have transparent front and back).

I couldn't figure out how to distort a solid box (which would have been my first choice), which is why I went for building one from planes.

samdavo

#7
Pad
Could you attach your dcd file maybe?
Otherwise we are all guessing -

but btw, when Phil says he hasn't seen this, (and I know I haven't either), then you can bet it is
a) extremely rare;   or
b) human error (which, believe it or not, can happen when you are learning a new program - no offence intended, and I apologise in advance if it is a clear case of a DCAD bug) :)

  (edit)PS The way I drew that first jpeg in reply #3 was to delete that 6th plane - and, as I understand it, that is what you are also getting (?)   "Hollow legs" ? - i.e. my nickname for the kids when they were younger :)  )

Dr PR

Sometimes it is easy to create something like your tapered foot by starting with a cube of rectangular polygon solid.

Then create additional solids to subtract from the original piece to get the desired curves or tapers. This is guaranteed to produce true solids.

Phil
DesignCAD user since 1987

Padmavyuha

Hi, thanks for all the ideas. I finally figured out how to move points on a solid (eternal problem, it's impossible to know how to find stuff in Help until you know what terms to search for, innit). So now I just start with a box, and then move 3 of the bottom corners. I love that this app works so much of the time with keyboard shortcuts - I was brought up on pre-GUI computing, so I'm much more comfortable blitzing along on the keyboard than faffing around doing lots of mouse-clicks on menus and buttons. I'm starting to get my head around the grammar of this app, so it's getting much easier to use.

Dr PR

Use great caution moving points in Point Select mode. You can warp sides of solids so they aren't planar, and I promise that will come back to haunt you.

Phil
DesignCAD user since 1987

Padmavyuha

I'll bear that in mind - but this is a very simple transformation of a very simple solid. All is well :).