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.

Learning to SHADE without a tutorial; is like learning English from a Funk & Wag

Started by boswell, November 18, 2010, 04:05:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


bdeck

Options/Options/Ligtsource

Add diffuse lighting from multiple directions.

DC is the only 3d cad program I have ever seen that has insufficient lighting out of the box to view a rendering of your model.

BD

Dr PR

DesignCAD's shading configuration is pretty screwed up. Here are some of the problems I have encountered, and my solutions.

1. The "Options/Lightsource" dialog has options for "Directional," "Point" and "Spot" lights. Only the "Directional" light works reliably. There has been quite a bit of discussion about this on the forum.

I use only "Directional Type" lights.

2. You can turn on multiple light sources in the "Options/Lightsource" dialog. However, there appears to be a maximum amount of "light" available for all lights, so if you have one light turned on at 100% brightness and you turn on a second light at 100% brightness, both lights will be only 50% as bright as the first light.

Note: This was true on earlier versions, but I am not certain if it is still a problem in V20. I always use only one light source.

3. Pay attention to the "Move With Eye" option in the "Options/Lightsource" dialog. If this is selected the lighting angles are relative to the viewing angle from observer to the object. For example, if the "Vertical Angle" is 90 degrees, and you view the object from directly overhead, the light will shine from the horizontal onto the object. As you rotate the view around the object the lighting angles on the object will change. Think of this option as having a miner's light strapped to your forehead. Wherever you go the light moves with you.

Turn off this option to set "geographical" light angles that do not change as viewing position changes.

4. The "Options/Lightsource" dialog has an "Intensity" section with settings for "Ambient," "Diffuse" and "Specular" effects. This is nonsense! The light source doesn't determine whether a object is shiny or if it has a matte finish. These are properties of the materials (see 12 below).

Set all three sliders to 100%. However, the "Ambient" slider can be used to make an image darker overall, with greater highlight contrasts from the light source.

5. The "Options/Lightsource" dialog has "Shadow Options" settings and a selection box to turn shadows on. This is the global control that determines of shadows will be rendered. However, you will not get shadows on the screen display if the "Enable graphics acceleration" option is enabled in the "Shading Options" dialog. If this is disabled you will see shadows with Gouraud or Phong shading.

Note: The "Options/View" "enable graphics acceleration" apparently does nothing. The selection in the "Shading Options" dialog is the controlling option.

6. The "Shadow Options" dialog has a "Shadow Map" slider. This determines the number of shadow "pixels" that will be created for the entire drawing (not just the part that is displayed, saved or printed). The options are:

128x128
256x256
512x512 (default)
1024x1024
2048x2048

In my opinion, only the 2048x2048 is useable, and only marginally. Here is why. Suppose you have a scene (house, property, scenery, etc.) that is 100 feet wide, and a screen display width of 1600 pixels, and you display the scene full screen width. Each pixel represents 100/1600 feet, .0625 feet, or 0.75 inch. However, shadows will be rendered at a coarseness of 100/2048, or 0.58 inch. The shadows will look OK when viewing the full 100 foot wide scene.

Now zoom in to view an object that is just 1 foot long. Each screen pixel now displays 1/1600 feet, or 0.0075 inch. However, the shadows are still rendered at 0.58 inch resolution, which is 12 very ugly "jaggies" per foot. If your scene is 1000 feet wide shadows will have 5.8 inch "jaggies." In order to create shadows from every object in the scene that might fall across any smaller selected view, the entire scene must have shadows rendered, and the highest shadow resolution is only 2048x2048. So you cannot produce useful views of small parts of large drawings with shadows.

The same thing is true with printing and "Image Save." You may save an image with 20480 pixel width, but the shadow map will be only 2048 pixels max. Each shadow "jaggie" will be 10 pixels wide.

Note: more shadow pixels equals greater rendering times. With 2048x2048 shadows it may take a minute or two to render moderately large drawings of 10-20 megabytes. 500 megabyte drawings may take up to 90 minutes to render. Without shadows the rendering time is much quicker.

I would like to see at least 16384x16384 shadow pixels. This would produce 0.73 inch jaggies in a 1000 foot wide scene (a shopping mall, for example). It is still far too crude for very close up views, but at least you could render automobile sized objects with not too objectionable shadows. 65536x65536 shadows would be useable for almost all drawings.

7.  The "Shadow Options" dialog has a "Shadow Softness" slider. This is really shadow darkness. 0 is no shadow and 1 is totally black shadows. I have found 0.3 to 0.4 to give fairly realistic shadows with some detail still visible in the shaded area.

8.  The "Shadow Options" dialog has a "Shadow Tolerance" slider. This seems to be a "totally screw up shadows" slider. No one on the Forum has ever figured out what it is supposed to do, but any setting other than 0 seems to mess things up pretty good. One wierd effect is to project the shadows into space some distance from the object that generates them. Set this slider to 0.

