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.

Another 3D model

Started by Dr PR, December 08, 2013, 10:00:22 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

I am plugging away at my 3D model of the USS Oklahoma City CLG-5. We have had very cold weather this week with lots of ice and snow. I did get out and ski one day, but the rest of the time I have stayed inside warm and dry, sitting in front of the computer.

This is the boat winch, It is pretty complex and I have been putting off modeling it for a year or two. The last picture is the pump and valve block. It was designed either by a mad scientist or a sadist with precognition who knew that one day someone would try to create a CAD model of it!

Phil
DesignCAD user since 1987

samdavo

Heck Phil
I thought you said you'd posted a wench.
PS exceedingly impressive. cheers

minstrel

#2
What came immediately to my mind was "to the winch wench!" [famous line from 'never-ending story']
...now I finally know where he told her to go!

Phil, your project here is beyond 'pretty complex'...what a passion you have for accuracy and details!
Thanks for the inspiration!

Pearco

Dr Pr;

Your ability with Dcad is unreal.
My hat is off to you.
Jim
User since ProDesign 1.5

DrollTroll

25 years with DesignCAD

Rob S

Wow.

Just to confirm these were drawn and presented entirely in Designcad?

Did you use save-image or print to cute pdf, or otherwise?

On your supercomputer, how long does it take to shade these models, and how long to print them?

What is the filesize of them?   

This last will be particularly interesting, because we know you have refined how you draw things to display properly while keeping the point-count to an absolute minimum.

Here enclosed below is my not nearly so great effort to draw a hearth for my woodstove! 
User since forever

samdavo

#6
i personally think that Phil should have used metric tie down bolts, but no biggie.

Hey Rob, how the heck is that hearth ever gonna pull up an anchor rope/chain/howser/hawser/warp whatever it does? 
PS nice renders. :)

Probably irrelevant, but ...
warp = A light hawser used in the movement of a ship from one place to another by means of a kedge anchor, or a capstan... When used as a verb it describes the operation of moving a ship by means of warps from one position in harbour to another.    Hence the term warp speed?

Dempsey

Phil,

Another master piece! Thanks for sharing that with us.

I am hiding is shame under Rob's hearth of his wood stove!
Dempsey

Dr PR

#8
Rob,

The boat winch file size is only 6.6 Mbytes. It renders in Gouraud with acceleration enabled in 1-2 seconds. After that it takes about 4-5 seconds to render in Phong with 2048x2048 shadows enabled.

I created the images with DesignCAD, using "File/Image/Save Image File." I used "Smooth Shading" and JPEG image size was 2544x2048 pixels. I used a single Directional light source with a vertical angle of 33 degrees and "Move with eye" enabled. Horizontal angle varied form +6 to -6 degrees, depending upon the image rotation. All of the "Light Source/Intensity" sliders were set to 100% - this allows the object's materials properties to control the appearance of the material in the image. "Shadow Options" sliders were "Softness" 0.3 (0 is no shadow, 10 is deep black) and "Tolerance" 0%. If Tolerance is anything but 0% you get wierd shadows that float away from the object casting the shadow.

I opened the image files in Photoshop, chnaged them to 300 dpi and reduced them to 1024 pixels wide and added the copyright notice (I use these images on my okieboat.com web page). Then I reduced the images to 800 pixels wide for the DesignCAD Forum (and the Ship Model Forum). The smaller image size opens faster and fits the Forum page width better. Other than that I did no image "fix-up" in Photoshop. What you see is what DesignCAD produces.

****

The discussion of "wenches" reminds me of another favorite project of mine.

Oregon's western civilization history goes back only about 200 years (Native Americans were here for about 18,000 years before that). When French trappers introduced syphilis and other European diseases the Native American population in western Oregon was almost exterminated (from tens of thousands to a few hundred). In the mid 1850s about 350 survivors were marched into a Coastal Indian Reservation. Settlers proposed attacking the reservation and exterminating the remaining Indians. In response, in the mid 1850s the U.S. Army established three forts around the reservationto keep the natives on the reservation and to protect the Indians from the settlers. That has to be one of the oddest and most ironic bits of the history of the American west!

So, what has that to do with wenches, you ask? Patience - this won't be as long as Sam's posts.

One of the original buildings from Fort Hoskins (near Corvallis where I live) was moved about 10 miles after the fort was abandoned in the 1860s. Last fall we moved it back to the fort site, now Fort Hoskins Historic Park:

http://www.afrana.org/Current%20projects.html

The house had to be dragged up a steep hill from the nearby highway to its original location at the fort. The movers used winches to pull it up the grade. The local newspaper reported that we used wenches to drag the house up the hill.

Phil

PS: Sam, this winch was built in the 1940s or 1950s in the U.S. Nothing about it was metric.
DesignCAD user since 1987

corlett

Dr PR

May I add my admiration to the models you show here.

BUT

Rob S, asked for the recipe.  I used all the ingredients you suggested. BUT my model still looked very average.

When you created your solids did you use a high Facet count to round off the edges?
What material is your winch made from?
You mention jpeg and pixel size.  Do I infer from this you did a screen grab?

