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.

DC21 rendering

Started by cavelamb, May 04, 2011, 06:45:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

cavelamb,

I work the same way you do. I create the frame/station lines for half the hull and then use "Surface Connect" and "Surface Patch" to stretch a grid over the lines. The original lines serve as a "template" for creating the surface grid.

Of course it really isn't that simple. Where there are abrupt transitions in the surface, knuckles, etc. I use multiple grids to piece together the hull. See the attached image for a different boat that has a transom, skeg and other places that are not smooth transitions. Each separate surface is a different color.

The hard part is getting exactly the same number of planes/facets where the separate grids come together. It helps if you plan this carefully before you create the grids.

Another thing to remember is that if your first attempt isn't perfect (mine never is!) you can always use an existing grid as a pattern to create new intermediate template lines for a new grid.

To check the smoothness of the surface I do two things. First I shade it with Gouraud shading with graphics acceleration enabled. I typically use the cyan color because it produces a very wide range of shades on curved surfaces. Then I rotate the view and look for ripples, dimples, etc.

The other thing I do is use the "Contour Line" function to generate "water lines" at closely spaced elevations. Then I look at the hull from the ends to see irregularities in the waterline curves. This is a VERY effective way to see small discrepancies. I want to emphasize this again - in a 610 foot long hull I can see errors as small as 1/8 of an inch in the placement of points in the template lines!

When I find an error in the template lines I edit them in Point Select mode to move points in/out from the centerline, often by as little as 0.025", and create a new surface.

When you get the perfect collection of surfaces combine them into one with "Solid Define." DesignCAD ignores small discrepancies in smoothness between adjoining surfaces if they are part of a single solid. This results in an invisible joint between surfaces when the drawing is shaded.

For a small boat the process may take most of a day. For a large complex ship hull it may take two days.

Phil
DesignCAD user since 1987

Dr PR

magic,

Glad you asked! V21.0 renders screen display and "File/Image/Save Image File" images nicely. However, when I print to CutePDF there is a lot to be desired. In all examples quoted below I used the same light angles and intensities, no transparency or fogging.

There are two ways to print a Smooth Shaded drawing - with Open GL shading enabled, or with Open GL shading disables and the "Print shadows" option enabled. We also have two shadow options - old and new shadow algorithm.

1. With "Use New Shadows" enabled and Open GL shading I get no shadows, but the image is otherwise rendered OK. File generation is relatively fast (no shadow calculations).

2. With "Use New Shadows" enabled, without Open GL shading and with shadows enabled the image is mostly dark with random light patches, and no shadows. File creation is pretty slow (shadow calculations). See attached PDF file.

3. With "Use New Shadows" disabled and Open GL shading I get no shadows, but the image is otherwise rendered OK -  same as before.
File generation is relatively fast (no shadow calculations).

4. With "Use New Shadows" disabled, without Open GL shading and with shadows enabled the image is  mostly dark with random light patches, and no shadows - the same as before.  File creation is pretty slow (shadow calculations).

The tests run above were printed from the Print dialog by just clicking the "Print" button. I repeated the tests, but printed from the "Print Preview" screen. Same results.

I don't get shadows when printing to CutePDF.

I repeated the process by printed to my color laser printer. I get the same results - no shadows.

****

The image renders OK on the screen, with Gouraud or Phong shading with shadows. The image of the whaleboat I posted above was a screen capture, showing the shadows. All other tests were run with the same lighting as was used for that image.

****

The image is saved correctly with "File/Image/Save Image File" and "Smooth Shading" with or without new shadows, and at the default (screen) resolution or as a higher resolution image.

Sorry DT, I rarely actually print from DesignCAD and I didn't test printing from the betas.

Phil

DesignCAD user since 1987

cavelamb

Hi Phil,

I would say that your approach is more of a modeling type while mine is
more of a lofting (3D drafting) thing.

Lofting starts with the frames, water lines, and butt lines already drawn and faired.
That's the part that takes most of my time.

At each frame location, the water lines and butt lines intersect.

Small deviations from a fair line are pretty obvious (as you pointed out).
Lumps or dips in, say a waterline, will mean that the frame and butt lines
need to be adjusted to remove the wiggle.

One test for "fairness" that I've used is to use two different surface connect (skins),
one wrapped around frames, and the other wrapped around waterlines (or occasionally
butt lines) in contrasting colors.  (see attached).

Keep in mind that these surfaces have ZERO thickness...
So the blotches are not anywhere near as big as one may think.
The real test is whether the grid of water lines, butt lines and frames is still visible on the surface.


Dr PR

cavelamb,

While similar in methods, we are working from the opposite ends of the job. You are creating new designs and I am trying to model an existing design as accurately as possible. I typically start from the Table of Offsets, if I can find it, or from hull lines drawings if the Table of Offsets isn't available. So I have no control over what the outcome should be.

It has been my experience that both the Table of Offsets and the hull lines drawings have a significant number of errors. After I "loft" a hull I have to hunt down the errors and correct them, all the time trying to remain faithful to the original design. It is quite a far cry from trying to design the "better" hull.

Phil
DesignCAD user since 1987

cavelamb

Quote from: Dr PR on May 06, 2011, 07:02:44 PM
cavelamb,

