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 1 Guest are viewing this topic.

samdavo

Unwanted multiple Regens when Shading - which leave you back where you started

I found recently ( like a couple of days ago - or about 50 % of the journey of learning 3D lol)
that sometimes you click "shade/render" eg Phong or Gored Gerrard or whatever,

and the flam..g screen shows you a millisecond of render
then reverts to wiremesh ..
no matter how often you try - it does it twice and you lose it.

I have found a way to correct this.
OK I hear you say - such bludy trivia lol.
But believe me, when you've been swearing at a perfectly illogical set of circumstances, you start to feel STRESS lol.

the way (edit correction :  ONE way ) to fix this is to go to "Window \ DesignCAD tile settings \ Restore DesignCAD tile".

(1.5 cents)

PS they say that a bit of stress is good for us, eg when trained rats have to learn something logical, eg press a red button -  to get a grain of wheat or whatever - (and they live longer than rats that are "spoonfed" )

but the definition of real stress, is when the rat gets a grain of wheat one time - and an electric shock the next - randomly lol.   THAT's how I felt lol.
cheers
enjoy the grains of wheat WHENEVER you wish to partake thereof :))
(and with only a few electric shocks)

Dr PR

Sam,

To clarify what you have said:

"it does it twice and you lose it."

It does what twice? You lose what?

You say you can stop whatever it is doing by clicking "Restore DesignCAD Tile."

Does this just solve the problem temporarily while the file is open? Does the problem reccur when the file is opened again, or is the file permanently fixed? Or does this solve the problem forever with all files?

Phil
DesignCAD user since 1987

samdavo

#2
Sorry Phil, but I'll start with a question.  I'm trying to reference post #43 on the transparency thread
http://forum.designcad.com/index.php?topic=5030.30
I notice the last two digits are the post number at the top of that page. Hence would I be right in assuming that post #43 was
http://forum.designcad.com/index.php?topic=5030.43
?

ok, now to answer your question .... Here's what I said at the time :-
Quoteok - something strange going on lol.

