Volumetric + Orthogaphic Viewport = Impossible?

[EDIT] Topic was created about eevee, but having the exact same problem with Cycles, in fact …

Hello there,

I am running some volumetric lighting tests on the last version from the builder (v2.81 alpha)
And render viewport turns black on orthographic mode. On this gif I’m switching between orthographic and perspective :

eevee_ortho

First that came like a bug for me…

But then I realized that in fact it’s not totaly black, it’s just “much darker”. Like if Volume Scatter of the scene would have crazy high density. And indeed, thinking about that, with some volume scatter, darkness of the scene depends on camera distance (if you move back the camera and zoom in, it’s darker due to more “volume scatter” between camera and surface).

And here it’s like if Blender was computing orthographic camera from very very far. But mathematically, an orthographic camera model is just a projection which can be done on any plane, so we should be able to actually “choose” how far is the viewport camera from the scene…


So I came to this second test : Adding a new camera an setting it to orthographic.
Here it works, and indeed, changing distance changes nothing but darkness :

eevee_ortho_2


It means that the only problem is to be able to set the distance of the viewport orthograhic camera… But can we ? :thinking: Here is the question…

See you :slight_smile: ++
Tricotou

[EDIT] Topic was created about eevee, but having the exact same problem with Cycles, in fact …

[KINDA SOLVED] In fact changing the clip end param of the Viewport to something pretty little (like 10m) actually works.

I say “kinda solved” because it crops (“clips”) the scene in depth, but yeah, this clipping param seems to have an influence on camera distance, as it’s changing volume scatter brightness.

But that’s weird :thinking:
Because I really know what clipping is, for me it’s near and far limits of the camera, to be used on depth buffer calculation (and by the way that’s why many people have troubles when setting crazy high clip end or crazy little clip start, because it kills the depth precision)
For me there is no reason why it would be related to camera distance :thinking:

See you :slight_smile: ++
Tricotou