View Issue Details

IDProjectCategoryView StatusLast Update
0001315FreeCADFeaturepublic2013-12-22 22:21
Reporterquick61 Assigned Toyorik  
Status closedResolutionfixed 
Summary0001315: Add line to POV-Ray Camera to Set Automatic Aspect Ratio.
DescriptionWould like to see a line added to the camera section of the FreeCAD generated POV-Ray script that would automatically set the cameras aspect ratio to the width / height,(+Wn +Hn) that is set by the user in the View > Preferences > Raytracing. This would be to great advantage to both novice and experienced users alike.

The current script looks like this. -

camera {
  location  cam_location
  look_at   cam_look_at
  sky       cam_sky
  angle     cam_angle

With the addition of one line, any width / height entered will render the target item without distortion. The camera section should be. -

camera {
  location  cam_location
  look_at   cam_look_at
  sky       cam_sky
  angle     cam_angle
  right x*image_width/image_height  //Auto Aspect Ratio

Additional InformationThis was tested rendering a FreeCAD part with 4:3, 16:9, 2.35:1 (cinema) and 1:1 aspect ratios on POV-RAY 3.7. The line of code "right x*image_width/image_height" was taken from an example given for POV-Ray 3.6, so it should be compatible with all modern installs.
TagsNo tags attached.
FreeCAD Information


There are no notes attached to this issue.

Related Changesets

FreeCAD: master 16334039

2013-12-22 23:18:19


Details Diff
Raytracing: Added aspect ratio to POV output - fixes 0001315 Affected Issues
mod - src/Mod/Raytracing/App/PovTools.cpp Diff File
mod - src/Mod/Raytracing/App/PovTools.h Diff File
mod - src/Mod/Raytracing/Gui/AppRaytracingGuiPy.cpp Diff File

Issue History

Date Modified Username Field Change
2013-11-22 01:11 quick61 New Issue
2013-11-22 16:04 yorik Assigned To => yorik
2013-11-22 16:04 yorik Status new => assigned
2013-12-22 22:21 yorik Changeset attached => FreeCAD Master master 16334039
2013-12-22 22:21 yorik Status assigned => closed
2013-12-22 22:21 yorik Resolution open => fixed