(edit... if that his happens to you - and it's happened to me a few times now
I go to "Windows \ DesignCAD tile settings \ Restore DesignCAD tile " - and you get a new set of tiles - and the duplicated regen seems to return to a single regn, which works - leaving you with transparency  - or even just basic rendering/shading for that matter

I just opened that 1.9MB file "peace truck 3b.dcd" , the same one that (yesterday) took 4 seconds to render (Phong), including "enable transparency" and "enable color material"...

and it still takes 4 seconds to render ( you get a glimpse of the transparency for a millisecond if you're lucky) ...
BUT THEN ... immediately redraws as wireframe?

And although you click the render icon in the toolbar,  it changes back to wireframe half way through the proceedings ( = redraws?) (gotta feeling that's a furphy - irrelevance)

WHY would it work yesterday,  but not today !!???

PS WHAT I SUSPECT ??/ - that same bug that regens more often than necessary !!!  Yet I've started DCAD from scratch several times, and loaded that file from scratch (no other files opened) ...  but to no avail ... (groan)

PPS I've even tried rebooting the computer! :(   whilst standing on my head !!  with no veils!! no boots!!  no luck
Maybe I'll try again with the veils back on again... all 7 of em...  (maybe that will stop the dog barking anyway ...)

PPS The same thing happens if you display the drwg as "Hidden line removal" - it converts immediately to "wireframe" - just as it does if you choose "shading"

Next day, I must've done something different, eg reset those tiles ( i.e. suppose I accidentally delete a tile, I would go to that reset tiles icon, - that's almost certainly what happened) ...  Herewith post #45 on that thread:- 

http://forum.designcad.com/index.php?topic=5030.43

Quotewell - Having slept on it , I take the computer out of hibernation, restart DCAD22,  take the precaution of checking that "Glass1" is still what I set it for - and I suspect some of these setting wander with time ... edit gotta be UNLIKELY that one lol - I think my conspiracy theories were getting carried away at that point , twig a couple of settings, make transparency about 80% for instance ...

and then click "Shading (incl transparency)" and - all my sins seem to have been forgiven , and it takes 4 seconds to render the lot again !!?

PS I am confident this tip works to sort it out - for all files - just not sure if anyone else gets this problem, and thought I might as well share it.   Cheers

PS I'm still not certain what caused it btw.  But it's rare, and "soluble".
Lol - like I heard a TV news reader the other day ...  "the problems with the salt content of the Murray River seem to be soluble "  :)

Dempsey

Sam,

Not hundred percent sure I follow you completely, but perhaps this rings a bell.

Window/DesignCAD Tile Setting/Restore DesgnCAD tile gives you the 2D front, top and side views on the left and the 3D view on the right.

When you save a drawing the 3D view windows (positions and size) are saved with the drawings, and the next time you open the drawing then that is what you get again.

When I do 3D work I typically close the the three 2D view windows using the "X". The advantage is that those views don't need to be refreshed when you make a change and thus speed up the refresh. Minimizing the 2D view with the "-" button keeps the windows open and will be refreshed in the background. From the Window you can make any minimized view window visible again.

Does this help?
Dempsey

samdavo

Dempsey, yep that helps
and no other way to get a view back (if you accidentally delete it) other than to refresh in the "window\tile settings" etc?

Actually, the other thing I find  a bit clumsy, closing down -  Suppose you have say 3 drawings open, and if you've left all four views of each - you take about 20 mins to close DCAD lol.   Only the last of each view of each drawing will ask you "do you want to save changes" - all good that it prompts you of course.

  I guess ALt-F4 closes the entire DCAD program - probably the most efficient (?) (2 cents)

Rob S


That is a good point.

I'm thinking there should be a menu option:

"File, close current view"  which prompts for save if the drawing only has one single view open.

and

"File, close all views of current file"  which prompts for save.


or maybe

"file, close" and if there are multiple views of the same drawing open, it would prompt for "all views" or "current view only"
User since forever

Lar

Quote from: samdavo on May 21, 2013, 12:36:52 PM
Actually, the other thing I find  a bit clumsy, closing down -  Suppose you have say 3 drawings open, and if you've left all four views of each - you take about 20 mins to close DCAD lol
Sam, are you saying you close a drawing by clicking the x in each of the drawing windows????? This certainly works but a file will reopen with only the last window that was there when dcad asked you to save.

If this is how you close drawings may I suggest using File menu> Close, or Close All to close a drawing without closing dcad. To close dcad itself click the red x in the top right corner of the dcad window (or Alt+F4, like you said). With these ways a file will reopen with all the windows as you left them when you saved.

Lar




Dr PR

Sam,

I don't have time to jump through all the links you posted.

You said something about multiple regens and changing to wireframe. Can you explain this?

****

DesignCAD almost always redraws each window two times. In my opinion this is a bug. Furthermore, if you are working in Pont Select mode and have something selected, it redraws the image (wireframe or shaded) first and then draws all of the little point boxes - so you get four redraws. If you have a large drawing, and have selected a large object with a lot of points, window regen can take many seconds.

Furthermore, if you have multiple windows open the program may redraw each of them two/four times. When working in large drawings it is necessary to close all but the main menu if you don't want to be spending far more time watching window regens than actually working on your project.

Is this what you were talking about?

I have never noticed a shaded window redraw in wire frame and the redraw again shaded, or vice versa.

****

If you think the window redraw time is a problem, here is something far worse. Occasionally, while working in a shaded mode, when you delete an object, or disable the layer an object resides on, DesignCAD redraws each window once for each line or facet in each object! BUG! If you have a view with 100,000 facets in it, each window gets redrawn 100,000 times! You can watch as each window is redrawn so that a single facet disappears, then it repeats for the next facet, and on, and on, and on ... , sometimes for hours!

When this happens the only recourse is CTRL-ALT-DEL to pul up the Task Manager, and kill DesignCAD. Of course, you lose any unsaved work.

Don't ever disable a layer in a shaded drawing. Go to wireframe before disabling layers. Always save your drawing before deleting objects or disabling layers.

****

These bugs have been around for years. They have accumulated as the antiquated display routines have been adapted to newer versions of Windows.

****

DesignCAD has a HUGE number of display bugs. This is one reason I welcome the RedSDK adaptation that started with V23. It will force a rework of the display routines, and maybe a lot of these annoying bugs will get cleaned out.

Phil
DesignCAD user since 1987

samdavo

#8
Quote from: Lar on May 21, 2013, 02:12:37 PM
Quote from: samdavo on May 21, 2013, 12:36:52 PM
Actually, the other thing I find  a bit clumsy, closing down -  Suppose you have say 3 drawings open, and if you've left all four views of each - you take about 20 mins to close DCAD lol
Sam, are you saying you close a drawing by clicking the x in each of the drawing windows????? This certainly works but a file will reopen with only the last window that was there when dcad asked you to save.

Lar, Yes I believe that is how I normally close down drawings (and I meant INDIVIDUALLY, sorry) - probably what I got used to with 2D Drwgs, and one click = 1 drwg, whereas 3D requires 4 such clicks (and carefully chosen, and keeping your wits about you).

I'll take your advice on board - but I believe that "Close all" closes everything, (yes?) not just the 4 tiles of that 3D drwg . ( 2 cents)  As Rob S says, that latter option would be handy imoaw (in my opinion as well).

And I concede I didn't say it as clearly as he did.  i.e. It wasn't about closing down DCAD altogether - just all tiles associated with that drwg / file (despite what I said).

Quote from: Dr PR on May 21, 2013, 03:34:40 PM
Sam,
I have never noticed
a) a shaded window redraw in wire frame and the redraw again shaded, or
b) vice versa.
Phil
Phil
I haven't noticed a) , but it was all about b).
Basically, (unless you count a millisecond of render) - nothing happened when you click render........... (you are left with wiremesh "throughout" the exercise, start and finish at least).

