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.

True white fill?

Started by Al, November 27, 2012, 04:40:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Al

Hello All,

I'm trying to fill an object with white and place it on top of another object in 2D. (see attached) I'm using Hatch Fill/Win_Solid and I can't get a true white.  When I create a 255 RGB in custom color and apply it the object is black. The best I have come up with is creating a custom color of 255 R&B and 250 G. Is there a way to get a pure white fill?

Al

MarkX

Quote from: Al on November 27, 2012, 04:40:11 PM
Hello All,

I'm trying to fill an object with white and place it on top of another object in 2D. (see attached) I'm using Hatch Fill/Win_Solid and I can't get a true white.  When I create a 255 RGB in custom color and apply it the object is black. The best I have come up with is creating a custom color of 255 R&B and 250 G. Is there a way to get a pure white fill?

Al
DC won't let you assign a color too close to the background color. There are times that it would be handy if it did. Try changing your background color to something else. Then assign your object color again.

Mark


Dr PR

Al,

If you try to create a white object on a white background, the object's color may be white, but it will be displayed as black in wireframe mode. This is true of any very light color.

For example, a RGB value of 255,255,255 will look black in wireframe on a white background, but if you select it and open the Info Box the color tile will be white. 251,251,251 displays as black, but 250,250,250 is a very light gray that is essentially invisible against a white background.

Open the "Options/Options" (Q) dialog and select the "Color" tab. Click the "Background" color tile and select some neutral color, like a light blue. Now your white objects and hatch fills will appear white, and black objects will appear black. Of course, any intermediate color shades near the blue background will be shown as black.

In 3D mode the program does the same thing in wireframe view. But in shaded views it displays all the colors correctly (if you select "Enable material color"), even if they are the same color as the background. However, with a white or black background some objects may not be seen clearly if they are white or black. I use a "standard" light blue background for most illustrations so black and white display OK.

Note: To get true black and white you need to use Phong shading, and objects must be the "White" or "Black" material. If you use the "Default" material and set the color to be 0,0,0 or 255,255,255 you will not get a good black or white, but just a dark or light gray.

Phil
DesignCAD user since 1987

JJG

#3
Quote from: Dr PR on November 27, 2012, 09:12:40 PM
....
Note: To get true black and white you need to use Phong shading, and objects must be the "White" or "Black" material. If you use the "Default" material and set the color to be 0,0,0 or 255,255,255 you will not get a good black or white, but just a dark or light gray.

Phil

Phil,

about 1 year ago, we discussed for this already :
even in Gouraud or Quick mode, you can have good blacks or whites : it's only a question of materials properties.

Try please the ones below ! (I had to place a gray plan below the white cube, so that you can see the white cube in case you work with white background color).
OK ?
;)

Al

Okay, the background color is 255,255,255 and the dot is 250,250,250. It all looks great on screen. However, when it prints I get a  black dot, not a white one. I want a white dot on a gray field. How do I get it to print as it looks on screen?

Al

DrollTroll

Use 249, 249, 249. That seems to work ok.
25 years with DesignCAD

Al


Lar

Al,

For pure white, with a white background, you have to open the DC_Startup.ini file (make sure make a duplicate of it) and change
ColorOffset=5
PrintColorOffset=5

to

ColorOffset=0
PrintColorOffset=0

Then 255 white will show pure white.

The print line is only important if you want to actually print pure white. Remember that all white entities will not be visible against a white background so change it back when necessary.

If this doesn't work at first then look for another copy of the file and edit that one. The location of the version to change depends on how you installed your dcad (wheter for all users or just you).

Lar

Dr PR

JJG,

It all depends upon your definition of "good." I will agree that you have succeeded in manipulating the materials properties, light properties and shading options to totally defeat the purpose of materials properties, light properties and shading options. This gives you materials that appear true white and black under all conditions.

However, if you will notice, all normal rendering effects are gone, even if you use only one light source - all sides of the cube are the same shade and there is no visual definition to the sphere - it looks like a black dot from every angle.

I suppose this has some value to you, but to me they are not "good." I can't see any use for these materials. But then I try to use the program to create fairly realistic models of real world objects, and not fantasy creations that defy the laws of physics.

****

Allow me to restate what I said.

If you want to get black and white objects that appear under typical lighting conditions as you would expect real world objects to appear, you should use the predefined "Black" and "White" materials (or create your own materials that have essentiallly the same properties). Then you should select "Enable Color Material" in the "Shading Options" dialog to allow the program to use the properties of these materials.

