Render: POV-3.7: Camera angle formula #75433

Closed
opened 2020-04-06 09:07:21 +02:00 by Iari Gabriel Marino · 4 comments

System Information
Windows 1909 (build SO 18363.720):
Graphics card: NVIDIA GForce GT 1030

Blender Version
Broken: Blender 2.80 (sub 75)
Worked: (optional)

Short description of error
The formula used in the addon to calculate the camera angle (line 670) is wrong:

"angle %f\n" % (360.0 * atan(16.0 / camera.data.lens) / pi)

The right formula is:
"angle %f\n" % ( 2 * atan(camera.data.sensor_width / 2 / camera.data.lens) * 180.0 / pi)

I discovered the bug when I tryed to composite Cycles and povray images of the same scene.

Exact steps for others to reproduce the error
In a basic blender file, render a scene with Cycles and the PovRay addon. Compare the two images: the field of view is different.

Igmar

**System Information** Windows 1909 (build SO 18363.720): Graphics card: NVIDIA GForce GT 1030 **Blender Version** Broken: Blender 2.80 (sub 75) Worked: (optional) **Short description of error** The formula used in the addon to calculate the camera angle (line 670) is wrong: "angle %f\n" % (360.0 * atan(16.0 / camera.data.lens) / pi) The right formula is: "angle %f\n" % ( 2 * atan(camera.data.sensor_width / 2 / camera.data.lens) * 180.0 / pi) I discovered the bug when I tryed to composite Cycles and povray images of the same scene. **Exact steps for others to reproduce the error** In a basic blender file, render a scene with Cycles and the PovRay addon. Compare the two images: the field of view is different. Igmar

Added subscriber: @Igmar

Added subscriber: @Igmar

Added subscriber: @rjg

Added subscriber: @rjg

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Robert Guetzkow self-assigned this 2021-01-26 11:15:12 +01:00

This was fixed by commit e44e5845ee

This was fixed by commit e44e5845ee
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#75433
No description provided.