Mostly however I struggle with - should I Fog or anti-alias my shadows etc.
Too many options too little understanding,


Clive

samdavo

Quote from: Dr PR on December 09, 2013, 11:34:15 AM
PS: Sam, this winch was built in the 1940s or 1950s in the U.S. Nothing about it was metric.
ok - so it's an Emperial wench - something like Elizabeth I ? :)

PS I'm also interested in how you seem to avoid any hint of facets in those cylindrical pipes.  How many longitudinal lines per perimeter?

Dr PR

#11
Clive and Sam,

The winch will just be a small part of the entire 610' ship model, and it is pushing 800 Mbytes (maybe a gigabyte when done) so I use a few tricks to keep file sizes down, while still putting an insane amount of detail in the whole thing. I model everything 3/16" diameter and larger, including rivets, screws (no threads), nuts and bolts (no threads), etc. I want it to have enough detail that everything looks pretty good during a walk-through, so the small details are important.

Things like nuts and rivets increase file size significantly. My model of the AN/SPG-49 radar antenna is 46 Mbytes. I stripped all of the nuts, bolts, screws and rivets from it and it was 33 Mbytes, so about 30% of the file was fasteners!

****

I mostly use the "Default" material. Occasionally I use "Brass," "Steel," Chrome," "Aluminum" and other standard materials.

I have also created "Shiny Brass," "Shiny Chrome" and a few other special materials to get desired effects, like polished brass.


****

DesignCAD has a really screwball way of dealing with lighting. You can have "shiny" and "dull" lights - this makes no sense. You can also have "shiny" and "dull" materials - like the real world. But if you apply a "dull" light to a "shiny" material you get a dull object. A "shiny" light makes "dull" objects shine. Insane! The real world doesn't work this way. To defeat these screwball lighting effects I always set the "Options/Light Source"  "Intensity" sliders (Ambient, Diffuse and Specular) to 100%. This lets the material properties determine the appearance of the material. However, reducing the "Ambient" slider can produce a desired effect in some cases - this is the only one of these sliders that makes sense.

I normally use only one "Directional Light." I usually enable "Move with eye." This  ensures that shadows will be cast behind the objects you are looking at, no matter how you rotate the view. I set a modest 25-30 "Vertical Angle." The "Horizontal Angle" varies between -9 and +9 depending upon the rotation of the view and what objects I want the shadows to highlight.

You MUST also enable "Use color material" in the "Shading Options" dialog. If this is disabled you will get only a very narrow range of colors, and material properties like shinyness and dullness will not be displayed.

I enable "anti-aliasing" and "shadow anti-aliasing" in the "Shading Options" dialog.

****

For large diameter cylindrical objects that are visible at a distance I use 72 or 144 facets. Things like the smoke pipes, the  barbette for the Mk 37 director, etc. If you use anything less the facets will show up in renderings.

For really small things like bolts, rivets and screw heads I use 12 facets around the circumference and as few facets as I can get away with (3) for domes, etc. Even during a walk through you won't be examining these things close up and from a few feet the rivets and screw heads look good (they cast shadows).

Bolts and nut are simple six sided solids with no details. In some cases I do put internal hex holes in cap screws, etc.

Multi-strand helical cables would have a huge number of facets and would make the file size enormous. Fortunately, no one is going to be counting the strands, so I cheat. I use 12 facets around the circumference and as few sections as possible. Up close these look really crummy, but from a few feet they pass as cables and wire runs. The "chunky" appearance makes a resonable simulation of things like cables that do not have a smooth surface.

For larger diameter cylinders (3" to 6") I use 16-18 facets around the circumference. Larger cylinders get 32 or 36 facets.

Note: 36 facets is one facet for every 10 degrees around the cylinder. For small drawings (no file size constraints) I always use a minimum of 36 facets on all cylinders.

****

The "Solid Add" function often really screws up the surfaces of cylinders, especially where objects join at small angles. I use "Solid Add" a lot, but if the result looks bad I immediately "Undo" and use a second method. I duplicate the larger diameter cylinder and use it with "Solid Subtract" to chop off the end of the smaller diameter cylinder at the surface of the larger cylinder. Then I use "Solid Define" to combine the two into one solid. This may screw up the smaller part a bit, but the larger cylinder will still render smoothly.

Often "Solid Add" will explode grids into a multitude of triangles. The result may look good, but the file size will be a lot larger. When this happens I immediately "Undo" and use the "Solid Subtract/Solid Define" trick described above.

****

You get much better results if you do a little math before drawing cylinders and polygonal cross section silids that will be combined with "Solid Add." A quick rule of thumb for cylinders is to use multiples of "N" for the facets where other objects will be added with "N" degrees between their planes.

