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.

shaded wire frame

Started by grant f, July 16, 2012, 09:06:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

grant f

Working in 3d  , how does , one keep , the drawing wire frame but  shaded. sort of show all edges
Grant

MarkX

Quote from: grant  f on July 16, 2012, 09:06:29 PM
Working in 3d  , how does , one keep , the drawing wire frame but  shaded. sort of show all edges
Grant
I'm not sure, but I think you're looking for "Hidden Line Removal" mode. There are 3 render modes: Wireframe, Hidden Line, and "Shading" or full render. They are represented by 3 icons on the top toolbar that look like images of little blocks in differing states of rendering. The icons are just to the left of the "2D" button.

Hidden line mode keeps some of the lines but hides others. If you use it with Acceleration enabled, then it will stay in effect while you move the view about.



Mark

Dr PR

Grant,

Many programs produce images with surfaces shaded and the edges of surfaces (wireframe) visible. DesignCAD has no similar rendering function.

One thing you can try is to change the selection color, select all objects and render the image. See the attached image - I set the selection color to black and selected everything so the black wireframe shows in the Gouraud shaded image.

Of course you will need to change the selection color back to something unique so you can see selections in wireframe mode.

And there is that selection handle. You can eliminate this by zooming far out before selecting, and draw a selection box that extends far off to one side. Then zoom in to the objects and the handle will be off screen. That's what I did in the second image.

It isn't perfect, but ...

Phil
DesignCAD user since 1987

JJG

#3
Quote from: Dr PR on July 16, 2012, 10:12:52 PM
You can eliminate this by zooming far out before selecting, and draw a selection box that extends far off to one side. Then zoom in to the objects and the handle will be off screen. That's what I did in the second image.
Yes, or feel free to set the selection handle outside of the area you want to see, what is easier than trying to extends far off to ne side ...
(ie, for example, and if you already fitted the view that you want, use Ctrl H, then ' to run the "point relative" window, and type in x or y a distance that you are sure it will be sufficient to transfer the selection point outside of your area of view.
Apart from this detail, Dr PR's methode is pretty good.

JJG

#4
Another way, to generate such images or representations you can find for example in Solidworks or similar, consists in to draw some lines, arcs or curves, placed slightly ahead of the solid(s) you want to highlight.
(for convenience, place them in a separate layer, so you can turn them off when they are not necessary ...).
It gives the following result :

JJG

But, that's right, such a feature actually lack into Designcad ;

I think it would be ("easily") doable, through a combination of shaded-view (whatever Smooth Shading Mode) overheaded by a Hiden Line Mode-view.

That's what I'm sometimes doing too, with the help of Photoshop ...
;)

Dr PR

Actually, if you place lines/arcs/whatever right on the edges of objects and then shade the view, DesignCAD will highlight the lines in their material color.

This can be rather annoying if you forget to delete the original lines after an "Extrude" operation. The wireframe option to disable renderable objects is useful for finding these stray lines.

Phil
DesignCAD user since 1987

JJG

#7
Phil,

as "placed slightly ahead of the solid(s) you want to highlight", I mean "deliberately placed slightly forward" of these solids, ie offset by a few tenths of millimeter (if the objects are relatively small), up to a few millimeters (if the objects are larger), it is a issue of size ratio.

please, see below :

grant f

Thanks  boys .    Grant.

prl

#9
Quote from: Dr PR on July 16, 2012, 10:12:52 PM
One thing you can try is to change the selection color, select all objects and render the image. See the attached image - I set the selection color to black and selected everything so the black wireframe shows in the Gouraud shaded image.

Of course you will need to change the selection color back to something unique so you can see selections in wireframe mode.

Yes, this is the method I use automated with the qs2.d3m macro.


'Program: qs2.d3m (quick shade 2)

'prl reminder - this routine is called with "5" hotkey

'revisited 6/6/2012

'This routine changes the background and also highlights the entire drawing. It switches the
'selection color to black to emulate the shaded with edges display style in sketchup or revit.


sys(1116)=0
gosub psmodeOFF

sys(36)=1
         
'save current background colors
br = sys(321)
bg = sys(322)
bb = sys(323)

'save current selection colors
r = sys(315)
g = sys(316)
b = sys(317)


' Sys2 is the mode, 0-4
'0 = wireframe
'1 = OpenGL Hidden
'2 = OpenGL Flat Shade
'3 = OpenGL Smooth Shade
'4 = OpenGl Hidden (no surface intersections)

sys(2)=3

'set selection color to black
sys(315)=0
sys(316)=0
sys(317)=0

'set background color to something similar to SketchUp
sys(321)=205
sys(322)=220
sys(323)=205

>selectall
{
}
'move cursor off in deep space somewhere
>sethandle
{
<pointxyz -1000,-1000,-1000
}

>redraw
{
}

'reset to original colors
'set background color
sys(321)=br
sys(322)=bg
sys(323)=bb

'set selection color   
sys(315)=r
sys(316)=g
sys(317)=b
sys(36)=0

'unselect everything but leave screen image alone
sys(36)=2
sys(80)=0
sys(36)=0
End


'subroutines follow
psmodeOFF:

psmode = sys(345)
  if psmode = 1 then
    >PointSelectMode
    {
    }
  end if
return



MarkX

That's beautiful. Too bad DC can't just work like that on its own all the time.

Mark

prl

Quote from: MarkX on September 14, 2012, 01:16:11 PM
Too bad DC can't just work like that on its own all the time.

DesignCAD can do it and I would love to work like this in real time (minus the transparent exterior walls which kill DesignCAD speed).  Maybe a few GDI  flag tweaks by Dt & Co and they could have a major new selling point (at very little programming effort).  Simple flat shading with  black edges is a great way to work.

JJG

Prl,

I also agree that this result is spectacular, well done, hats off !!!
And your macro-code works perfect too !

But it is reserved for designs that has only flat surfaces, and therefore no curved surfaces (such as cylinders, cones, balls, or other surfaces obtained extrusion along a curve, sweep-command, or by surface-connect-command), because in this case, then there are lines everywhere, and the effect obtained (ie the rendering) is completely "spoiled". The drawing becomes such as "unreadable", because of overloaded by lines on the curved surfaces.

For me, this type of representation (shaded and highlighted) aims to achieve a better "reading" of the design intent.
this is why I preferred to adopt the technique I presented above (with lines deliberately placed slightly forward of these solids), which approximates better what you can get with a CAD-sofware that works with the Acis graphics engine.

prl

Quote from: JJG on September 14, 2012, 10:59:46 PM
. . . such as cylinders, cones, balls, or other surfaces obtained extrusion along a curve, sweep-command, or by surface-connect-command), because in this case, then there are lines everywhere, and the effect obtained (ie the rendering) is completely "spoiled".

Yes, all those intermediate lines are ugly.  In those cases, I usually jump ship.



The graphic on the left is SketchUp, the graphic on the right DesignCAD.  Note in SketchUp that is an imported DesignCAD model. But for the technically minded, again DesignCAD could also do this. DesignCAD even when rendering hides the diagonal line in all the faces.  So it knows how to do this.




This graphic shows you what the DesignCAD model really looks like (this is in SketchUp). Note the diagonal line, in other words, all the faces are triangulated.  DesignCAD does some neat optimizing with grids and such but in essence the hidden diagonal is always there, just invisible.




And of course the wonderful smooth function in SketchUp.  DesignCAD could certainly use one of these.

Bottom line, DesignCAD's display options are outdated but the basics are there to improve upon.

JJG

Thanks Prl,

you are demonstrating us that, in other words, there is still hope !
and future for DesignCAD.
;)