Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Commit

Permalink
Angular camera: added "Ortographic" projection
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBluecame committed May 9, 2020
1 parent 78f640d commit b06f950
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ This is an abbreviated list of changes. The full/detailed list of changes can be
* Blender Exporter (for Blender v2.7x): https://github.com/YafaRay/Blender-Exporter/commits/master


YafaRay v3.4.3 (2020-05-09) for Blender 2.79:
---------------------------------------------
* Angular camera: added "Ortographic" projection. `[Blender Exporter + Core]`


YafaRay v3.4.2 (2020-05-04) for Blender 2.79:
---------------------------------------------
* Added Equirectangular camera. `[Blender Exporter + Core]`
Expand Down
1 change: 1 addition & 0 deletions io/yaf_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def __init__ (self, camera, camera_name, view_name):

elif camType == "angular":
yi.paramsSetBool("circular", camera.circular)
yi.paramsSetBool("orthographic", camera.orthographic)
yi.paramsSetBool("mirrored", camera.mirrored)
yi.paramsSetFloat("max_angle", camera.max_angle)
yi.paramsSetFloat("angle", camera.angular_angle)
Expand Down
5 changes: 5 additions & 0 deletions prop/yaf_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def register():
name="Circular",
default=False)

Camera.orthographic = BoolProperty(
name="Orthographic projection",
default=False)

Camera.use_clipping = BoolProperty(
name="Use clipping",
default=False)
Expand Down Expand Up @@ -109,6 +113,7 @@ def unregister():
Camera.max_angle
Camera.mirrored
Camera.circular
Camera.orthographic
Camera.use_clipping
Camera.bokeh_type
Camera.aperture
Expand Down
1 change: 1 addition & 0 deletions ui/properties_yaf_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def draw(self, context):
layout.prop(camera, "max_angle")
layout.prop(camera, "mirrored")
layout.prop(camera, "circular")
layout.prop(camera, "orthographic")

elif camera.camera_type == 'orthographic':
layout.prop(camera, "ortho_scale")
Expand Down

0 comments on commit b06f950

Please sign in to comment.