3D camera motion, Action Editor, Transform and Image Viewer

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Message
Author
User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#76 Post by akakyouryuu »

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`.

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.

I added introduction movie.
https://www.youtube.com/watch?v=VMMBj4-7k_Q
Attachments
renpy-ActionEditor v2.zip
(434.4 KiB) Downloaded 138 times

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#77 Post by akakyouryuu »

Updated

Fixed a crash by spline.
Improved python3 compatibility
Attachments
renpy-ActionEditor v2.zip
(435.25 KiB) Downloaded 218 times

PyBandit
Newbie
Posts: 5
Joined: Thu Apr 30, 2020 3:50 pm
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#78 Post by PyBandit »

This is so cool!! I downloaded your latest zip from GitHub and added the folder to my game\ directory. I launched my project again but when I try 'Shift-P' I'm running into all sorts of errors where it can't find images from the folder such as 'camera.png' or methods are broken. The project has compiled the script and created .rpyc files so not sure what's going on. Any help is appreciated.

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#79 Post by akakyouryuu »

>> PyBandit

Is there camera.png in your game\ direcoty?

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#80 Post by akakyouryuu »

I maked 3D stage available in ActionEditor.

This is no compatibility with old version Action Editor.

To install, copy all files in the camera directory to your game directory.
Then enable it like below.
camera:
perspective True
gl_depth True

In current version ActionEditor, below functions are removed.
* the concept of depth of field
* spline
* expression
* loading last action
Attachments
renpy-ActionEditor3.zip
(17.27 KiB) Downloaded 144 times

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#81 Post by akakyouryuu »

I fixed below problem.

Some transform property value aren't got in image tab.
the clipboard button causes error.
Attachments
renpy-ActionEditor3.zip
(17.22 KiB) Downloaded 153 times

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#82 Post by akakyouryuu »

Updated Action Editor3

Improved Editor Layout
Added matrixtransform property
Added colormatrix property
Added Focusing button which enables camera blur.

Attachments
renpy-ActionEditor3.zip
(23.37 KiB) Downloaded 162 times

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#83 Post by akakyouryuu »

updated


new function
* showing, replacing and hiding Image with the given transition is available.
* Added option to hide window during ATL animation in clipboard output data.
* Improved the filtering function of the image viewer.
* If there is one candidate in the image viewer, the preview is automatically displayed.
* complement candidates with tab in the image viewer

Bug fix
* Fixed an issue where loops were not working with matrix transform, color matrix, crop
* fixed errors associated with removing and moving keyframes
* Fixed an issue where focusing could not calculate the distance between the image and the camera correctly.
* Fixed an issue where focusing was enabled and an error occurred when changing offsetZ.
* Fixed the problem that the position on the viewer and the position when pasting the clipboard were misaligned when adding a new image.
Attachments
renpy-ActionEditor3.zip
(24.33 KiB) Downloaded 132 times

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#84 Post by akakyouryuu »

Updated

new feature
*added matrixanchor
*added allow_animation_skip variable into ActionEditor_config.rpy. if this and hide_window_in_animation is True, the clipboard data is outputted in skippable format.

fixed issues
*improved the algorithm for computing rotateXYZ when open ActionEditor.
*added the space between properties in clipboard data.
*crop_relative is outputted correctly in clipboard
*fixed the issue that the same property is outputted many times in clipboard.
*fixed the issue focusing doesn’t work in clipboard data.
*improve performance

Note
Skipping animation may not work correctly when animation includes loop and the tag is already shown.
Attachments
renpy-ActionEditor3.zip
(26.46 KiB) Downloaded 155 times

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#85 Post by akakyouryuu »

I updated Action Editor
https://github.com/kyouryuukunn/renpy-A ... 20212_beta

ActionEditor has many functions and I don't use this by own, so I can't found all issues about ActionEditor. Please, report issues and reproducibility procedure of that when you found that.
Issues which aren't reported might not be fixed.


New
*New Gui like aftereffect(I recommend the legacy gui for small and 4:3 window, you can change gui in opotion)
*Spline Editor
*allow adding scene statement in GUI
*add option page
*add zzoom property
*add perspective property
*Added new tag numeric prefix when the tag is already shown.


NekoNyandereUwU
Newbie
Posts: 3
Joined: Tue Dec 15, 2020 12:01 am
Projects: A Novel
itch: nekonyandere
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#86 Post by NekoNyandereUwU »

This is awesome!
I liked how the plugin works
I also love how it's still up-to-date!
I'm impressed :o

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#87 Post by akakyouryuu »

I updated ActionEditor

https://github.com/kyouryuukunn/renpy-A ... 3/releases
add x, ypan, x, ytile properies
change time value and bar during playing
allow change time and add a keyframe by click or alternate-click timeline background
allow moving images and camera by drag icons
add sound keyframeadd graphic editor mode
add warper generator


User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#88 Post by akakyouryuu »

I fixed issue click and drag doesn't work.

220306_beta
https://github.com/kyouryuukunn/renpy-A ... 3/releases

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#89 Post by akakyouryuu »

how to use spline curve in ActionEditor Graphic mode.

User avatar
akakyouryuu
Regular
Posts: 161
Joined: Fri Nov 30, 2012 10:29 am
Contact:

Re: 3D camera motion, Action Editor, Transform and Image Viewer

#90 Post by akakyouryuu »

I updated ActionEditor
https://github.com/kyouryuukunn/renpy-A ... 0505_beta2


add ATL_function.rpy which include some useful functions for function statement in ATL block.
allow set function statement in ActionEditor.
allow user to add a property in ActionEditor.
Clicking a tag button in image viewer add filter that tag.
improve documents

Post Reply

Who is online

Users browsing this forum: Semrush [Bot], VESTED