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.

Speeding up Non-Wireframe View Rotations (Orbits)

Started by Lar, March 11, 2014, 12:07:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lar

Hello, out there,

Before I officially designate this a "Tip" or "Trick" I need someone to confirm it for me (actually, I think you guys were holding out on me on this one).

I may have just discovered that the speed at which dcad rotates (orbits) a non-wireframe views depends, not upon the complexity of the visible content on the screen... but the amount of entities in the entire drawing, regardless of what layers are on and off. It's like dcad has to consider every entity in the drawing, whether it is visible or not.

The Test:
So, could some one with a somewhat complex 3d model first turn on a few layers (leave off layers with lots of text as this is known to slow down view rotations considerably - maybe it's just True Type fonts) and rotate the view, as a benchmark. Then copy everything visible to a new empty file, repeat the view rotation test and compare the ease of the view rotation of the 2 files. Note that the same amount of content is visible in both files but the original file has lots more stuff on invisible layers.

With me, the view rotation of the original file is a clunker and the new file is extremely smooth, by dcad's standards.

The Back Story:
I am working on what for me is a typical 3d construction drawing of a 2 floor residence, which means it is somewhat complex, showing things like all the roof members, complete kitchen cabinet construction (except the hinges), the actual overall dry wall on both sides of the studwork and the plaster finish on the masonry walls. The modeling is just about done but the file is only about 5 megs, even though there is a lot of duplicated stuff to eventually delete. I've just about given up on working in shaded mode since dcad's orbits are severely slow. As you may know my layers go into the hundreds and sometimes I have to repeatedly turn on and off layers during a working session, which could be hundreds of layers apart. I have numerous layer macros and I make considerable use of the layer sorting and filtering but layer management is still a humbug for me. So, I came up with the idea of copying and pasting just the elements that I'm working with to a new file, creating new stuff, then pasting back the new stuff. The trick here was to take full advantage of dcad's "active layers only" filter so I would be able to see and manipulate all the layers at a glance in the new layer dialog and just use the layer dialog rather than a multitude of layer macros, something I was never able to do even when dcad had only 20 layers.

I was aware of this copy to empty file trick for decades but never used it much ever since I discovered (many years back) that pasting in groups and solids increased the group and solid id count by twice the amount of groups and solids being pasted in (and before then there was no layer sorting and filtering). Since we now have group and solid id packing this should no longer be an issue but some habits are difficult to break. Anyway, I bit the bullet and followed through with my idea. It so happened that shading would greatly assist me in what I was doing so I shaded the view and pressed Y to orbit. Have you ever picked up an empty bucket thinking it was full. Well, that was the feeling I had when I dragged the mouse to rotate the view. My mouse hand dang near knocked everything off the desk. The view rotation was so smooth I thought I had been transported to Cinema 4D. But c4d's working view is sketchy. The shaded view I was looking at was crisp so I must still be working in dcad.

My, my, what other wonders lie out there yet undiscovered. Just don't tell me you guys were keeping this from me all this time.

Lar

samdavo

#1
Y didn't we try this b4?
Actually Lar, I just quickly tried it on a small program, and had a few problems - more research required on my part - bound to be human error. cheers

Dr PR

Lar,

1. I opened a large 3D drawing (46 Mbytes) containing 179,725 entities, 104,841 grid surface entities, 74,681 planes, 168 lines and 35 curves.

Then I made nearly everything visible with Gouraud shading (graphics acceleration enabled). I used "Set View by View Center" to test view rotation speed.

View rotation was very slow. When I clicked the left mouse button and dragged it took about 3 seconds for the view to rotate each step.

2. I zoomed out until the objects occupied only a small portion of the screen. Rotation was essentially the same speed as before. So the number of pixels that have to be displayed doesn't seem to have a significant effect upon rotation time.

3. Then I disabled all but two layers that contained only a small portion of the drawing. I used "Fit to Window" to enlarge the display to full window. Rotation was much faster, responding in about a second per step, with a continuous (but jerky) rotation.

4. I selected the visible objects and copy/pasted to a new drawing. 52,464 entities, 39,031 grid surface entities, 15,230 planes and 3 lines. I used "Fit to Window" to enlarge the display to full window.

View rotation was faster than in the full drawing, maybe half a second per rotation step, but I still saw very noticeable jerkiness.

****

So the view rotation seems to depend upon two things - the number of objects being displayed, and the total number of objects in a drawing.

Phil
DesignCAD user since 1987

Lar

Thanks guys. Phil's machine would fly with one of my projects.

I am transitioning between a win-7 and a win-8 laptop and win-8 is so distasteful I actually forgot I could use it in the test (if it wasn't for my son having some experience on win-8 and showing me the hot spots in the corners of the screen I don't know what I would  do with that machine).

Anyway, I tried a completed 3d model construction drawings (has lots of notes and dimensions as well as solids) on the new 4 gig hp  laptop (which seems much worse than my 1 gig {now 2, soon to be 3} 2008 hp laptop because it chokes up playing my effects-intensive MIDI {music} files). With the model showing the entire shell, a gazebo and a 2d site plan the lesser-entity file moved with surprising ease. With the full file the screen went blank for 30 seconds before it did one rotation.

Lar

Dr PR

Lar,

How many windows do you have open? I did my test with just the "main" window open - I closed (not minimized) the other three.

The reason I ask is that sometimes when DesignCAD does things in a shaded "main" window it also redraws the other three windows - but since the image in these windows doesn't change you don't notice that they are redrawn. You can see this in a large drawing if something is selected and "Point Select" mode is enabled - the points disappear and reappear. Redrawing the other windows really slows things down - it takes four times as long for the screen redraw to occur.

Phil
DesignCAD user since 1987

Lar

Bad Lar. Bad, bad Lar.

Phil, I had somewhere around 12 windows open on one computer and 14 in the other. However, it doesn't seem to make a difference. I know this causes problems when editing but apparently no orbiting.

Besides the number of entities in the file I can confirm that True Type fonts also hurts orbiting. My big file had a miniature title block hiding in plane sight, with lots of interesting fonts, as well as a few other very visible bits of text. I selected all and used the 'T' button in the info box to change all the text to vector fonts. This improved the orbiting of both files but the smaller file performed noticeably better.

I am now back in the shading and orbiting game in dcad. I look forward to my next 3d presentation with clients without using Cinema 4D. C4D's orbiting really flies, no matter how many entities are on the screen or how big the file is, but the image is sketchy. Some people like this artistic feel but I prefer dcad's crisp look. Dcad is the only program that orbits at a high image quality.  When presenting I change the selection color to black and select all to get shaded with outline. Of course, in c4d, while not orbiting I can hit render and in a few seconds I would have a photo realistic still image with shadows, reflections, bumps and everything... sooooooo... I guess I'll  still be using both programs for presentations, Dcad for crisp imagery and c4d for fast orbits and hi-q renderings. At least now I will also be orbiting in dcad, which is very impressive.

Lar

Dr PR

Lar,

Let's hope the RedSDK additions will improve the orbiting display. I have always been impressed with the VERY fast view rotations in AccuTrans 3D - although it doesn't do color like DesignCAD. And that is in a $25 program! DesignCAD should be able to do better.

However, I do agree that what DesignCAD does with rotating the rendered view is very nice, even if it gets a bit slow with large drawings. At least it does work!

Phil
DesignCAD user since 1987