R9: Transparent black is opaque


The material of the “cross” is 84% transparent, and even at 100% it is still opaque.
If I change color to red at 100% transparent it looks like this:

Transparent material is opaque.3dm (2.2 MB)

And white at 100% transparent looks like this:

Material is from R7 so it is a “custom” material. Switching to PBR makes no difference and Raytraced handles it in the same manner.

We need to be able to add black (and any other colored) 90% transparent materials that doesn’t retain 100% colorization. But we need the full-on red transparent look that we get now as well. So I guess we need to bring back the transparency color that used to be a separate setting or something.

I’ll let you ponder on that one.

Transparent material is opaque.3dm (2.2 MB)

Don’t know if you’re using Raytraced here, but pure black (0,0,0) has always been opaque even at 100% transparency. The color value will impact also how much light filters through. To have a transparent black you’ll need a dark gray instead.

I can’t speak to how other display modes do it, but possibly with the direct3d implementation it maybe is closer to what Raytraced does? I believe this is something @DavidEranen worked on.

This was a Rhino 7 file I opened in Rhino 9 and suddenly the transparent gray material came in as pure black.

Something is wrong though as 100% transparent should not be totally overridden by color. Since we need a way to make a “thin transparent film” that lightly colors the covered objects.

Dunno, 0% opacity with pure black color is still fully opaque as all light gets filtered out. Hence the need to use a “black” with higher value (gray) so that some light passes through.

At least that is how it was when I still worked on Raytraced last year, and I assume still is that way.

Until newer Cycles is integrated and thin film capability is exposed best way to do that is to have single pane, then use material with IOR set to 1.0, opacity to 0%. Then start with the color you want to use and make it lighter (higher value in HSV) until you get the desired result.

Also, best to not talk in terms of transparency but opacity. Minor detail, but may help in reasoning about how materials work.

Btw, I don’t have a copy of Rhino yet, probably once sales start I try to get one :slight_smile: so until then I’m just talking from memory (and checking RhinoCycles repo).

Thanks for chipping in though. But this affects Direct3D too. And in OpenGL in R7 we could make a black material and set it to 90% transparent and have a slight gray overlay. That is desired.

The bug is that currently it is not possible to make a fully transparent material. If color is black it is not transparent at all, if it is 50% gray it is 50% transparent, but gray, and if it is white it is still not 100% transparent, but rather a white wash. See initial images.

By the way, by your logic black is black regardless of transparency. If you flipp it around you could advocate that 100% transparency is transparent regardless of color, so this is more a what should be prioritized rather than what is “right”, since both logics are equally correct, mathematically, but we need something that resembles reality. (In a situation where an object doesn’t even have a thickness…)

I do love that we can have transparent red objects now though. I only wish to be able to control the amount of color in it without blending “white” into the mix… Do you see my point?

PS! IMO you should be entitled to a free copy for your service :wink:

@Holo,

What you’re seeing is a black transparent object filtering everything seen through it, like @jesterking said. That will produce a black color, just like Raytraced. This is a new thing in Rhino 9 for Rendered mode.

If you want the material to behave in the way you want, I would suggest you do the following:

  1. Convert the material to a PBR material.
  2. Make sure the color is black, and Opacity is 1.0.
  3. Set the Alpha to be 0.84.

Does that get what you need? The problem with Custom material is that it doesn’t have Opacity and Alpha as separate controls.

-David

Ah, I forgot about alpha!

I hear you. Alpha is what now gives the correct transparency (because the old transparency is broken).

I think we need “Transmission” too. Opacity and Transmission makes sense.

Alpha is for masking and nobody I know have ever said “Look at that glass, it has a high Alpha”. They say it is transparent :wink:

Keep in mind this: Rendering is supposed to make it easy for designers to get good looking images of their design. Easy to use and understand is the key here.

AND one more thing: I also want to be able to open my Rhino 7 and 8 files and have them behave the same way with out having to tweak strange stuff in hidden places. If big changes are made then it would be nice if R9 automatically did those changes for me so stuff still looks the same.

I did a bit of testing and searched for PBR etc to see if I could find a good online example and found this simple pathtracer:

Open the scene Part1Final and click the transparent sphere and click on Color. It is a Dielectric material and behaves JUST like Rhino 9’s transparency where black is opaque and luminance drives transparency. Except that white does not color the material like it currently does in Rhino 9’s rendered mode. So I guess this is what needs to be fixed and we all have to adapt to PBR logic since it is the backbone of Rhino’s materials now.

But please do not lean towards Alpha driving transparency.

Personally I hate that luminance is transparency because it makes it so very difficult to pick the right color unless we use HSL sliders for color adjustment.

So thank you for the clarification and I hope you see what I think is important for R9 to open legacy materials so they look similar to what we are used to.

We are in a situation where rendering is more and more handed over to AI and that means that users will be less experienced in building materials, so the UI for materials need to be as simple as possible and as real world logical as possible, using everyday terminology where possible while staying logically true to industry standards… Not an easy task.

For your information:
TwinMotion reads in our file and present it like OpenGL does in Rhino 7, where Opacity intensity also works on black objects. As far as I know TwinMotion is also using PBR in the back.

Also for it’s pathtracer:

In Raytraced opacity is implemented using transmission.

Here is one of the things we need transparent materials for, we highlight areas and include them in the BIM data and IFC files that are standard in Europe. So regardless of what you do on the backend for us to have black, transparent materials that work in other file formats natively, is fully up to you. For me Rhino 9’s workflow must be intuitive and the export must be comparable to Rhino 7 and 8’s.

If the material doesn’t export like it looks in Rhino then I have a problem :slight_smile:

This is in Dalux and other IFC viewers:

And this is in Rhino 7 & 8:

So you see that how Black with transparency works in Rhino 7 and 8 is how it works in the other software we use and it is not how it works in Rhino 9… Thus this topic.

@Holo - thanks for all the feedback.

I went back to your first post, and I noticed that you had an image of a white material at 100% transparency. The way it looks in your image is a bug, and it has been fixed in an internal build. The object should be 100% see-through and not white:

So there are two ways to get your intended see-through black material:

  • You can set Transparency to 100% and change the color of the Custom material to be less black. This will let more light through the material and should end up looking close to what you want. Exporting this to e.g. Dalux might not get what you want, though, which is a separate problem.
  • If you don’t like changing the color for some reason, then you can convert to PBR, set Opacity to 1.0 and change the alpha value, which does the fade toward fully see-through. The alpha value needs to be 0.16 (not 0.84 as I said before) to match the Transparency of 84%.

Is this intuitive? Perhaps not. Maybe an extra slider next to the transparency controls could be better. But from a physically-based perspective changing the color to be less black to let more light through is correct.

RH-99569 Consider making it easier to change how transparent a material looks

What about converting v8 materials into v9 equivalents so they end up rendering the same in v9? This could work, but then users would not see the new colored transparency effect in their old models. So I guess it’s a trade-off between seeing the new transparency effect versus making sure old material render the same. This doesn’t have to be all-or-nothing, though. The user could choose if they want the conversion to happen or not.

RH-99570 Consider converting V8 (and older) materials so they render the same in V9

Regarding the materials rendering similarly when exporting: I agree that they should match as well as possible and will do some investigation.

RH-99571 Make sure exported transparent materials render similarly in other software

-David

What I am concerned about is Rhino 9’s ability to communicate with other software and earlier versions of Rhino, so exports and inports behave logically across file formats.

I see that PBR acts this way you describe and that Rhino legacy materials behave differently.
I think that having R9 convert everything to PBR, if PBR can do everything we need, would be beneficial. And if so it should convert legacy transparency in a PBR-correct way… I think. (I don’t sit on enough data to be sure if most R8 and R7 files would look the same in R9 if converted to PBR)

From what I can see converting Rhino legacy material transparency to alpha value seems like the right approach. BUT then you must remove the Custom material from R9… it should have been removed in R8 already too IMO. (IF my assumption that this is just a PBR with a different gui…)

(Quite frankly this is a PBR gothic knot)

If you want a roundtable discussion then I am up for that.

Wish I could have given a much clearer and obvious conclusion from my side, but quite frankly I am at a loss too :slight_smile: I just wanted to report that R7/8 files with transparent objects loose their transparency in R9, when seen in rendered view.