Furthermore, to make lighting work like real world lighting works, you should open the "Options/Options" (Q) dialog, select the "Light Source" tab, and move the "Ambient," "Diffuse" and "Specular" sliders to 100. This defeats the rather odd ability of DesignCAD to allow the light source to override material properties and make shiny materials appear dull or flat by creating a dull light. In such a case, if you have multiple objects with shiny and dull materials properties all will appear shiny with a shiny light, or dull with a dull light. This is just weird! I suppose you might think of it as a "special effect."

Setting the sliders to 100 allows the object's materials properties to control how a material appears (the way the real world works). This allows you to have shiny and dull objects in the same scene. It also sets the ambient (background) light to maximum so the darkness of shadows is controlled only by the "Shadow Options" "Shadow Softness" slider.

With these light settings and a single "Directional" light the light color and intensity influences only the color and brightness of the objects (the way the real world works), and you can get some fairly realistic renderings. With these settings Phong shading makes the best use of material properties, but Gouraud with graphics acceleration disabled may give better results. Phong gives brighter whites and darker blacks and more intense colors.

However, the program does not do ray tracing, so you cannot create mirrors or truly shiny materials.

****

Use the material's properties to control how objects will appear under all lighting conditions.

Ambient reflection controls how much light will be reflected off the surface by ambient light. It influences how distinctly shadows will appear on an object.

Diffuse reflection controls the amount reflection you get from an object from light sources. It is a surface texture smooth/rough function. This influences the light reflected from surfaces at different angles, and is what gives curved surfaces brighter and darker areas and gives contrast to different sides of objects.

Specular reflection controls the shinyness of materials. It effects light reflected directly from the light source.

Transparency is self explanatory. For it to work you must shade with "Enable Transparency" selected.

Emission controls an inherent brightness that makes objects look like they are lighted from within.

Contrast controls how effective diffuse and specular reflection are.

For these properties to work you must shade with "Enable Color Material" selected.

****

You can use multiple light sources and light types. In this case you may want to chage the intensity sliders to control relative brightness of multiple lights, or create special lighting effects, but be very careful because the results are totally unpredictable.

Ambient light is added to all surfaces at all angles - a background light. It prevents shadows and objects from appearing totally black, which would be unrealistic. Lower ambient light makes the entire scene darker.

Diffuse light is what makes different surfaces have different brightness. It depends upon the angle of the surface to the light source. It is what gives spheres a brighter spot on the surface. Lower diffuse light makes the entire scene duller and less distinct.

Specular light is what makes objects shiny or dull. Of course this is silly because in the real world the light source has nothing to do with the surface properties of materials, and these are what control shinyness or dullness.

Phil
DesignCAD user since 1987

prl

#9
Quote from: DrollTroll on November 28, 2012, 08:59:00 AM
Use 249, 249, 249. That seems to work ok.

Previously I discovered that I can make objects invisible (same color as background) if I take one of the background rgb colors and subtract 5.  Seems to also apply to the hatchfill situation in this case.  So using 255, 255, 249 also works (or at least it does on my CutePDF test case).

prl

Quote from: Al on November 28, 2012, 06:37:39 AM
background color is 255,255,255

Al,  guess you could also activate the "use paper color" toggle.  That too created the pure white dot in my test print of your drawing.

Dr PR

prl,

"use paper color" option????

What the photon are you talking about?

Phil
DesignCAD user since 1987

Lar

Phil, all hatches have a 'use paper color' option in the info box. It effectively renders the hatch invisible. It can be used for whiting out an area, as Prl is suggesting in this case, or, for example, in 2d you can fill out a piece of furniture with a tile hatch, group them, then rest the group on a floor that has been totally tile-hatched and the floor hatch won't show through the furniture. If you ever rearrange the furniture you won't have to redraw the hatch.

I've tried this with the win-solid hatch and it looks good on the computer screen but I remember it printing slightly shaded on paper (which actually had a nice highlighting effect). I can't remember if I had 'PrintColorOffset' set to zero in the DC_Startup.ini file.

Lar

Dr PR

Lar,

Thanks. I just learned something new!

I use hatches rarely - mostly solid fill - so I wasn't aware of the fiddling you can do to them in the Info Box.

Phil
DesignCAD user since 1987

DrollTroll

Wow, I totally blanked on that one. Thanks for the reminder!
25 years with DesignCAD