Re: 3D camera motion, Action Editor, Transform and Image Viewer
Posted: Fri Nov 27, 2020 11:01 am
Update
* Supported the concept of depth of field using blur after v7.40(gl2 or ANGLE2 is required).
1pixel blur is used where the distance from the focus position is dof.
DOF is used to adjust the sharp range. Focus is used to adjust the focus position.
You can adjust dof config in camera_config.rpy
Note after v7.40 and GL 2 or ANGLE2 are required.
DOF is simulated using blur for layers, so note the back layer is often seen through the front layer.
Function dof_set() is added
Now, function all_moves has keyword argument `focus_check_points`.
I added introduction movie.
https://www.youtube.com/watch?v=VMMBj4-7k_Q
* Supported the concept of depth of field using blur after v7.40(gl2 or ANGLE2 is required).
1pixel blur is used where the distance from the focus position is dof.
DOF is used to adjust the sharp range. Focus is used to adjust the focus position.
You can adjust dof config in camera_config.rpy
Note after v7.40 and GL 2 or ANGLE2 are required.
DOF is simulated using blur for layers, so note the back layer is often seen through the front layer.
Function dof_set() is added
Now, function all_moves has keyword argument `focus_check_points`.
Code: Select all
def dof_set(dof, duration=0, warper='linear', **kwargs):
"""
:doc: camera
Set the depth of field.
`dof`
`dof` is the z range where layers aren't blured. it defaults to 9999999.
`duration`
The time, in seconds, to complete the dof change. If no time is given,
the change will happen instantaneously.
`warper`
A string that points to a registered ATL warper, like \'ease\'.
If no warper is given, this will default to \'linear\'.
"""
def all_moves(camera_check_points=None, layer_check_points=None, focus_check_points=None, subpixel=True, play=True, x_loop=False, y_loop=False, z_loop=False, rotate_loop=False, x_express=None, y_express=None, z_express=None, rotate_express=None, camera_spline=False, **kwargs):
"""
:doc: camera
Allows for both camera moves and layer moves to happen within the same interaction, in any given combination. The Action Editor will usually generate these.
`camera_check_points`
A list of check points for the camera to go through, split by coordinate in the following format:
{
'x':[(x, duration, warper)...]
'y':[(y, duration, warper)...]
'z':[(z, duration, warper)...]
'rotate':[(rotate, duration, warper)...]
}
`layer_check_points`
A list of check points for layers to go through, in the following format:
{
'layer name':[(z, duration, warper)...]
}
`focus_check_points`
A list of check points for the depth of field & the focus position,
in the following format:
{
'focus':[(z, duration, warper)...]
'dof':[(dof, duration, warper)...]
}
`dof` is the z range where layers aren't blured. it defaults to 9999999.
`focus` decides the focus position. It is the z coordinate which is sum of this value and
the z coordinate of camera.
https://www.youtube.com/watch?v=VMMBj4-7k_Q