For example, suppose you are going to add two pipes (cylinders) to an existing pipe. each new pipe will lie in a plane defined by the axis of the existing pipe and the axis of the new pipe. If the two new pipe's planes will intersect at 30 degrees, then you want the first (existing) pipe to have a multiple of 360/30 = 12 facets, or 12, 24, 36, 48, etc. Facets. Be sure that the axis of the new pipes passes through the intersection of facets on the existing pipe. This will give a much cleaner "Add." Again, if a larger existing pipe is screwed up by the "Solid Add" step back and use the duplicate/subtract trick to trim the smaller pipes and then use "Solid Define" to combine the pipes.

Note: You may wonder why you would ever want to use "Solid Add?" Why not just let one solid penetrate the other and leave them like that. They will render OK with Gouraud or Phong shading. However, if you use Hidden Line rendering the junction between the penetrating solids will not show and it looks pretty odd.

****

You can explode solids into individual facets, and you can draw a bunch of planar polygons to create the shell of a solid. But if they are not defined as a solid each facet will render as a flat surface, and the overall surface will not render smoothly. In this case select all of the parts of the solid and use "Solid Define" to lump them together as a single solid. After this DesignCAD will usually render the surfaces smoothly.

****

Finally, use shadows! They take longer to render, but they add a huge amount of detail. For example, my house has overlapping boards for siding. The surfaces of all the boards are parallel, and without shadows the side of the house renders like a big slab of plywood. With shadows each individual board is visible.

Where you have a lot of parallel surfaces shadows separate them and make each visible. Also, tiny things like rivets may be too small to see from a distance, but the shadows they cast may be visible.

In the "Options/Light Source/Shadow Options" dialog select the 2048x2048 "Shadow Map."*

"Shadow Softness" controls the darkness of the shadow. 0.0 produces no shadow and 1.0 generates totally black shadows. I use something like 0.3 or 0.4 to get shadows dark enough to see, but still allow details to be visible in the shaded areas.

ALWAYS set the "shadow Tolerance" slider to 0%. I don't know what this was supposed to do, but I do know that it will cause the shadow to appear at a distance from the object casting the shadow - weird!

*This is pretty hokey. The shadow map fits across your entire design, and not just the part visible in the images you produce. For example, my 610 foot (7320 inches) long ship produces shadow "pixels" that are 7320/2048 = 3.57" square. If I am viewing the entire ship shadow "pixels" are too small to be visible. But if I zoom in close to view some object only a few feet across the shadows are very "chunky" with 3.57" square "chunks." It doesn't matter how many pixels I choose to generate the image - shadows are generated with 3.57" patches that are really ugly in close-up images, so I can't use shadows in these images.

I also use "New Shadows" in the "Options" menu. It's a longer story ...


****

Phong shading will give truer colors (darker blacks and lighter whites) than Gouraud with graphics acceleration enabled.

I save images with "File\Image\Save Image File." This is where the JPEG images originate. I use "Smooth Shading" and set a minimum pixel dimension of 2048 pixels to get a crisp image. "Save Image File" produces the best quality image, comparable to Phong shading on the screen.

Note: You MUST have graphics acceleration disabled for "Save Image File" to work correctly - this is a bug. If your screen image was generated using Smooth or Gouraud shading with graphics acceleration enabled, only the upper left corner of the image will be saved with "Save Image File." I normally switch to Wireframe view before saving image files.

I only use "Screen Capture" when I want an image of what DesignCAD is displaying on the screen. This produces a fairly low resolution image without the color range and intensity of the saved image file.

****

So, in so many words or more that's all there is to getting pretty decent images from DesignCAD. However, this just scratches the surface of what the program can do. Multiple light sources of different types. Transparency and fogging. Custom materials.

Still, it doesn't do ray tracing, so you can't get mirrors or really shiny chrome surfaces. Maybe when the new RedSDK features are fully operational we will get better shadows (and maybe even ray tracing!).

****

Clive,

Your electron microscope model is cool! The smaller diameter cylinders are rendering OK, but it looks like you need to increase the facet count on the larger parts. For example, it looks like you are using about 16-18 facets on the upper large red cylinders. I would use 32 or 36.

Phil
DesignCAD user since 1987

DrollTroll

Clive,

One way to avoid the faceted appearance (usually) is to pick the solid and open the Info Box. Make sure the "Smooth" checkbox is checked. Also, don't use Quick Shading -- that will always show the facets.
25 years with DesignCAD

samdavo

Phil
Thanks heaps for your many words of wisdom.  And I for one can't see how you could have summarised it.   IMO, Brevity is the soul of getting half the story :)   

corlett

Dr PR

I could not have asked for more, thanks.

You have given me enough to play with for quite some time. My latest render is a country mile better. Also just a little fog (Exp/6%/0/1) gives the impression of depth, which is what I was after.

Thanks again, so many options, so little understanding.
Clive

PS: -My Model
It is a microscope and can gather secondary electron images (good for 20 microns) but its main use is as a molecular microscope. It collects Secondary Ions Mass Filtered images.  The Spectrometer is the vertical tube.  So its a Secondary Ion Time OF Flight Mass Spectrometer.

My Model is for design and clash detection only, there is a lot going on inside the chamber.  Its ego which makes me want to make it look nice.  I keep the facet count low to help speed up the revolve.