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
GreyWolfXx
Regular
Posts: 68
Joined: Fri Jun 05, 2015 1:00 am
IRC Nick: Grey
Skype: GreyWolfXxII
Contact:

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

#46 Post by GreyWolfXx »

To my surprise, I fixed it. Thank you, though! You're always very helpful.

"We have been to the moon, we have charted the depths of the ocean and the heart of the atom,
but we have a fear of looking inward to ourselves because we sense that is where
all the contradictions flow together." -- Terrence Mckenna

User avatar
Belgerum
Regular
Posts: 110
Joined: Thu Nov 06, 2014 12:24 am
Skype: belgerum09
Soundcloud: Belgerum
itch: Belgerum
Contact:

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

#47 Post 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

Georgel
Newbie
Posts: 23
Joined: Tue Mar 22, 2016 8:03 am
Organization: Seventh Heart Sudios
Location: Romania, Bucharest
Contact:

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

#48 Post 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.

LabaroDD
Regular
Posts: 34
Joined: Thu Apr 14, 2016 7:47 am
Contact:

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

#49 Post 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?

User avatar
Belgerum
Regular
Posts: 110
Joined: Thu Nov 06, 2014 12:24 am
Skype: belgerum09
Soundcloud: Belgerum
itch: Belgerum
Contact:

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

#50 Post 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

LabaroDD
Regular
Posts: 34
Joined: Thu Apr 14, 2016 7:47 am
Contact:

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

#51 Post 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!

User avatar
Arowana
Miko-Class Veteran
Posts: 531
Joined: Thu May 31, 2012 11:17 pm
Completed: a2 ~a due~
Projects: AXIOM.01, The Pirate Mermaid
Organization: Variable X, Navigame
Tumblr: navigame-media
itch: navigame
Contact:

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

#52 Post 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)
Complete: a2 ~a due~ (music, language, love)
In progress: The Pirate Mermaid (fairytale otome)
On hold: AXIOM.01 (girl detective game)

Image

User avatar
noeinan
Eileen-Class Veteran
Posts: 1153
Joined: Sun Apr 04, 2010 10:10 pm
Projects: Ren'Py QuickStart, Crimson Rue
Organization: Statistically Unlikely Games
Deviantart: noeinan
Github: noeinan
Location: Washington State, USA
Contact:

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

#53 Post by noeinan »

Wow, this looks so cool! I can't believe I didn't see it before now :D
Image

Image
Image

arcdawn
Regular
Posts: 26
Joined: Mon Jan 02, 2017 7:08 pm
Contact:

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

#54 Post by arcdawn »

Great plugin! I was just wondering if there were any functionalities for repeat motions?

SeeingStars
Newbie
Posts: 5
Joined: Wed Apr 12, 2017 5:16 pm
Contact:

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

#55 Post 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.

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

#56 Post by akakyouryuu »

Updated.

I improved keymap compatibility.
Attachments
camera.zip
(26.16 KiB) Downloaded 665 times

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

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

#57 Post by trooper6 »

Thanks for the update! I haven't checked it out yet, but I'm really excited to!
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
KouhaiChan
Regular
Posts: 30
Joined: Thu Feb 22, 2018 2:33 am
Projects: He Heard Me
Deviantart: KouhaiChan1
Soundcloud: KouhaiChan
Contact:

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

#58 Post by KouhaiChan »

I am super confused, I am new to renpy and coding in general. What exactly is this for? Thanks.

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

#59 Post by akakyouryuu »

Do you have any ideas about new function or change for camera&viewer?

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

#60 Post by akakyouryuu »

Fixed the problem Spline interpolation didn't work.
Attachments
camera.zip
(27.55 KiB) Downloaded 190 times

Post Reply

Who is online

Users browsing this forum: Semrush [Bot]