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.

Shading problems

Started by roger_c130, April 19, 2012, 02:43:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

roger_c130

I have a simple little stick measuring 1/4 x 3/4 x 19".  It's defined as a solid.  When I try to set up the parameters thru Option,Material where I have a color set up that looks close to balsa wood and I set up thru shading Gouraud, graphics accelerator off, then go to View,Display Type All with smooth shading I get a totally different color.  Usually the end color is white with black sides.  Frustrating as the devil.  Manual had to be written by someone with a lot of experience in rendering/shading.  Also, is there a way to delete names from the list of adds (material/add)?  I must have twenty out there name keel-something.

MarkX

Quote from: roger_c130 on April 19, 2012, 02:43:08 PM
I have a simple little stick measuring 1/4 x 3/4 x 19".  It's defined as a solid.  When I try to set up the parameters thru Option,Material where I have a color set up that looks close to balsa wood and I set up thru shading Gouraud, graphics accelerator off, then go to View,Display Type All with smooth shading I get a totally different color.  Usually the end color is white with black sides.  Frustrating as the devil.  Manual had to be written by someone with a lot of experience in rendering/shading.  Also, is there a way to delete names from the list of adds (material/add)?  I must have twenty out there name keel-something.
Hi Roger,

Shading is infuriating in DC.  But the whole field of rendering tends to be frustrating no matter what software you use. I don't think I'd bother with Gouraud unless acceleration is on, but that's just me.

Have you added lights? It might be helpful to add two, separated by a distance so as to be illuminating your subject simultaneously from both sides. Sometimes its useful to set up a box around your subject first so you have some easy points to which to attach lights.

I'm sure if you posted your drawing you'd get lots of help here.

Have fun,
Mark

DrollTroll

Try adjusting your light angle; if it's set for straight on to the front, all the light is hitting the front face, and none hitting the sides. Try setting the horizontal angle of the light to say 30 degrees, and the vertical to 20 degrees. That way you won't see the light "dead-on" on just one face. Also, as Mark suggested, adding a second light with different angles can help refine the shape further.

There's no convenient way to delete unused materials from a drawing. If you copy the contents and paste them into a new drawing, that should get rid of the unused materials.
25 years with DesignCAD

roger_c130

For someone who believes in KISS I got myself really wound into this one.  Turns out I only had to set the color as the base (matching the layer) and then go to Shading command.  Had to turn off enable color material to get the color I wanted.  Otherwise, I could get anything.  I have several of these forms making up the keel of the plane so I'll fool with the lighting after I have constructed the fuselage half.  It would be nice if there was a choice on how dark-light the shading could be.  Like opaque, medium, verylight.  I've tried to get those effects but not successful.  Can't afford any more time now.  Thanks.

Dr PR

roger,

Gouraud is just a quick and dirty shading option. I use it with graphics acceleration to get a rough idea what an object looks like.

However, the best shading is Phong. For that you MUST enable color material. Even with Gouraud you should enable color material.

This is tricky, so bear with me.

1. The default material is "Default" (isn't that clever?). If you do not select a material you automatically get Default.

2. You can draw a solid with any color shown in the color tiles. These are just basic colors, with no material properties. These render in the basic color for the Default material. "Color material" has (almost) no effect on Default materials.

3. If you assign a material (Glass, Steel, Ruby, etc.) these shade with a rudimentary associated color in Gouraud IFF "color material" is enabled, but if it is disabled you will get shading with the basic wireframe color. The wireframe color will always be the initial basic color, and not the material color. This can be confusing.

4. You really get the widest range of colors and textures only with Phong shading. Black is black instead of just dark gray and white is white instead of light gray. You will only get material patterns and textures if "color material" is enabled.

****

Now for the really confusing part! DesignCAD's way of controlling material properties could not be more screwy if congress tried to legislate it! It is a total basket case. Take a really deep breath!

1. Material properties are determined by light properties. That's right! To make objects shiny you must make the light shiny! To repeat - to make objects shiny you must make the light shiny! What the blazes is a "shiny" light?! Whoever thought that one up was as dumb as a rock!

Unfortunately, when you make the light shiny it tries to make everything in the drawing shiny, even the things that should be dull. Really stupid!

2. Material properties are also determined by material properties. Duh! To make an object shiny you must make the material shiny. To make an object dull you give it dull properties. That makes sense, doesn't it?

3. So, to get a shiny object both the material and the light must be shiny.

4. So how do you mix shiny and dull objects in the same drawing? You have to defeat light properties and allow the material properties to dominate. To do this set all light properties to maximum. Set "Ambient," "Diffuse" and "Specular" to 100%. This eliminates any bias in the light source.

Note: If you set these properties to 0% you will disable most material properties.

5. Now only the material properties control surface texture, reflection, etc. But, you MUST have "material properties" enabled for material properties to be rendered. This is true in Gouraud and Phong, and also true with "Smooth Shading" in the Save Image and Print functions.

****

Now that was as clear as mud - right? Let's hope DT and company get around to fixing this mess someday. But look at it this way, no matter what happens it can't be more confusing than it is now.

Phil
DesignCAD user since 1987

cavelamb

Thank you, Phil.
I've tried to figure out what all that was about and finally just figured I was dumb.
Now I understand that someone else was dumb!
:)

Richard

roger_c130

Let me tell ya - when you open the manual and begin you're lost already.  I spent three days playing with it and got some of the funniest results.  Thanks again Phil, et al.  I shall endeavor to persevere.

DrollTroll

#7
DesignCAD is never going to try to realistically emulate physical lights and materials -- that's a job that even high-end renderers continue to struggle with. So we're left with "faking" it.

An object's primary appearance is set by its material. You have essentially four "channels" that are of common interest:
1) Diffuse -- this is a measure of how much light the material reflects back to the eye in a scattered form. More diffuse means a lighter appearance in the areas that the scene lighting hits.
2) Ambient -- this is a way of "faking" indirect light that is coming in from the background, lightening up the areas that the main light doesn't fall on directly. More ambient gives a lighter appearance all over.
3) Specular -- this is a way of faking "Shiny" materials, such as smooth metals. More specular gives a brighter "highlight" in the direction of the light.
4) Contrast -- this controls the overall size of the specular bright spot. More contrast makes for a smaller, sharper highlight. Less contrast makes for a broader highlight.
A material with only Specular and Contrast values wil appear to be black, regardless of the color assigned to the material. To get any color, you must have at least some diffuse or ambient value in the material.

Now, with the base materials set, we shine a light on the object.
The light has three channels -- again Diffuse, Ambient, and Specular.
The percentage of each light channel indicates how much the light interacts with that material channel. A light set to 100% in all three channels displays the full effect of the material's ambient, diffuse and specular values. Generally, your primary scene light should be set to 100% in all channels.

If you want to "fake" adding more diffuse, undirected light into a scene, add a second light, perhaps from a different angle, with only the ambient channel active; increase or decrease the lights ambient percentage to increase or decrease the additional brghtness.

If you want to add an additional "soft" light from a different direction without adding specular highlights, add a light with only the diffuse channel active; again, increase or decrease the diffuse percentage to vary the amount of diffuse light you add the scene.
25 years with DesignCAD