or when you clicked hidden lines omitted for that matter.
(or shown as dash, ditto - you're left with wiremesh in each case, exactly where you started)

PS thanks for the other tips btw.

Dr PR

OK, lets try again.

If I understand what you are saying (and I certainly am not sure I do) you are saying that you are trying to use Gouraud or Phong shading, but all you get is wireframe?

Maybe a momentary blink of shading but then it switches back to wireframe?

Phil
DesignCAD user since 1987

Dempsey

Sam,

Reboot your system. If that does not solve your problem proceed to the next step.

You can reset your DesignCAD, but you will loose the personalized setting (faster than re-installing):
1. Open the Windows' Command Prompt window
2. Set current directory to where your dcad22.exe is installed
3. Run these three commands (assuming you run version 22.x:
    dcad22 /reset
    dcad22 /new
    dcad22 /clear
If that does not solve your problem then:

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.


Dempsey

samdavo

#11
Quote from: Dr PR on May 22, 2013, 03:24:42 PM
... you are saying that you are trying to use Gouraud or Phong shading, but all you get is wireframe?
Maybe a momentary blink of shading but then it switches back to wireframe?
Phil
absolutely correct Phil, you read well :)
and like I say, the same happens if I try Hidden line removal i.e. you just continue to get wireframe.
and like I say /said, the solution (I found) was to reset the tiles
and also I have no idea what caused it.


Quote
sam in response to Lar

... but I believe that "Close all" closes everything, (yes?) not just the 4 tiles of that 3D drwg . ( 2 cents)  As Rob S says, that latter option would be handy imoaw (in my opinion as well). 
And I concede I didn't say it as clearly as he did.  i.e. It wasn't about closing down DCAD altogether - just all tiles associated with that drwg

Rob S and Lar -
ahh I discovered a trick today -
suppose you have
a.  A 3D drawing open, which has 4 tiles
b. another 3D drwg with 2 tiles, and
c. a 2D drwg , obviously with one tile.

And you want to close b and c, and leave a.
The way to control/access the files you want to close - the EASIEST way imo - is to use "Cascade Windows/tiles".   That way they sort neatly in the order you opened them ( or maybe in the order you saved them reversed ),  and  (after you save as necessary - as Lar says , with all tiles open if poss) - and you just click the X (top right) on the ones you want to close.  (2 cents)  Easily accessed, and easy to see what you are doing. 

That leaves you with 4 tiles in Cascade;
and then you click Designcad tiles  = either

1. the as delivered default with 3 + 1 main = 4 tiles , or
2. the reset default which I have chosen to be proper 3rd angle projection,
and the screen returns to this format :)  all good.

prl

Quote from: samdavo on May 23, 2013, 02:02:27 AM
c. a 2D drwg , obviously with one tile.

