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.

Transperency Material of any color

Started by Lar, September 20, 2017, 04:08:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lar


I hardly use Transparency but I'm looking into it now.


Lets say I have a red Solid and also a Material I created called "Glass_Blue" (because it's blue and also transparent).


[**] I seem to remember once upon a time I could apply Glass_Blue to the red Solid and the Solid remain red but it became transparent.


I just did something similar and the solid shaded in the material color but the info box says it is red.


Does anybody know if what I remember at [**] is possible or is it just a fairy tale?


Eg: say I created a stained glass window. Do I have to create a glass material for every color of stained glass or can I just give each piece of glass a transparency property?


Lar

Lar


Ok, I now can answer my own question,,.
...Just disable 'color material' and the entity's color comes through.
Nice, on 2 fronts: i] we have options for controlling which color shows, ii] my memory is jamming, baby.


Lar

Dr PR

If you disable "Color Material" only the base color is used.

Objects have two colors - the base color at the time the object is created, of a color assigned in the Info Box. The other color is the material color.

The "Default" material uses only the base color. All other materials have a color associated with the material (steel, gold, copper , white, black, pearl, ...).

When "Color Material" is disabled shaded objects use the base, which is the same color the wireframe drawings use.

When "Color Material" is enabled shaded objects use the material color.

With Phong shading you get much richer colors if "Color Material" is enabled. This is the only way to get truly white or black objects. If "Color Material" is disabled you just get intermediate grays.

I'm not sure there is any way to get a texture to display if "Color Material" is disabled.

****

CAUTION! If you are trying to produce bitmap image files you will get different results in the image file for each type of screen display. With the same settings for the "Image Save" function you will get different colors and shadings if the screen display is wireframe, GDI or OpenGL. Shadows are also affected.

The only way to get really good colors, shading and shadows is to render the image file while the screen is shaded GDI Phong with "Color Material" enabled.

None of this is in the Reference Manual. I learned the hard way through years of frustration and experimentation!

Phil
DesignCAD user since 1987

Lar

#3


Quote from: Dr PR on September 20, 2017, 07:09:58 PM
I'm not sure there is any way to get a texture to display if "Color Material" is disabled.
Well, I specifically wanted transparence but didn't want to have to created a transparency material for every color. My goal was to work in shaded mode with some objects transparent, temporarily, so I can see what's behind them as I work. But I also needed to see the entity's original color, for the sake of my own personal sanity.


However, after reading your post I investigated further and I now see that when a material (other than default) is applied the entity takes on the material's color (in the info box). So, I would have to change the object's color back to original every time I apply a transparent material. And while I can save a non-phong rendering of my transparent stained glass window without having to create transparent materials of every color, for a phong rendering I would have to, since phong, to be phong, has to ignore 'enable color material' being disabled (and hence it should be grayed out, which it isn't).

Lar
ps: it would be nice for dcad to have an 'x-ray' toggle in the info box, so individual shadable objects can be temporarily made transparent without messing with colors and materials (and with the 'enable transparency' option right there in the info box too) .

Rob S

I can just hear them saying "Sounds good, we'll get right on that"

Right after we get that blasted RED sdk working

Oh, yeah, and there was that loooong tofix list from before

After we figure out what the last guy already did

oh, well, maybe right after lunch....

ps  It does sound like a very good idea, instead of transparent shade, would you settle for option to view wireframe only for designated objects?
User since forever

Lar

#5



Quote from: Rob S on September 22, 2017, 08:49:39 AM
ps  ... ... would you settle for option to view wireframe only for designated objects?
I'll settle but only because *temporary transparency* is possibly right now, so *mixed shade and hide* will be another possibility.


Both these features are available in Cinema 4D, so I know that while they may seem interchangeable they really are not. Both are necessary when you have to relate what you are working on to its neighboring objets. However, I would use x-ray in a reality where working in shaded mode is the norm but every now and then you need to see through the thing you are working on (in dcad's reality working in wireframe is the norm, and is extremely prone to small mistakes). Shade+Wireframe is useful when the thing you are working on is surrounded by so much stuff that you can't make it out even if everything around it is x-rayed.


Actually shade+wireframe is possible in dcad, with some extra work. Just duplicate everything you want wireframed to an empty layer then move the objects-to-be-shaded to another layer by itself (if not on one already). Turn off all the other layers, select the duplicated shadeable objects-to-be-wireframed and vector convert them. This way only the objects-to-be-shaded will shade. When done delete the vectored stuff, move the shaded objects back to the proper layer and turn back on the other layers.


In either case you can turn off snapping to the extra stuff to by defining them to be a block and then turning off snapping-to-symbols' (just be aware that the corners of block's bounding box will still be snapable). This way you can also make all the entities of the block a single color (by disabling 'use original color' in the info box) or quickly make the whole block disappear by clicking 'draw symbol as a box' in the margain (the block will appear as a wireframed 3d box with an x through it).


To get the main objects shaded in their original colors but everything else in a single color (essentially a *shade+hidden view*) don't vector convert the extra objects before blocking them, then disable 'use original color' in the info box.


Lar

Dr PR

Lar,

This won't help your transparency problem, but it is another  curiosity about object colors.

When you assign a material to an object, both the base color and material color are assigned. But you can then select the object and assign a different base color - this is the color that will show on the color tile in the Info Box.

The base color is what is used in wireframe displays. For example, if you assign the "Aluminum" material to an object, and you work with a white background, the Aluminum object will be almost invisible - very, very, very, very light gray. I change the base color of Aluminum objects to black, and then they are readily visible on a white background. I do this for a number of very light colored materials.

If the "Color Material" switch is enabled it tells the shading routines to use the material color and not the base color. If "Color Material" is disabled the object will be shaded in the base color.

****

If an object's color is very close (numerically close RGB values) to the background color, DesignCAD inverts the color in Wireframe displays. Almost white will display almost black on a white background, and almost black will display almost white on a black background. But Aluminum and some other light colored materials are not "almost enough" to cause the color inversion.

Phil
DesignCAD user since 1987