Blender 4.x Cycles Photorealism Improvements...still not quite there for me

Just watching these images I can say that I like the way the environment light improve the room lighting.
Not oren nayar seems “cuts” the environment lighting, darkening the images and reducing the visible colors.
About the middle scene (the full interior one), I can’t see a big difference, at least on my monitor (I don’t want to start a color debate here, just to motivate my opinion on this).

1 Like

That feels like a case of the grass is greener on the other side. There are always pros and cons.

Do you think that adding and maintaining another default renderer is easier than fixing issues in an existing renderer?

2 Likes

That’s an interesting suggestion. While Luxcore “excels” in photorealism [I personally don’t believe that], it would be good to know how it handles NPR rendering as well. Blender caters to a large NPR user base in the animation industry, possibly even more so than the photorealistic rendering space. Cycles strikes a good balance between the two, making it a versatile tool; and I think that’s what blender needs.

And oh, more official renderers the more difficult it is to maintain.

1 Like

Besides that, Dade left Luxcore development, and it is currently a dead project, so the BF would have to take over a completely unfamiliar codebase and divide their time between it and Cycles.

You could argue that Cycles should just be retired instead, but I refuse to believe that after Cycles X and the work done since that the best route would be for the BF to simply call it quits.

2 Likes

One more thing I can add: Most of the people do not works with real life scale, for this reason especially Bump and Normal values can be too much or too low, and for this reason they everytime met shading problems.

If you want photorealistic result, you must work with real life scale.

8 Likes

The difference here is huge. Assuming this yields could be ported from Mantra to Cycles unaltered, my humble opinion is that Cycles developement should IMMEDIATELY focus on supporting mipmaps!
I mean, it’s not a matter of memory or rendertime enhancements that could just be tagged as least as “nice to have”. Here we are witnessing a massive image quality improvement. That’s something we need, and that Cycles deserves: a clear way to improve quality!
I hope devs have long ears, and they hear the rumors in this thread loud enough!
thanks @SteffenD for taking the time

6 Likes

It was just my personal research :wink:

Most of the production renderers I used during the last 25 years had a texture cache / tiled&mipmapped workflow in a way or another.
The ones I remember: mental ray (in Softimage), 3Delight, Renderman, Arnold, V-Ray, Modo’s renderer, Redshift.
They didn’t implement it just for fun but because it’s a super convenient feature, both for performance / memory consumption as well as for quality of the rendered textures.

Why? Because your renderer already has a lot to digest, it has to fire a lot of rays to explore a lot of paths for a lot of different ray types bouncing off a lot of surfaces.

Now imagine on top of that it gets spammed by terabytes of texture data it has to sample that it doesn’t even “see” (e.g. because it’s off-screen and does not contribute to the visible image) at a resolution that’s so high frequency that it needs to fire a lot of more rays to estimate the average of contribution of this tiny part of the texture to the current pixel by firing a gazillion more rays. Shitty job!

Now what if the renderer would get served only the texture info it needed in a pre-chewed manner, easy to digest so to say. And only the parts of the textures that it actually is looking at (either directly or by indirect rays, e.g. in a reflection or diffuse bounce).
That’s what the texture cache is doing: The tiled&mipmapped texture can be accessed by the renderer at the position (tile) that’s needed in the resolution (mipmap level) that’s needed for every sample. Awesome job!

P.S.: I noticed too late that the comparison images of the previous post looked quite mangled by the side-by-side comparison slider’s compression and downscaling, but even then the differences were more than visible.

5 Likes

To be fair, as far as I remember, the situation is quite a bit more complicated than that.
When the rendering process for a frame is started, it is not known what kind of resolution(s) is/are needed for which texture.
Especially for offscreen textures, I imagine it is not trivial to figure out what is needed. You essentially need to render a few samples in a special way to figure that out.
Mipmapping alone would be easy, because there would always be several resolutions for each texture available. But dynamically loading the needed ones sounds very difficult to me.

