Opacity maps and VRayEnvironment fog

Does anyone have any tips for rendering opacity maps with VRayEnvironment fog? Cards are showing once fog is turned on (see below). My opacity maps are pure black and white. It looks particularly bad in the section below where a spotlight hits (I’m having to use a Maya spotlight rather than a Vray light as I’m using gobos and the VRayRect light was too harsh)

I’ve found several previous posts on this topic but can’t get a solution.

Any help appreciated.

You didn’t show the maps and the connections , this is very simple , think of a set up with a tree with opacity leaves, should be the same in most cases, I usually use a png with transparency, it works great,

Yeah I’d love to the map of connections.

All maps are jpgs.

Transparency map, check alpha is luminance or convert diffuse map to png transparency so you don’t need to upload another file just for transparency therefore making scene lighter,
connect diffuse out alpha to opacity.
you can also delete roughness and use a HSV node from the albedo to roughness slot.
the fewer maps to deal with the better.
in other words , these are just twigs and it could be simplified, you’ll never notice any difference .

Thanks for the suggestions. I’ve tried disconnecting all maps but the diffuse png (with transparency). Opacity works as expected until fog is enabled. As soon as fog is enabled the cards are visible.

Hi guys, I hope @F801 Doesn’t mind but I also have a question regarding opacity maps and fog so I thought I’d save the forum an extra posts, and place my question here. Certainly don’t mean to step on anyones toes, and if this topic should be migrated to a page of its own, just let me know! :slight_smile:

I’m trying to recreate the demo found in the documentation. I’m linking and supplying an image below to help clarify.

Chaos Docs

I’ve tried applying a checker texture to the environment fog node, but that doesn’t seem to do anything and I don’t understand why. Also, I’ve still not addressed how to confine fog to a specific geometry. Ultimately, I’d like to be able to know how to assign fog to GEO. I’m attaching the map below of one of my attempts. Any help is deeply appreciated.

this well done video by Carlos Alvarez covers everything about Vray fog attributes and common mistakes. https://m.youtube.com/watch?v=TqwPNHIIXgo&t=1416s

Thanks @dimaggio . I just got done watching it. Going to try to mock things up and follow along.

Thanks for posting this Video @dimaggio . One thing I still don’t understand is that in the documentation they mention that they used a checker texture applied in the density channel of the enviro fog. But all of the examples I see of carlos’s are utlizing 3D textures, not 2D textures. I’m wondering how the chaos group dudes did that checkered smoke.

I’m wondering how the chaos group dudes did that checkered smoke
If you set the Checker as projections and enable its Alpha is luminance you will get that effect.

Opacity works as expected until fog is enabled. As soon as fog is enabled the cards are visible.
F801 Can you attach a simple example scene?

Hi @Zdravko.Keremidchiev , I can’t thank you enough for taking a look at this. I spent the whole day yesterday trying to get to the bottom of it. I’m attaching the file.

I think I might be doing it right for the most part, but where do I “Set as projection?”
thank you!
CubeSmokeProjectionMaya.zip (12 KB)

Hi @Zdravko.Keremidchiev , after two days I figured it out. I suppose I forgot about “Set as projection.” Also, I didn’t know that the checker texture would not work with PRODUCTION ENGINE set to RTX. Is it safe to infer that trying all things set to CPU first and then trying to see if CUDA or RTX engines would render the same result? or is there some sort of centralized page/ chart that indicates which features do or don’t work with certain engines? thanks!

@damaggio thanks for all of the suggestions and the effort in building a test scene. Mush appreciated. I still can’t get opacity to work in my scene.

@Zdravko.Keremidchiev - I’ll build a simple scene tonight and attached.

Thanks.

Hi @damaggio & @Zdravko.Keremidchiev

Simplified scene attached. I’d love to know why opacity maps aren’t working with fog.

Thanks in advance.
Simplified_Scene_0001 2.mb.zip (1.88 MB)

Please someone test his scene, I won’t be available.

Disattacing the Marble texture from the EnvironmentFog seems to fix the issue. That’s on a first glans I will check further and get back to you.

Thanks @Zdravko.Keremidchiev. Disconnecting the marble texture doesn’t fix the problem for me. Any other suggestions?

This is a very specific issue which happens only in that fall off region of the Box- environmentFog where it seems to sample the Environment override fog before the box fog in the opacity area. I’ll report this issue in our bug tracking system but I can’t give you a time frame for this fix. For now, as a workaround, I would suggest recreating those weeds as a geometry. This could be done with splines.

Another easier and faster workaround will be to use displacement with Water level. For that purpose, you will need to convert the Alpha to RGB, feed it in a displacement node that you apply to the plane, add divisions to the plane geometry and set a proper water level so the background will disappear which will leave only the branches out.