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.

Applying "Material" to extruded objects

Started by Bluswede, March 29, 2011, 11:13:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

magic

Hi Bluswede,

When you select a color for an object after it has been assigned a material, it will affect the wireframe, but not the hidden line.

In Shading, if you check the Enable color material, it will be the color of the material, but if you uncheck it, it will be the color of the color.

Here is a little film about the Color Material check box that will explain it better, I hope: http://www.magicsystems.com/Color%20Material.htm

Hope this clarifies the mystery of the Color Material.
It's a kind of magic!




Dr PR

Scott,

Hope you read the link Dempsey listed.

DesignCAD defaults to the "Default" material. This material is like a chameleon - it can be changed to any color. It doesn't have an inherent color that always displays, even if the "Enable color material" is checked. When you create a "Default" object it takes whatever color is currently selected, and keeps that color until you deliberately change it to something else. It always displays this color in wireframe and shaded modes, more or less (in shaded mode the color varies due to lighting effects).

For what it is worth, I use the "Default" material almost exclusively. However, if I want really shiny, very dull or transparent objects I use something other than the "Default" material. As you know, there are a range of predefined materials like "Brass" and "Steel" that have assigned colors that override the wireframe color. There are also patterned materials - but the patterns are somewhat unpredictable.

I have attached an image to illustrate some of the materials and lighting effects. Actually, this is a composite image created in Photoshop from two screen capture images in DesignCAD ("color material" enabled). The top and bottom images are the same set of tiles (exactly the same materials) shaded two ways. They were generated with exactly the same lighting conditions. The top set were shaded with Gouraud (graphics acceleration enabled). The bottom set are Phong shaded. They range from "Brick" on the left through "White" and then "Black" at the extreme right.

First, notice the difference in colors. In particular, look at the difference in the black tile at the extreme right. The Gouraud shaded tile is just gray, while the Phong shaded tile is almost black. Then look at the "Glass" tile fourth from left. It is almost the same as the "White" tile in the Gouraud image, but is clearly transparent in the Phong image.* The sixth tile from the left is "Pearl," the seventh is "Oak and the third from the right is "Walnut." Notice the patterns in the Phong shading, and the absence of patterns in the Gouraud shading.*

Also notice the absence of a pattern in the green "Leaves" material tile fifth from the left, and the orientation of the pattern in the "Pearl," "Oak" and "Walnut" tiles. I have never been able to figure out how to scale these patterns. The "Leaf" pattern doesn't show at all (the "Materials" dialog image shows a speckled pattern of different shades of green). The "Pearl" pattern is relatively large and barely shows, and the wood patterns don't run the length of the objects.

If anyone knows how to change the orientation and scale of the material patterns, please tell us!

You can also apply a bitmap image to solids, or so I am told. I have never tried it. Again, I don't know if you can scale or rotate the bitmap image.


* Note: If you use Gouraud shading without graphics acceleration enabled you can see material patterns, transparency and shadows.

Note: These are screen capture images of what DesignCAD displays. What it prints with "Smooth Shading" can be entirely different, as are the "Smooth Shading" images from "File/Image/Save Image File." These operations produce images more like the Phong shaded display, but not exactly the same.
DesignCAD user since 1987

Adrian 2.0

Hi Dempsey,
I'd love to understand more about this myself, but the link you posted does not work for me - I get a notice that it is 'missing or off-limits'.
Doc,
I don't understand what is happening here - I don't see any difference at all in render quality between 'color material' enabled & disabled.
To test myself, I created a 'brass' cube & attached a 'glass' sphere to a corner, I rendered it with the color material enabled, then disabled.
Figuring that 'brass' will display it's surface qualities better in a sphere than a flat surface, I then reversed the materials - a 'brass' sphere on a 'glass' box.
The 'Paintshop' compilation of these results is attached.
The settings are 'Phong' render with default light source - except for your recommended setting of 100% intensity on all 3 scales. (by the way, I agree with you 100% on the folly of adjusting the lights reflective quality!)
Transparency is 'on'
The blue background is a 'fogging' set at start = 1, stop = 2

I figured maybe there is no difference because I have not edited the colour of the material yet, so I isolated the 'brass' ball, rendered it with 'color material' on, changed the color to red & rendered it again with the 'color material' off, then I made a new material & left all the parameters the same except the color which I changed to red, applied that & rendered it a third time with 'color material' on.
If anything, the original 'brass' ball with color material disabled has slightly more 'life' & color depth than the new material , but there is BA difference as far as I can see.

magic

Hi Adrian,

The link Dempsey posted was to the secret beta area, so that's why you got denied access.