9. There is a difference between Gouraud and Phong shading. Gouraud uses material colors but does not use material properties (shininess, etc.). Phong uses all features that effect the display. Consequently, Gouraud will not produce a really dark black surface (it may be almost white when light shines directly on it), nor does Gouraud produce shiny objects. Phong will give a greater color range, with true blacks and shiny surfaces.

10. The display options in the "Shading Options" dialog apparently have absolutely no effect on images saved with "File/Image/Image Save" or with the "File/Print" rendering of objects. WYSINWYG - what you see IS NOT what you get!

For printing and image save select the "Smooth Shading" option. This produces something similar to Phong shading in the screen view rendering, but not quite the same.

11. The "Shading Options" has an "Enable color material" selection. If your drawings are rendering partly or entirely in gray shades this is the reason - disable this option. Unfortunately, this also kills some of the effects available in Phong shading. This options turns on many of the material light reflection properties (see below).

The problem IS NOT caused by enabling "color material." For some reason when later versions of DesignCAD (V18 and on) import files from earlier versions the default material is set to "General" for most (all?) objects, and this material has no "color material" properties. This is a bug! The "General" material is not an option in later versions of DesignCAD - the default material is "Default" which has "color material" properties.

You will need to select each individual object in the drawing, open the Info Box, and if it is the "General" material change it to the "Default" material. If you have many thousands of objects you can select them all and use the Info Box "material finger" to select the material properties (including color) of an object with the "Default" material type. Then you will have to go through all objects and change the color to whatever it should be.

This bug basically makes older large 3D drawings useless in newer versions. However, you can still copy small parts of older drawings and use them in newer drawings after making all of the necessary material edits.

12. Now for the really confusing part. Material properties. In the "Options/Material" dialog you can select from a range of default materials or create new materials. A lengthy tutorial is needed to explain everything in this dialog. The V18 Reference Manual was the last documentation I have seen that gives brief explanations of all the options.

This is where you can control reflections, emission, transparency, contrast and color of object - IF you have set all of the "Options/Light Source "intensity" sliders to 100% (see 4 above). This lets you produce smooth shiny surfaces and dull flat surfaces. You also have a very limited ability to create surface patterns (wood grain, etc.). Very limited!

Note: you cannot create mirror surfaces in DesignCAD. Ray trace rendering is necessary for that, and it is not available in DesignCAD. For this reason you also cannot create polished metals or chrome plating realistically. However, if you add a bit of pale blue to a polished metal's color it simulates reflections of skylight pretty realistically.

You cannot change the properties of the materials that come with DesignCAD, but you can create new materials, or copy existing materials under a new material name and then modify the properties.

When you create a new material it appears in the materials list FOR THE CURRENT DRAWING ONLY! You can assign your new material properties to objects in your drawing, and then the new materials will be listed IN THIS DRAWING ONLY. They are not available for new drawings - a big shortcoming.

However, you can save your new materials at the location specified in "Options/File Locations/Material," not that it will do you much good. The materials still will not automatically appear in the materials list for new drawings. And each material will be in a separate file - there is not one file to save them all in. Pretty screwed up!

You can introduce your custom materials into new drawings in two ways. One is to use the "Retrieve" function in the "Options/Material" dialog, if you remembered to save it in the first place, and still remember where you saved it, and under what name. DesignCAD looses this information every time you install an upgrade, and defaults to who knows where.

A better way is to create a "Materials.dcd" file and save it in a location DesignCAD upgrades can't screw up. Whenever you create a new material, make a small cube and assign the material to it. Then copy this cube and paste it into your Materials file. This way when you want to use the material in a new file just open your materials file, copy the appropriate cube(s) and  paste into your new drawing. The new material(s) will then be available in the materials list for that drawing. Or you can use the Info Box materials finger to copy the material from the sample cube to a selected object.

13. Beware of "transparent" objects. I haven't tried to use these in quite a while. Back in V18 I put a small glass lens in a telescope in a 20 megabyte drawing. It took more than an hour to render the view. I deleted the glass object and it rendered in seconds. You have been warned.

14. I haven't experimented with "fogging" in the "Shading Options" dialog.
DesignCAD user since 1987

JJG

personally (I agree with bdeck) I always add some side lightings to illuminate properly the object, allowing to highlight the interesting parts.

Side lightings = directional light, playing on the horizontal and vertical angles, and also on the respective intensities ambient / diffuse / specular
see "lighting" of the manual pdf DesignCad (you can download it at   http://imsidesign.com/Support/Overview/DesignCADInstantDesignSupport/DesignCADDocumentation/tabid/389/Default.aspx   , choose for example "Download DesignCAD 19 Reference Manual PDF" and see for example page 158 and followings in Dcad19.pdf )