3D camera motion, Action Editor, Transform and Image Viewer
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.
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.
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
3D camera motion, Action Editor, Transform and Image Viewer
I maked the GUI Viewer of 3D camera motion and Transform for Ren'Py.
Place the script in your game directory and read document.
You can download the latest version script from the last page in this thread or git
Tutorial playlist
https://www.youtube.com/playlist?list=P ... sNAeUZ92EG
latest download
https://github.com/kyouryuukunn/renpy-A ... 3/releases
3D stage is available in ActionEditor3 for Ren'Py v7.4.5 later.
https://github.com/kyouryuukunn/renpy-ActionEditor2
3D stage is not available, but the original camera simulation functions are available in ActionEditor for Ren'Py v7.4.0. later
expression and spline function, loading last move are available
https://github.com/kyouryuukunn/renpy-ActionEditor
Place the script in your game directory and read document.
You can download the latest version script from the last page in this thread or git
Tutorial playlist
https://www.youtube.com/playlist?list=P ... sNAeUZ92EG
latest download
https://github.com/kyouryuukunn/renpy-A ... 3/releases
3D stage is available in ActionEditor3 for Ren'Py v7.4.5 later.
https://github.com/kyouryuukunn/renpy-ActionEditor2
3D stage is not available, but the original camera simulation functions are available in ActionEditor for Ren'Py v7.4.0. later
expression and spline function, loading last move are available
https://github.com/kyouryuukunn/renpy-ActionEditor
Last edited by akakyouryuu on Sat Jul 30, 2022 11:46 am, edited 8 times in total.
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
I fixed some bugs.
and renamed some functin
register_td_layer() -> register_3d_layer()
release_td_layer() -> release_3d_layer()
and renamed some functin
register_td_layer() -> register_3d_layer()
release_td_layer() -> release_3d_layer()
- Attachments
-
- camera.zip
- (4.59 KiB) Downloaded 683 times
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
Now, Transform Viewer "reset" button works correctly.
And I call viewers in new context.
And I call viewers in new context.
- Attachments
-
- camera.zip
- (4.69 KiB) Downloaded 649 times
- Hazel-Bun
- Eileen-Class Veteran
- Posts: 1010
- Joined: Sun Oct 28, 2012 6:03 pm
- Completed: Sunrise: A Dieselpunk Fantasy & Ultramarine: A Seapunk Adventure
- Projects: Thrall: A Dark Otome Visual Novel
- Organization: AURELIA LEO, LLC
- Tumblr: authorzknight
- itch: authorzknight
- Contact:
Re: 3D camera motion and Transform Viewer
Very cool! Thanks for posting ^u^
Black bookstore owner. Diverse fiction reviewer. Bestselling romance author. Award-winning fiction editor. Quite possibly a werewolf, ask me during the next full moon.
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
Viewers can put date on clipboard.
Improved style
Improved style
- Attachments
-
- camera.zip
- (4.99 KiB) Downloaded 661 times
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
This may be final version.
If you find bugs, please report me.
Note:
Clip board functions works in only Ren'Py v6.99 or later.
- Attachments
-
- camera.zip
- (5.6 KiB) Downloaded 643 times
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
I added "rule of thirds" screen.
- Attachments
-
- camera.zip
- (5.73 KiB) Downloaded 698 times
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
I fixed a problem that pressing "Shift+P" crashes a game when config.developer is False.
- Attachments
-
- camera.zip
- (5.73 KiB) Downloaded 582 times
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
I added the Viewer keyframe functions.
I changed arguments of camera_moves and layer_moves, please read documents
This works in Ren'Py v6.99 or later.
!Note, layers don't participate in keyframe functions!
I changed arguments of camera_moves and layer_moves, please read documents
This works in Ren'Py v6.99 or later.
!Note, layers don't participate in keyframe functions!
- Attachments
-
- camera.zip
- (9.3 KiB) Downloaded 617 times
Last edited by akakyouryuu on Sat Feb 24, 2018 6:26 am, edited 1 time in total.
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
New feature:
Allowed the z coordinate of camera to be changed by a mouse wheel.
Allowed the x, y coordinate of camera to be changed by dragging a camera icon.
Allowed 3d layers and camera to be moved at the same time.
Now, 3d layers could participate in keyframe functions.
And I fixed many bugs.
Allowed the z coordinate of camera to be changed by a mouse wheel.
Allowed the x, y coordinate of camera to be changed by dragging a camera icon.
Allowed 3d layers and camera to be moved at the same time.
Now, 3d layers could participate in keyframe functions.
And I fixed many bugs.
- Attachments
-
- camera.zip
- (11.54 KiB) Downloaded 636 times
Last edited by akakyouryuu on Sat Feb 24, 2018 6:33 am, edited 1 time in total.
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
I added "camera.png".
I fixed document.
Now, If anything isn't registered as 3D layers, this script register "master" layer as 3D layers.
I fixed document.
Now, If anything isn't registered as 3D layers, this script register "master" layer as 3D layers.
- Attachments
-
- camera.zip
- (15.64 KiB) Downloaded 567 times
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
I fixed some bugs
- Attachments
-
- camera.zip
- (15.59 KiB) Downloaded 536 times
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
I fixed some bugs.
I added loop buttons.
This may be stable version. If you found bugs, please tell me.
Note that you should call camera_reset() when game has started like below.
If this isn't called, the z coordinates of 3D layers aren't be saved.
I added loop buttons.
This may be stable version. If you found bugs, please tell me.
Note that you should call camera_reset() when game has started like below.
If this isn't called, the z coordinates of 3D layers aren't be saved.
Code: Select all
label start:
$ camera_reset()
- Attachments
-
- renpy-ActionEditor.zip
- (17.14 KiB) Downloaded 629 times
- akakyouryuu
- Regular
- Posts: 163
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: 3D camera motion and Transform Viewer
I added functions expression arguments. These expression are callable, which is called with the shown timebase and the animation timebase, in seconds and return a number. The result of this is added to the each coordinate of the camera.
For example,
For example, you can use a wiggle function like after effect. This may be used for camera shake.
Please tell me If you make useful expression.
For example,
Code: Select all
init python:
class Sin(object):
def __init__(self, freq, amp):
self.freq = freq
self.amp = amp
def __call__(self, st, at):
from math import sin, pi
return self.amp*sin(2*pi*self.freq*st)
label example:
$ all_moves(y_express=Sin(freq=.5, amp=30))
Code: Select all
init python:
class Wiggle(object):
def __init__(self, freq, amp, octaves=1, ampMulti=.5, time=0):
from random import random
self.randoms = [(1+random(), 1+random()) for i in range(0, 100)]
self.freq = freq
self.amp = amp
self.octaves = octaves
self.ampMulti = ampMulti
self.time = time
def __call__(self, time, at):
from math import sin, pi, ceil
r1, r2 = self.randoms[int(ceil(time*self.freq)%100)]
return r1*self.amp*sin(2*pi*self.freq*time) + r2*self.amp*self.ampMulti*sin(2*pi*self.freq*2*self.octaves*(time+self.time))
label example:
$ all_moves(x_express=Wiggle(freq=.5, amp=10), y_express=Wiggle(freq=.6, amp=10), z_express=Wiggle(freq=.4, amp=1))
- Attachments
-
- camera.zip
- (19.59 KiB) Downloaded 987 times
- KairuKyun
- Veteran
- Posts: 286
- Joined: Thu Feb 12, 2015 4:10 pm
- Completed: No One But You, Catch Canvas, Sickness, Written in the Sky, Wander no more, Warped Reality
- Projects: Warped Reality
- Organization: Unwonted Studios
- IRC Nick: Kairu_kyun
- Tumblr: karamuchan
- Contact:
Re: 3D camera motion and Transform Viewer
This all has been looking so promising!!! I am using this in my game No One But You.
Kyle Tyner
Creator of Unwonted Studios
ktyner@unwontedstudios.co
Visit Our Website
Projects: No One But You, Sickness, Written in the Sky, Wander no more, Catch Canvas, Warped Reality
Creator of Unwonted Studios
ktyner@unwontedstudios.co
Visit Our Website
Projects: No One But You, Sickness, Written in the Sky, Wander no more, Catch Canvas, Warped Reality