Min/Max settings for both VRayAerialPerspective and VRayEnvironmentFog height and distance

I know with at least VRayEnvironmentFog this is mappable, but that is very tedious to set up compared to what I am proposing.

I love VRayAerialPerspective but I feel it could be enhanced with some additional features. I propose that as opposed to Fog distance and visibility range, we could instead have the following additions:

VRayEnvironmentFog

  • Fog distance min
  • Fog distance max
  • Fog height min
  • Fog height max

VRayAerialPerspective

  • Visibility range min
  • Visibility range max
  • Atmosphere height min
  • Atmosphere height max

This would effectively function like the min-max values in the ZDepth pass.
And the ultimate addition to these would be the inclusion of a curve editor to affect the falloff from min to max values.
As I have argued for previously an option for VRayAerialPerspective to not affect alpha would save me SO much time. If I use VRayAerialPerspective, I always have to re-render the entire image in order to get a clean alpha. It’s confounding to me that an option to avoid this still doesn’t exist.

It’s in the latest V-Ray 6 beta.

As for the Min/Max settings, I’ll check with the devs what can be done.

Thank you!!!

Actually we had to hide it for a while until some issues are resolved, but it will return very soon. The option for the VRayEnvironmentFog is there.

Min-Max range for the Aerial Perspective is a MUST have; its use is very limited without.
Hope we get this option asap.

Any news on if this actually happening @matanov ?

It’s in the list, but the list is long :slight_smile:

can we bump it up in the ladder perhaps?

Adding all of those controls will slow down the rendering. Do you think only a starting bias will do it in most of the cases?

Will the starting Bias control the distance from camera that the Aerial Perspective start affecting the scene ?
And reach all the way to the max distance, from that bias point?
Or, it will not affect the start-end distances and just shift the density curve back n forth?

If its, the later, I think it will not do what is needed…

Please describe the effect you want to achieve.

Simple…

Right now, Aerial Perspective adds simple fog effect to the scene, starting from camera’s pivot extending to the range distance you declare, in camera space.
And you also have control over the height from ground and up.

We need a control for the starting point of the fog, to move it further down the camera space and NOT having it start at camera’s pivot.
Most of the times, you want your foreground objects to stay out of the fog effect and only use the fog to better blend into the environment the background objects.

Also, would be great if we get a bias control to adjust with a curve the falloff of the whole fog; right now is linear from 0 to100, if I’m not mistaken.

So, two things:

1. A custom starting point based on camera’s space to start the fog (aerial perspective); could be a float slider value.
2. A falloff bias, preferably using a Texture Map slot, to control the fog expansion from 0 (no fog) to 100 (full fog).

Hope this make sense.

Thanks,
Greg

I haven’t tried it, but how about a VRayDistanceTex in an empty VRayVolumeGrid? (For your controllable fog start and end)

Been using volume grids for most fog/haze uses for a number of months. They work quite well, and render fast.

I too use phoenix grids for fog; they work fine using the Border Fade option, so no need for DistanceTex, which usually slows down the renderer.

But, fog using volume grids is not the same as the Aerial Perspective; two completely different applications and results.
Aerial Perspective needs to be addressed, in order to become flexible, there’s no two ways about it.

Can you explain how you’re doing this? I can’t work it out…

You mean his to use the empty volume grid for fog, or his to use it with the distance texture? I have yet to use it with the distance texture— that was a brainstorming guess at something to try.

Just to use the volume grid you add a volume grid and click cancel when asked to load a file. Then go to the rendering settings and set smoke to use the smoke channel rather than simple smoke. Then go to the curve and set the leftmost point Y (output) value to something like 0.01 experiment with different values to get the results you want ( it might be very small).

Be sure to also set the minimum visible opacity to a low value (lower is slower). 0.001 is likely e decent starting point. You want it as high as possible for render speed, but you may not see fine fog without keeping it low.

Use the grid settings to control where the fog is, and experiment with the cell size to determine how many cells you need. Fewer cells is faster, more cells is more accurate, but 1-3 million cells is usually pretty adequate, depending on the scene.

Thanks! I’ll have a go

With the minimum visible opacity I believe I was off by an order of magnitude. May need to go more like 0.0001 or possibly lower.

I have had some crashes using volume grid in IPR. I think the latest dailies may have fixed these. Just save often until you are sure. The crash would happen when stopping IPR.

You can set the mode to Ray traced and try a little phase function to get directional scattering through the volume. Not always required (and slower), but looks better in some cases.

I think this tells me that this is way too complex for simple fog and why Aerial perspective was such a godsend when it was introduced back in 2016? Either way just a few simple controls would round it out…

If Aerial Perspective works for your needs then perhaps so. I always have trouble getting the looks I want with it. Also, the VolumeGrid is usually faster (everything is scene dependent).