Page 4 of 7

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

Posted: Fri Aug 19, 2016 2:42 pm
by GreyWolfXx
To my surprise, I fixed it. Thank you, though! You're always very helpful.

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

Posted: Fri Oct 07, 2016 11:14 pm
by Belgerum
It looks like one of the newer versions of renpy may have messed around with transformations, and might have bugged something in the 3D camera. I've tested the issue mentioned in this thread a number of times, but it only seems to happen while I'm using the 3D camera layers. Is there some way of getting this fixed?
viewtopic.php?f=32&t=40283

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

Posted: Sun Oct 09, 2016 4:50 pm
by Georgel
Hello!

The code works wonder, but I want to ask: What are those variables defining? What are the units of measure?

for example:

Code: Select all

    
    layer_move("background", 5000)
    layer_move("background2", 3000)
    layer_move("middle2", 2100)
    layer_move("middle", 2800)
    layer_move("fore", 1500)
or

Code: Select all

$ camera_move(4600, 0, 700, 0, 0)
$ camera_move(-4600, 0, 700, 0, 20)
What exactly do these larger numbers mean? I've noticed how the camera moves and I'm able to map them mentally, but would like to know how much the camera is moving exactly. Mostly to make sure I'm avoiding going over the bound of an image.

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

Posted: Thu Jan 26, 2017 2:12 pm
by LabaroDD
Thank you very much for such an awesome feature! It's very useful and looks amazing. You did a great job!
I just have one question about scenes.

I made up a scene, using the camera function, but then there should be another scene, so I need to clear all previous images... but I can't. The previous scene is still here and I can't clear it up. Here is my script:

First scene:

Code: Select all

    
label first:
$ camera_reset()
    $ all_moves(camera_check_points={'y': [(-1433, 0.0, 'easein'), (-249, 5.43, 'easein')], 'x': [(-984, 0.0, 'easein'), (5746, 5.43, 'easein')]}, layer_check_points={'forward': [(1394, 0.0, 'easein')], 'middle': [(1848, 0, None), (1869, 5.43, 'easein')], 'background': [(1848, 0, None), (1849, 5.43, 'easein')]}, subpixel=True, **{})
    
    show 01_john onlayer middle:
        subpixel True xpos 0.55 ypos 1.0 xanchor 0.5 yanchor 1.0 rotate None 
        parallel:
            xpos 0.59
            easein 5.43 xpos 0.65
            
    show 01_lady onlayer middle:
        subpixel True xpos 1.01 ypos 1.0 xanchor 0.5 yanchor 1.0 rotate None 
        
    show 01_bg onlayer background:
        subpixel True xpos 0.5 ypos 1.0 xanchor 0.5 yanchor 1.0 rotate None 
        parallel:
            xpos 0.5
            easein 5.43 xpos 0.52
            
    show 01_spots onlayer forward:
        subpixel True xpos 0.58 ypos 0.8 xanchor 0.5 yanchor 1.0 rotate None 
        parallel:
            xpos 0.49
            easein 15.0 xpos 0.45
        parallel:
            ypos 0.8
            easein 15.0 ypos 0.84
Second scene that supposed to be here:

Code: Select all

label second:
    scene bg forest at panoramright
    show lady normal at center 
    with fade
    U "Blablabla"
I know that "scene" function is clearing all images, but here it's doesn't work. Maybe here is some camera's function that helps to do it?

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

Posted: Thu Jan 26, 2017 2:38 pm
by Belgerum
The scene function clears all other images ON THE LAYER. Without the 3D camera, everything would normally take place on the Master layer, but with this code, you're using a number of others. you'll have to manually hide them all using code like:

Code: Select all

    hide 01_john onlayer middle
            
    hide 01_lady onlayer middle
        
    hide 01_bg onlayer background
            
    hide 01_spots onlayer forward

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

Posted: Thu Jan 26, 2017 2:46 pm
by LabaroDD
Belgerum wrote:The scene function clears all other images ON THE LAYER. Without the 3D camera, everything would normally take place on the Master layer, but with this code, you're using a number of others. you'll have to manually hide them all using code like:

Code: Select all

    hide 01_john onlayer middle
            
    hide 01_lady onlayer middle
        
    hide 01_bg onlayer background
            
    hide 01_spots onlayer forward
Aaaah, I see! I never used layers before, so I didn't know how to work with it. Thank you very much, you helped me a lot!

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

Posted: Sat Jan 28, 2017 10:15 pm
by Arowana
If you have a lot of images and layers to clear at once, you could also try using a loop like this:

Code: Select all

python:
    for layer in config.layers:
        renpy.scene(layer=layer)

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

Posted: Sat Feb 18, 2017 5:01 pm
by noeinan
Wow, this looks so cool! I can't believe I didn't see it before now :D

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

Posted: Wed Mar 15, 2017 1:06 am
by arcdawn
Great plugin! I was just wondering if there were any functionalities for repeat motions?

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

Posted: Thu Jun 08, 2017 6:55 pm
by SeeingStars
How do I go about moving only one layer like the first example video? I registered the layers as the instruction stated, but using camera_move shifts the entire screen (background included).

Apologies if the answer is straightforward, but I couldn't find exactly what I needed to do in the document.

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

Posted: Sat Feb 24, 2018 5:38 am
by akakyouryuu
Updated.

I improved keymap compatibility.

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

Posted: Sat Feb 24, 2018 6:11 am
by trooper6
Thanks for the update! I haven't checked it out yet, but I'm really excited to!

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

Posted: Sun Feb 25, 2018 12:57 am
by KouhaiChan
I am super confused, I am new to renpy and coding in general. What exactly is this for? Thanks.

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

Posted: Thu Aug 23, 2018 10:00 pm
by akakyouryuu
Do you have any ideas about new function or change for camera&viewer?

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

Posted: Sun Mar 22, 2020 4:04 am
by akakyouryuu
Fixed the problem Spline interpolation didn't work.