Your deep in the woods with this topic  and I haven't been able to tag along . . . but in case you didn't know, 2d drawings can have as many tiles as you want.

samdavo

#13
Quote from: Dempsey on May 22, 2013, 09:13:45 PM
Sam,
Reboot your system. If that does not solve your problem proceed to the next step.
You can reset your DesignCAD, but you will loose the personalized setting (faster than re-installing):
1. Open the Windows' Command Prompt window
2. Set current directory to where your dcad22.exe is installed
3. Run these three commands (assuming you run version 22.x:
    dcad22 /reset
    dcad22 /new
    dcad22 /clear
If that does not solve your problem then:
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.
Dempsey,
ok m8 - but here I have to remind you of a couple of things lol.
I posted that file back in the transparency thread,
http://forum.designcad.com/index.php?topic=5030.43;  = reply #43 on that page of that thread ( in case it doesn't take you straight there - because I'm new to this )

where I explained I was having a strange and previously unobserved problem (possibly because I have only been rendering for a few weeks);  and

you kindly replied (#44) that it worked ok for you . 

Finally, next day, I had no problem with the same file. 
Hey - I don't want to make this a bigger issue than it warrants ...

BUT (lol)
whilst I am at it, and ...
funny you should say that resetting can be the answer,  ...
but just today I had ANOTHER strange problem.

when I tried to draw a vector inclined to all axes ( i.e. not ortho) - the program INSISTED on drawing only the component on one axis. !!!
SUMMARY
I could go into the details but FIRST, I'll get to the point - that the way I fixed this was to reset the keyboard to more like the default.

DETAIL
As for the detail -  I first noticed it in 2D where (suppose you wanted a line at 30deg) - only the horizontal abscissa would be drawn, and I would have to use asterisk (*) to move the end up (Y component) to where I wanted lol.  How ridiculous is that, lol.

Then I tried it in 3D - suppose I wanted a line with x, y, and z components ...
Again the x abscissa would be drawn,  then I could move that with (*) - BUT that would only give me an orthogonal y change;  and finally I would have to move it with (*) again to get the z component - lol.
After 5 mins of that , I was prepared to do ANYTHING - including resetting my precious hotkey keyboard :)

On another matter - which I think !!!(?) is unrelated  ( for another thread maybe),  but it is probably important not to name macros with the same shortcuts that the command line .ini file has set for commands - but as I say, that's another story.  cheers., 

and thanks again for checking it out last time as a Good Samaratan - even if you seem to have forgotten  - such is the way of truly generous Charity I am told :))
 
(PS.  here I'll be honest and say I believe I posted "peacetruck3b.dcd", and had the problem with "peacetruck3c.dcd" -
BUT I'm confident the same would have happened with either - and to have captured it JUST at the right moment in time would have been nigh on impossible). 

PS As for hotkeys, since they don't work in paperspace, I might as well persevere with the as-delivered defaults I guess ( with a few exceptions, like A,  and B,  and C,  and F,  and  G, and  I etc :)    But I might try H in conjunction with V for drawing lines for instance.  (2 cents) - and I might get used to it in a million years or so :) 

Here's a song dedicated to "V = inclined vector and L = ortho line"  (Which I suspect were the original hotkeys back in the 80's)
http://www.youtube.com/watch?v=dhX3d3C48KM  (Roger Miller - top song)

samdavo

#14
Quote from: prl on May 23, 2013, 02:28:59 AM
Your deep in the woods with this topic  and I haven't been able to tag along . . . but in case you didn't know, 2d drawings can have as many tiles as you want.
sure - and that's another thing I want to pick your (and Phil's) brains ...
How the heck do you "save a 3D program as 2D" -  (heck I can do that easy) AND
then somehow "trace" that into a 3D drawing...
and somehow do the dotted line thing !!  ??

And let's not forget that a a line dotted in Frontview/elevation is not necessarily dotted in Side , and it would be a miracle if it were also dotted in Isometric..

HEY, this is a big topic, and worthy of another thread.  OR maybe you can refer me to an old one (?)

PS Hope people don't mind if some of my posts cover old ground.

PS .  I give up lol - WHY would a 2D drwg have multiple tiles ?  (something to do with hidden layers?)