While similar in methods, we are working from the opposite ends of the job. You are creating new designs and I am trying to model an existing design as accurately as possible. I typically start from the Table of Offsets, if I can find it, or from hull lines drawings if the Table of Offsets isn't available. So I have no control over what the outcome should be.

It has been my experience that both the Table of Offsets and the hull lines drawings have a significant number of errors. After I "loft" a hull I have to hunt down the errors and correct them, all the time trying to remain faithful to the original design. It is quite a far cry from trying to design the "better" hull.

Phil



We aren't all that far apart, Phil.
The above photo is a Catalina 27 - started from a published lines drawing (no way can we get the table of offsets from manufacturers these days).  So I do the same thing, trying to make a fair surface - hinting down the bumps and dips to correct them.

But even when I start one from scratch (actually ESPECIALLY when I start one from scratch) there is a lot of that kind of work.
Start with a profile shape, a suggested frame shape or two and an idealized load water line shape.  Then develop all the rest of the
lines from that start.  LOTS-O debugging in that, buddy.

Whether it's a boat or something more interesting...

cavelamb


As she sits now... With the builder (not me this time).

cavelamb

And lastly, what we are working towards...

Outta be one sweet ride!

bdeck

#22
Quote from: cavelamb on May 06, 2011, 09:42:18 AM
I would say that your approach is more of a modeling type while mine is
more of a lofting (3D drafting) thing.  


Hi Cavelamb,

That's a very cool fairing test you have there.

Here are some previous discussions on some of fairing problems you might face.

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

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

D.C. still uses algorithms written back in a time when PCs were too slow to render fully in real time. The cheats it employs for rendering are also used for interpolating the curves and surfaces themselves, with no ability to turn off the cheats.

Grids and curves have a minimum node spacing which is extremely coarse, especially if your original control points are very coarsely spaced.

Interpolation used on Curves, SurfaceConnect, and ContourLine is purely linear between the nodes of this minimum spacing, potentially making it impossible to accurately fair a hull without adding an excessive number of control points to your controlling curves.

DC seems to use an iterative process to find the nodes. After my previous complaint on the subject, DC appears to have added one extra iteration to squeeze the nodes a bit closer together. That improved the interpolation somewhat, but for this type of work, I wish DC would give the user control over the interpolation process.

For the past 10 years or so, DC's main interest seems to have been converting itself into a low cost autocad replacement, so useful improvements like this may not have very high priority.

BD


cavelamb


Here are some previous discussions on some of fairing problems you might face.

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

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


Those were fascinating...

Dr PR

#24
cavelamb,

I have tried using frame/station lines to generate one surface, butt lines for another, and waterlines for a third. When I overlap them, as you show in the image with white and red intertwined surfaces, I end up pulling out my hair. It appears* obvious that your red and white surfaces are not coincident, but which is correct and which is wrong? The first time I tried figuring that out I got a really bad headache! So now I just use the frame/station lines to loft the hull. In one case I had to create new lines from the hull sight edge tables (the edges of the plating strakes) to figure out a very convoluted part of the surface where the frames/station lines were just too far apart. But I create only one working surface and fiddle with it until I am happy (or give up in frustration).

* One problem with superimposing surfaces as you have shown is that if the two surfaces are perfectly coincident and different colors DesignCAD has fits trying to render them. After all, think of what you are telling the program to do - render a red hull and render a white hull, and display them both in the same place at the same time! The result will be a hull with mixed red and white patches, and the colors will move around as you rotate the view! This is one way to create random color patterns for curved surfaces. But the appearance of one color over the other does not necessarily mean that one part of the surface is "above" the other. It just means that color won out while the program was trying to do the impossible.

Further, the program has a minimum depth that it can resolve while rendering. This "Z buffer" depth actually changes with viewing distance or depth of the drawing. So at some zoom levels the program can resolve a distance X between two surfaces and accurately render the closest surface. At a longer view distance the minimum Z buffer resolution will be greater than X and two surfaces closer together than the minimum Z buffer resolution distance will be rendered as one - or at least the program tries to do it. But, as in the example above, which surface color will come out on top is dependent upon viewing angle and perhaps just the order in which they were drawn. As you rotate the drawing the color will alternate between that of the two different surfaces. You will see alternating color stripes in single flat surfaces and odd patterns in curved surfaces. Again, it may make pretty, random colors, but that is rarely what I want to see.

I used to try to "paint" patterns, like letters, numbers, stripes, etc. over an existing surface, like a ship's hull or smoke pipe. For this I would create a separate colored "paint" grid and position it slightly above the underlying surface. As I changed view distances these "paint" grids would appear and disappear, or show only partially. I had to increase the spacing between the "paint" and underlying surfaces when I zoomed out to long distances. But then the "Paint" surface cast a shadow on the underlying surfaces - arrrggghhhh! This was especially evident if I zoomed in for a close-up view.

Now when I need alternating colors in a single surface I carefully piece together colored "jigsaw puzzles" of polygons. The attached flag image is an extreme example where I wanted all color patterns to be visible from both sides. It is made up of individual planar polygons for the field of stars (lots of polygons!) and ordinary grids for the stripes.

Phil
DesignCAD user since 1987