bezo97 / IFSRenderer

3D IFS fractal renderer and editor
https://ifsrenderer.z97.io/
GNU General Public License v3.0
52 stars 7 forks source link

Aperture feature do not working in Equirectangular Projection #32

Open mareninigor opened 2 months ago

mareninigor commented 2 months ago

Describe the bug Aperture feature do not working in Equirectangular Projection

To Reproduce Steps to reproduce the behavior:

  1. Set Aperture in Perspective Projection to blur out of focus range
  2. Click on Equirectangular Projection
  3. See no blur

Expected behavior Expected to see the same blur in Equirectangular Projection that was in Perspective Projection

Desktop (please complete the following information):

bezo97 commented 2 months ago

Thanks for the report, I'm looking into this. Planning to fix this for next release.

bezo97 commented 1 month ago

This feature was not implemented in equirectangular and fisheye projections because I'm not sure how it should work, since in these modes there's no clear focus point. I think the most useful would be to keep things in focus in every direction around the camera, so basically instead of a "plane of focus" there is a "sphere of focus" that does not depend on the camera direction. Here's a few sample images:

Equirectangular: image Fisheye: image And no changes for the perspective projection.

Feature can be tested on the dev branch before release.