However, what the Droll Troll wrote is not a secret, so I too the liberty of quoting it here:

Quote"Color" generally refers to the wireframe color, but to some extent it depends on the order of operations. Apply a material to an object, and it updates the object's wireframe color to the material's base color. Apply a color to the object afterwards, and the wireframe color changes, but whether the object shades in the wireframe or the material color depends on the "Enable color material" setting in the Shade command dialog box. Check the box, and the material's color overrides the wireframe color that you specified by applying a color to the object. Uncheck the box, and the material uses the wireframe color as the base color for the material pattern.

Apply a new material to the object (or re-apply the same material), and again the wireframe color updates to the base color of the material, and it always shades in that color.

However, the Default material (and the older General color) always use the underlying wireframe color as the base material color. Assigning the Default (or General) material initially changes the wireframe color to black, but if you reassign the color that's what it'll shade in.
It's a kind of magic!




Adrian 2.0

Thanks Magic,
That helps me understand how it works and how it can help.
I remember playing around with it when i first saw it but seemed to remember it caused some crashes. Mind you that would have been V18 or 19.

So, this is a good tool to stop the wireframe from 'disappearing' when drawing white objects (glass) on a white background!

Doc,
If you select a material from the options/material window, you will see two tabs at the top of the open window - 'Reflectance' (default page) and 'Proceedural textures'
If you click on the latter, there is a list of the textures for that specific material ('Brick' has 'grain' , Walnut' has 'wood' etc.) Click on the texture from the list & you can edit the scale (if you save it as an editable material, of course)
I have played around with adding images to surfaces - go to tools / texture mapping - there are about a million options to specify  (stretch, tile orientation etc) but if you persist you can get good results.
It reads JPG files as well as bitmaps, maybe other formats too, I haven't tried others.

I once designed a liquor wholesale building the shape of a beer carton. - took photos of a Heineken carton, texture mapped them onto the 3D box - easiest 3D rendered building  I ever did!

I don't think you can 'paint' just one face of a solid - it wraps the whole thing, so you need to explode it into individual planes & make a new texture for each plane.


DrollTroll

#20
Phil, if you haven't done so, be sure to check out the Sample Materials folder (Open the Material Editor, click "Retrieve", browse to the Sample Materials folder) to see some of the possibilities offered by the Procedural tab. Or check out the attached drawing, which demonstrates a wide variety of them. (Note: this only applies to V18 and later, since the new Procedural tab was introduced in V18.0).

25 years with DesignCAD

Dr PR

#21
DT,

Thanks! I knew you guys had played around with materials because of the sample shading and shadow drawings you have posted.

Adriank,

Thank you! I have opened the "Procedural" dialog before, and I could see that the "Oak" material had the "Wood" pattern. But what ever made you decide to click on the table entry to find the "Scale" slider?

I see I should be approaching the program like the ancient computer game "Adventure" (it worked on Teletypes in the 60s and 70s before DOS was invented). There were no instructions. When you started the game the machine printed "You are standing in front of a door." That was the sum total of user help you got. The rest was for you to discover - such as typing "look left" or "walk forward." Or perhaps like the much later version called "Myst" where you had to click on everything in the picture to see if it did something.

Unfortunately, I tired of playing such games decades ago. I have work to do, and clicking on everything on the DesignCAD screen just to see if a secret door will open is a huge waste of time!

Edit: I looked through the "Help" information in V20.1 and it does explain how to use the "Scale" slider in the "Adding a Procedural Texture" section. I don't remember seeing any announcement of this new feature when it was introduced. I guess it is the "Help" information I should approach like a game, and click on everything. Who knows what new things I might learn?

****

As DT explained, the color of objects can change depending upon the sequence you use to display them. In your "Brass" and "Glass" spheres example, you used Phong shading, and that disables graphics acceleration and automatically enables "color material." That's why you see no difference.

Try it again with Gouraud shading, with and without graphics acceleration enabled (in the Shading Dialog). You will see a difference. In particular, if you have created the brass sphere and then defined the wireframe color to be red, you will see a difference between the combinations of display options.

I guess I should have emphasized those conditions. I always use wireframe or Gouraud shading (with graphics acceleration enabled) when I am working on the drawing. You can rotate these views in (almost) real time to observe the work. I only use Phong with shadows when I am preparing to create image files.

Phil
DesignCAD user since 1987

Dempsey

Thanks Magic for correcting my mistake. I have removed my reply.
Dempsey

Bluswede

Hi All,
I looked at the example of procedural shading...OK...this is going to be fun!
Thanks Again All!
Regards
Scott

Dr PR

Scott,

Beats any video game on the market!

Phil
DesignCAD user since 1987