Figuring out a good way to do that for all the platforms is in my view very challanging.

1 Like

And here’s another one. To show the mipmapping part a bit better I thought I’d record two clips inspired by this https://arnoldsupport.com/2017/11/02/using-oiiotool-and-maketx-to-create-a-mipmap-debug-texture/

It visually shows the implications of using mipmaps. In the usual workflow mipmaps are scaled down versions of an original image, usually by a factor of 2. So for a 256x256 texture you would get the mipmap levels
128x128, 64x64, 32x32, 16,16, 8x8, 4x4, 2x2 and 1x1, like this (stolen from the Arnold docs):

image

The minification is a 2D process and can therefore be filtered by the well known methods like bilinear, bicubic etc. to get rid of aliasing.
The smaller mip levels are “prefiltered” so to say. This takes away the burden from the renderer to filter these textures by brute force.

Enough said.

Instead of using minified versions of the full res image, you could also use anything you like as a mip level texture. And in the example mentioned above a differently colored and sized grid was used per mip level like this:

A bit of command line magic was used to form a single tx file containing all these mip levels.
As you can see the 8k original is now a magenta colored checkerboard, the half sized 4k variant is a red checkerboard etc. so you can clearly distinguish them visually.

The original “debug.tx” is no longer available but I built one myself debug.tx (3.3 MB) and attached it here for convenience.

Now for the next part. To see these mip-levels in action (which won’t happen in Cycles yet) I again used Houdini / Mantra and built a simple scene with a sphere on a grid, both textured with this debug.tx file. Mantra automatically sees that the file contains mipmaps and uses them.

Long story short, here’s a quick camera dolly:

As you can see (compare it to the list of mip levels above), the used texture always changes according to what the camera sees or how close it is. Just like LODs in games etc.
You can also see that the border between the mip levels is very abrupt. This means the transition between the levels is not smooth. This would look quite disturbing in animations.
But help is near. Mip levels can be interpolated by every renderer that supports them and in Mantra it looks like this:

As you can see in the last frames. The full res 8k source is only ever used in the very last part of the dolly. And with tiling only the part that’s actually visible is loaded into memory.

12 Likes

Good point, but don’t fear: The renderer’s texture cache takes care of that :wink:
If a ray e.g. hits off screen textures, it loads the tile of the texture needed there at the right mip level in cache and continues rendering. Nothing is lost.
It’s not like camera-clipping the whole geometry because you think “the camera doesn’t see that part anyway” and afterwards getting strange results because the skyscrapers off-screen were occluding the light and they’re now gone.

3 Likes

I am using real life scale:
VVu
1 Blender unit to 1 meter or is this wrong?

1 Like

What he meant is, if a building is supposed to be 200m tall, don’t make it 20m tall just to have a smaller and more manageable scene (particularly if you have considerably smaller objects in there like, say people).

2 Likes

I notice length is set to milimeters, I don’t know if that’s intentional

Me who makes black holes barely a meter across instead of a billion
XD

2 Likes

Yeah, I understood what he said and the object is to scale. It’s part of a tree and it is 12 meters high.

1 Like

Yeah, 1000 millimeters is 1 meter. I use mm but the measurement is still the same.

2 Likes

So if you want a 1m default cube you have to scale it by 1000x?

Not really, Just enter the vaules here. That’s how I always check that things are to scale: :slightly_smiling_face:

VVu

You can always set the scale back to 1.0 by applying the scale.

2 Likes

OpenImageIO takes care of it if you render on the CPU, but at least in 2018, it was a different story:

Also later on:

Do you have other sources where it is confirmed that the GPU part is solved?

1 Like

OIIO in Blender (on CPU with OSL) currently takes care of using mipmaps but not tiling.

Without OSL or on GPU (even with OSL active) nothing in terms of tiling or mipmapping is taken care of sadly.

There was a branch by Stefan Werner where he merged his work from Tangent. But CPU only as well.

Funny to see these old threads (where my ugly face pops up all the time :wink: ).

1 Like