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.

Unwanted multiple Regens when Shading

Started by samdavo, May 20, 2013, 03:13:35 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Lar

#15
Sam, you are inventing new and unnecessary complications.

In response to various items in your last 3 posts (and other related stuff) I offer the info below:

  • To close one drawing file from many: Windows menu> clicking a name of the drawing file: makes that the file active one... then File menu> Close. This is the standard approach for all Windows programs that can have more than one file open at a time, except that...

  • ...Dcad list a filename for each drawing window of the file (most other programs do not allow multiple windows for a single file). Clicking a particular name will not only bring that file to the front but will also bring that window to the front.

  • If you want to return to a file with the same window active as you left it and cannot remember the name of the window that was up front: go to 'File' menu and click the name of the file from the list at the bottom (or alt+F+the number of the file in the list {note that the order of the list would change as files are saved})

  • A 2d file can have as many windows as you wish (as Prl said). The single window is only the build in default.

  • Window menu> Set as dcad tile can save 2 separate settings - one for 2d mode and one for 3d mode.

  • Dcad remembers how the drawing windows are configured for each mode (supposedly including working planes). Switching from one to the other would bring back that mode's configuration. However...
  • ...If you maximize a drawing window then switching to another drawing will bring that file's active window in as maximized.

  • A dcad file is not permanently 2d or 3d. You can start a file in 2d mode and switch it to 3d mode at any time, or vice-versa.

  • While in 3d mode you can draw 2d stuff. Eg, a circle is a 2d entity which can be drawn in either mode. There are a few entities you cannot create in 3d, such as double- and multi- line entities. However...

  • ...While in 2d mode you cannot create 3d stuff (note that a 'plane' is actually a 2d entity. It just shades in 3d mode), but...

  • ...While in 2d mode you can manipulate 3d stuff (eg, move them, duplicate, delete, move their points, etc.

  • To 'save (a 3d drawing) as 2d': What this does in 'flatten' a 3d model so that it appears exactly as it did in the window that was active but all the z values are zero (*). This is similar to saving a bitmap image of the window except you are saving vectors. To do this you must 'Save As...' and in the dialog that opens and activate 'save as 2d' somewhere along the lower part. You can also activate 'with hidden-line removal' and 'line clean-up'. You will have to enter a new filename because this would be a separate drawing. This command converts everything to vectors in the new file (eg, circles and text are broken up into vector segments... some entity types are ignored, can't remember which right now). A problem with it is that it saves a vector for every edge of every entity so solids and co-planar stuff end up with multiple overlapping lines
  • Prl's method of getting 'hidden-as-dashed vectors involves 'saving as 2d' 2 versions of the 3d model... one with 'hidden line' active and one without. He then makes the linestyles all the vectors in the un-hidden file 'dashed'... then he combine the two 'save as' files. The dashed lines of the un-hidden' file are hidden by the solid lines of the 'hidden' file.

    (*) When 'saving as 2d' the x, y and z values are taken in relation to the active window's view angles. Eg, a top view would save the actual Z values as y and the actual Y values as z so the drawing 'stands up' in the default 2d viewing angle (ie, in the XY plane)

  • I think I better quit here...

Lar

samdavo

#16
Quote from: Lar on May 23, 2013, 06:41:36 AM
Sam, you are inventing new and unnecessary complications.
  • To close one drawing file from many: Windows menu> clicking a name of the drawing file: makes that the file active one... then File menu> Close. This is the standard approach for all Windows

    ... Clicking a particular name will not only bring that file to the front but will also bring that window to the front.

  • A 2d file can have as many windows as you wish (as Prl said). The single window is only the build in default.
........
  • To 'save (a 3d drawing) as 2d': What this does in 'flatten' a 3d model so that it appears exactly as it did in the window that was active but all the z values are zero (*). ... and activate 'save as 2d' somewhere along the lower part. You can also activate 'with hidden-line removal' and 'line clean-up'. separate drawing.

    • Prl's method of getting 'hidden-as-dashed vectors involves 'saving as 2d' 2 versions of the 3d model... one with 'hidden line' active and one without. He then makes the linestyles all the vectors in the un-hidden file 'dashed'... then he combine the two 'save as' files. The dashed lines of the un-hidden' file are hidden by the solid lines of the 'hidden' file.

      (*) When 'saving as 2d' the x, y and z values are taken in relation to the active window's view angles. Eg, a top view would save the actual Z values as y and the actual Y values as z so the drawing 'stands up' in the default 2d viewing angle (ie, in the XY plane)
    Lar
Thanks Lar
all very helpful, and I'll research it more...
But as for saving files ( or just seeing what's open and how many tiles of each - until I understand things better, I quite like cascade :)

I've had a go at superimposing two 2D versions of an isometric of a box with a pyramidal spike at one corner.
(I set the working plane to be through three corner of the box - not hard to guess which - to give me a 2D version of the approx. isometric).
I then VC'ed vector converted (some of the vectors were still joined so I selected all, and "broke lines")
then turned one to hidden lines ( which was pretty painful to clean up)
and superimposed them on the same drawing.  (i.e. pretty much followed your recipe - as I understood it to be).

I enclose the original dcd and the final results.
Getting there, but still pretty painful (and far from perfect as yet).
Thanks for the tips btw.   But I'm secretly praying that I don't have too many objects where dotted lines are required to understand the drawings lol.

PS Probably worth tracing it as I believe Phil suggested (2 cents)[/list]

samdavo

#17
Here's another way I thought would be "the answer to my prayers" - but sadly no.

Lemme explain...
My mission is to do 4 views ( not just one) with hidden line dotted and of decent thickness.
V22 does "semi-exactly" what I want in Model Space, (which I have to do a screendump of, and lines are very thin) ...
but until DCAD V23 or whatever does it is Paperspace (as Magic has requested) that may have to do.

I suddenly remembered that when you open a drawing in V12 (which I still have),  and select all - all the lines become em-boldened.
So I opened the V22 drawing in V12 - only to find they didn't have the "show hidden lines dotted" option then lol.
rats !

Anyway, I post the result of just importing the same 2D drawing as I just posted - and you will see that the lines are bolder.
BUT not what I was after - which was to avoid all that work, just to get one view -sheesh.


samdavo

#18
Quote from: Dempsey on May 22, 2013, 09:13:45 PM
Sam,
Can you make the .dcd file, where you experience the problem with, available to us?

If it works fine for us then we can eliminate a drawing problem, and need to look at your DesignCAD and/or operating system and/or (video) hardware.

ok Dempsey
I loaded the standard dwg of a Camera.
And I went into the Main view (zoomed up to fit screen)
and sure enough it has the same regen problem
and won't render.

I enclose it as is, where is, without further meddling in case it corrects itself.
(Note that I am only looking at one tile, and that's how it hopefully loads for you).
cheers
sam

I will also enclose a scrensnip I was able to get before the problem arose - you will notice the dotted lines (albeit still faint).
It was only when I went into the Main view for a better closeup of those dotted lines.
cheers
I won't be offended if you give up after a few minutes :)
but hopefully you'll find that it doesn't render (for more than a millisecond),
or draw with hidden line removal ,
or draw with hidden line dashed. 

Dr PR

Sam,

Here is a screen capture of what I see (Camera.jpg) after the file opens (in wireframe) and I shade with Gouraud with graphics acceleration enabled.

It is odd that the "Window" menu shows four windows, but only the "main" window is visible. The windows must be stacked on top of each other. That may be the cause of your problem. If the four windows are regenerated in sequence you will see three wireframes and one shaded window. If the shaded window isn't on top it will be visible only a short time before another window is regenerated on top of it. However, on my machine the "main" window is on top.

After executing "Window/DesignCAD Tile" I see what is in the "Camera 4.jpg" image. This is the default DesignCAD tile setting. Try using the "Window/DesignCAD Tile Settings/Restore DesignCAD Tile" function and see if it clears up your problem.

Phil
DesignCAD user since 1987

samdavo

#20
Thanks Phil - ok we're getting somewhere ...

Here's what happens when I open it.   And also shows typical settings that refuse to regenerate (on this occasion).   I am hopeful if not confident that if you try that you will have the effect I've been talking about.

The following comments are relevant:-
1.  Firstly what can we eliminate?  Note that I have (one) entire view, rather than all views. (so it's not about other tiles being involved).
2. I tend not to use Graphics Acceleration, because
a. it prevents use of Phong, and also the possibility of shading just a Section.

I enclose those settings - and I suspect it has something to do with them - because I can get around the problem using other choices, (edit) then I can get the problem back again with these settings...
   
(edit , the summary mainly reviews graphic acceleration)
I posted this summary on reply #47 of the transparency thread...
http://forum.designcad.com/index.php?topic=5030.47

OK - back to superbasics.
Choices (based simply on what options are greyed out when you
choose the general hidden line or shading option)

Shading with "Quick(flat)" - sounds like a coffee in a hurry, but we move on -
GA available?                       YES (unless you also want Section clicked);   
Just a Section?                     YES (unless you have GA clicked)
Transparency? no;
Colour Material?                  YES;  (the only Additional Setting
available, i.e. no fogging, anti-alias, transparency)
Texture mapping? no.

Shading with "Gouraud(medium)" - (where did that name come
from? - not in dictionary.com for instance, which responds with "do
you mean gored?"  (=  bullfighter saying he's just been gourauded)
or "do you mean Gourami?" (= "a large air-breathing nest-building
freshwater Asiatic fish... used for food " lol - like a lotta fish are) - but
again we move on -
GA available?                       YES (unless you also want Section clicked);   
Just a Section?                     YES (unless you have GA clicked)
Transparency?                      YES;
Colour Material?                   YES;
Fogging?                             YES;
Anti Alias? no (i.e. we now have more Additional Setting available, i.e.
fogging and transparency, but no anti-alias)
Texture mapping?                 YES.

Phong (best quality) - Chinese brand of mobile phone maybe?
GA available? NO - it goes straight to Gored Gerrard if you try   
Just a Section?                     YES (unless you have GA clicked applies
to all of the following)
Transparency?                      YES;
Colour Material?                   YES;
Fogging?                             YES;
Anti Alias?                           YES;
Texture mapping?                 YES.

Which is a longwinded way of saying
a) you can't Sextion with the accelerator down, and
b) nor can you Phong (with the accelerator down).
c) you need Gerrad or Phong if you want texture mapping or transparency.
d) Graph accelerator deletes anti-aliasing



I also posted somewhere that I discovered that
you can't get decent dashed hidden lines
UNLESS you have Graph acceleration checked.

I'm guessing that discovery followed the above summary, which was more about transparency and shading. 

Note that the settings that give the problem include accelerator unchecked.

But not only does the dashed hidden line not work, I found that shading doesn't work either.

As for DesignCAD Tiles, I haven't gone the extra yards (yet) and checked, but certainly that was at the heart of the entire thread.  i.e. playing around with tiles sorted it out.   So maybe it also has something to do with them being piled on top of each as you say (??)
 
cheers

PS The difference between the two attachments is "acceleration" off and on resp.
The first has hidden lines back in wireframe (after a millisecond presumably of dashed) -
(EDIT) the SECOND CORRECTLY remains with them dashed. 

And similar comparative problems with rendering ( hope I am right with that bold summary)

Lar

#21
Quote from: Dr PR on May 23, 2013, 09:37:42 PM
It is odd that the "Window" menu shows four windows, but only the "main" window is visible.
This happens when a window has been maximized. If you press the 'restore' icon (the middle of the 3 in the top-right of a drawing window, but when a window is maximized they are just below the 3 main set that operates on the whole program window) the other windows would be accessible.

Lar

Dempsey

#22
Sam,

I have been scratching my head to understand your problem... BUT I think I finally got you.

I reproduced the settings from your last reply as in "setting WITH regen problem.jpg". After I hit OK the drawing shows with the dashes of the hidden lines. However, doing a manual Regen or scrolling the drawing causes the dashed hidden lines to disappear. I believe that to be a BUG.

EDIT -- What is even worse is that the rendition of the dashes are very poor in non-accelerated mode compared to accelerated mode.

Finally an observation.
QuoteFirstly what can we eliminate?  Note that I have (one) entire view, rather than all views. (so it's not about other tiles being involved).
You may see only your main 3D drawing window, but when you click on Window on the main menu you see at the bottom of that list all four windows listed. That means that you maximized your 3D main window AND that your other windows (side, top, front) are still open although obscured by the main window!
Dempsey

samdavo

#23
Quote from: Dempsey on May 24, 2013, 01:32:11 PM
Sam,
1. I have been scratching my head ... think I finally got you.

2. I reproduced the settings from your last reply as in "setting WITH regen problem.jpg". After I hit OK the drawing shows with the dashes of the hidden lines. However, doing a manual Regen or scrolling the drawing causes the dashed hidden lines to disappear. I believe that to be a BUG.

3. -- What is even worse is that the rendition of the dashes are very poor in non-accelerated mode compared to accelerated mode.

4. Finally an observation.
QuoteFirstly what can we eliminate?  Note that I have (one) entire view, rather than all views. (so it's not about other tiles being involved).
You may see only your main 3D drawing window, but when you click on Window on the main menu you see at the bottom of that list all four windows listed. That means that you maximized your 3D main window AND that your other windows (side, top, front) are still open although obscured by the main window!
FIRSTLY I"M GONNA SAY WE"VE CRACKED IT lol.  See below.

Dempsey - thanks
1. "I have been scratching my head" ... My mom used to respond with "don't get splinters now :)"  - sorry back to work. Not (intentionally) being rude.

2. I'm surprised you got dashes (even poor ones) with those settings of mine , but we move on. (edit AND with only one a. ANY view maximised and b. GA off ;  edit - cos they all maximise if one is maximised, and I can't get any dashes with those two conditions in play).

3. Re "the rendition of the dashes are very poor with GA OFF" - I suspect (if you don't mind me saying so) that you have all 4 views open?   (edit I should have said "that you don't have the current view maximised";  incidentally, think I am right - but either all views of a given file are maximised, or all are restored down)

4.  Re the other views - You are right when you say they are still there,  and I was (almost certainly) wrong when I said they could be eliminated. nope , I take that admission back - it is all about whether the current view is maximised or not, irrespective of whether other views are present in the background.(2 cents) 

OK as Sherlock would say, this is an alimentary subject - so let's clear it up and move on.

BUT IT SEEMS TO BE A COMBINATION of GA OFF, and Maximised View that causes the regen problem.

A. START with the enclosed drwg of a case - and all 4 views.
try dashed hidden lions (entire view only - not all views) with
1. GA off - poor quality as you say
2. and GA on - better dashes.
(note that you have to be prepared to add a new point in the view you are working in to finish off the second rendition)

B. stretch the main view to fill the screen (which incidentally is not the same as maximising it)
try dashed hidden lions with
1. GA off and (dashes, albeit poor quality)
2. GA on - exactly as above. (better dashes)

C. maximise that main view (nothing much changes to the untrained eye)
try dashed hidden lions with
1. GA off -  NOTHING! = regen problem
.
2. GA on - no probs and better dashes.

So it is a combination/confragation(?)  of those factors in C.1. that causes it.

PS I enclose another drwg of a (brief)case which - FOR A MOMENT THERE - I thought was different. 

It has all 4 views open, and you can't get the regen problem it seems with all 4 views open. (edit - unless one is maximised)
Note that you get poor dashes with GA off, and better dashes with it on.

Anyway, I'd better dash - the dog is pestering me for a walk - regular as clockwork she is - better than a digital watch.

samdavo

#24
Probably final post here - unless someone wants to discuss further but ...

But thanks for the assistance Phil and prl. Also ...

1.  This is not just about dashed lines.
I enclose screen snap of what happens in the case of C1 , (i.e. view maximised, and GA off) - but this time you can't get shading either.  (I mark up the jpeg to that effect).
Nor can you get hidden line removal (completely). 

2.  incidentally, I checked this particular problem out in other views , and any view (Main, top, side, or front), when maximised and GA off - have this problem.  They don't render in hidden or shaded. (2 cents)

PS I would probably appreciate confirmation on this point, from those in the know - but SOMETIMES I notice a difference between Main View and the other views. 
- Edit. I might get my facts together and start another thread. IF justified, probably not.

PPS I was gonna add a comment about Zen and the Art of Motorcycle Maintenance, - and noise etc - but I'll do that in the "Rants" section :)

Lar

Sam, a thought just crossed my mind concerning your first post in this thread, about shading then immediately going to wireframe... Many time 'graphics acceleration' has been mentioned in these posts but hardly is it ever explained.

My question to you is: are you aware that with graphics acceleration (GA) disabled a shading lasts only as long as the screen is not regenerated? Eg, if you shade without GA, then zoom, or pan or rotate the view, etc, the screen returns yo wireframe. For the screen to remain shaded GA has to be enabled.

Lar

Dr PR

Here is another consideration. I am not certain (I think I did test this at one time) but I'll bet that even when some windows are hidden behind the main window, those hidden windows are being redrawn every time the drawing changes.

Each window will be redrawn two times (and two more if Point Select Mode is active and something is selected). So you may see only one window but you could be having eight redraws every time you do something. With small files and a fast machine you may not notice, but with large files (>50 Mbytes) those extra windows can slow the program down to a snails pace.

I know it is my paranoia speaking again, but I try to use the absolute minimum number of features necessary to get the job done. That means few windows (or one), wireframe most of the time, Gouraud shading with graphics acceleration for previews, and no transparency or fogging. I do enable material colors, and I use Phong for final renders.

Phil
DesignCAD user since 1987

samdavo

#27
Lar and Phil, before responding ...
Firstly  I'll congratulate myself that I find I can add a jpeg to an old post (forgot to do so when I posted it ) -  refer reply #24.

Secondly, I'll continue with some further pieces of the elaborate-unrenderables-conspiracy-theory jigsaw puzzle

OK..
I enclose another copy of the briefcase drwg as 3+1 tiles.
I've gone on to rotate the front view marginally.

a. Load it. All is good at this stage.  You can Gerrard (shade) without GAccel.
b. Then you maximise any view - say front (top left) - You can no longer Gerrard without GA
c. When you switch to another view in background, eg front - since it has been automatically maximised, it too cannot be GERrarded with GAccel.
d. You close all views other than front (still maximised).  No change - You still cannot GER without GA.
e. Finally, you "restore down" the front view, - again. all is good, (back to virginal).

Morals of the story. 
1. Sometimes you cannot shade or hidden-line-hide (or dash albeit poorly);  and it appears to be due to a regen problem
2. Only whilst maximised and GA is off do you have this problem
3. It has nothing to do with how many views of that file are open.
4. If you "restore the view down", the problem goes away - i.e. everything reverts to pristine virginal conditions. i.e. the fact that it was once maximised is forgotten.

Quote from: Lar on May 24, 2013, 09:22:33 PM
Sam, a thought ... Many times 'graphics acceleration' has been mentioned in these posts but hardly is it ever explained...
... are you aware that with graphics acceleration (GA) disabled a shading lasts only as long as the screen is not regenerated?
Lar
Lar - no I had no idea what GA was for.
I simply found it helps sometimes, and hinders others.
But it appears that what you say is correct - isn't slowly eroded - and I still have to check if it applies to new solid added -

I wouldn't want shading to be permanent ( for the reasons that Phil points out - i.e. keeping in wireframe unless essential) ...

BUT, IN THE SPECIAL CASE OF HLD (hidden lines dashed) - it is a MASSIVE assistance in visualising what's going on.  I'll try that for sure thanks.  (edit,  I notice that after something is selected, and then you move on, the dotted lines disappear temporarily - but you only have to regen (Ctrl+R) to sort that out - promising ! - Note that this pargraph is all about leaving HLDwithGAon = hidden lines dashed with Graph Accel on)
sam

PS I post most of those screendumps here, plus a couple in next post.
Note that "after maximising front" might look like it's only a small "restored down"view, but that's only because I haven't bothered to "fit to window" (2 cents)

samdavo

#28
continuing with those jpegs

in the last one, I had no choice but to move the window to the right, because the... "message window that I pasted back on the screen in order to get that screendump of what was going on" ... wiped out the shading.   (and I have a funny feeling there's a command there somewhere that I could have used to fix that, but I forget what.

Maybe that last comment  is wrong.

However what I think is right ... On that score ( i.e. message windows screwing up shading etc) Remember I am using GA off - and I suspect you are right - had I had it on, it wouldn't have mattered (2 cents)

samdavo

#29
Quote from: Dr PR on May 24, 2013, 09:58:46 PM
1. Here is another consideration. I am not certain (I think I did test this at one time) but I'll bet that even when some windows are hidden behind the main window, those hidden windows are being redrawn every time the drawing changes.

2. ... I try to use the absolute minimum number of features necessary to get the job done. That means few windows (or one), wireframe most of the time,

3. Gouraud shading with graphics acceleration for previews, .
Phil
Phil,
1. I disagree ( based on the evidence of the last posts) but you could be right indirectly maybe - who nose.    I am choosing single (entire) view, so only one view should be getting Gerrarded.    I find it interesting that when you stretch a view to fill the screen, you don't have the regen problem;
but when you maximise it ( no change ostensibly) you have it.
Obvious (on another matter) but when you maximise one view, you effectively maximise all views of that file. 

2. I absolutely agree, although I will see how stable "HLDwithGA" is.  i.e. hidden lines dashed with Graphics Acceleration on).  (edit, pretty stable, except some manual regens necessary after things are selected, I suspect)

3. Just a thought, but if it is only temporary, you might as well have GA off when you Gerrard yes?  (Or are there other benefits to GA that I'm not aware of maybe?)

Finally I'm gonna say that you were 100% right when you said a few posts ago that the answer was solved by resetting the tiles (but either to 2x2 or 3+1  , no difference on that score imo).   And you were right because...
wait for it...
you agreed with my first post!!!  Which I stumbled across without having a clue of what we all collectively now know after this brainstorming team effort lol.

Don't you love smart asses, :)
cheers