Most of the time I render at 5K for production, but with this denoiser trick I want to try, I need to render at 10K. The issue is that when using 3D displacement with view dependent not only does the look of the displacement change, but also sometimes it doesn’t want to render as the mesh is subdivided a lot more and I get an embree error. Now when I have 2 displacements in my scenes that is not really an issue and I can change the subdivision to something lower, but when you have more you will have to do this every time for different resolutions and that is just not feasible.
So I would like to propose a view and resolution dependent solution, so the subdivision of the displacement changes automatically depending on the resolution the image is being rendered at.
For instance you do your testing on a 4K resolution, displacement looks good at 4 pixels, so then could say, “lock to current resolution” where the resolution of the render is stored, If you want to render at 5K or 10K, a multiplier is applied that will lower the resolution of the subdivision, or vice versa.
I remember having this discussion either with Vlado or Lele at some point but I can’t find the thread anymore.
In the meantime, here’s a simple script that will divide/multiply the Edge Length by a value:
Division:
select (for each in geometry where each.modifiers.count != 0 collect each)
for p in selection do (
for i in p.modifiers where classof i == VRayDisplacementMod do i.edgeLength = (i.edgeLength) / 2
)
clearSelection()
Similar is the word. The reason why it’s not automatic at the moment is that when view-dependent is active, internally, V-Ray tries to retain the displacement’s look with various resolutions. Because we can’t be sure that the results will be similar by simply multiplying/dividing, we decided not to automatically sync the edge length’s value to the resolution.
The opposite. When going from 5K to 10K, you need to multiply; otherwise, the Edge Length will be twice as low for a resolution twice as high (may lead to insufficient RAM). When going from 10K to 5K, you divide; smaller edge length for a smaller resolution.
By the way, if you disable “View-dependent,” you can set a static edge length for the whole scene. This, of course, may cause more RAM utilisation. Overall, non-view-dependent displacement delivers identical looks at the cost of RAM, while view-dependent displacement delivers non-consistent looks with constant RAM.
Yeah I know static but for this project not a good option as this also divides the things that are too far away and I will have embree errors for sure in this case. Thanks.