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 » Fri Aug 19, 2016 2:42 pm

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: 93
Joined: Thu Nov 06, 2014 12:24 am
Projects: Demon King Domination, Eternal Hour, Tsun Rising
Organization: Seventh Heart Studios
Skype: belgerum09
Soundcloud: Belgerum
Contact:

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

#47 Post by Belgerum » Fri Oct 07, 2016 11:14 pm

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 » Sun Oct 09, 2016 4:50 pm

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: 33
Joined: Thu Apr 14, 2016 7:47 am
Contact:

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

#49 Post by LabaroDD » Thu Jan 26, 2017 2:12 pm

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: 93
Joined: Thu Nov 06, 2014 12:24 am
Projects: Demon King Domination, Eternal Hour, Tsun Rising
Organization: Seventh Heart Studios
Skype: belgerum09
Soundcloud: Belgerum
Contact:

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

#50 Post by Belgerum » Thu Jan 26, 2017 2:38 pm

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: 33
Joined: Thu Apr 14, 2016 7:47 am
Contact:

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

#51 Post by LabaroDD » Thu Jan 26, 2017 2:46 pm

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: 519
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 » Sat Jan 28, 2017 10:15 pm

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: 1051
Joined: Sun Apr 04, 2010 10:10 pm
Projects: Ren'Py QuickStart, Crimson Rue
Organization: Statistically Unlikely Games
Deviantart: daikiraikimi
Github: daikiraikimi
Location: Washington State, USA
Contact:

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

#53 Post by noeinan » Sat Feb 18, 2017 5:01 pm

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

Image
Image

arcdawn
Newbie
Posts: 23
Joined: Mon Jan 02, 2017 7:08 pm
Contact:

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

#54 Post by arcdawn » Wed Mar 15, 2017 1:06 am

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 » Thu Jun 08, 2017 6:55 pm

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: 101
Joined: Fri Nov 30, 2012 10:29 am
Contact:

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

#56 Post by akakyouryuu » Sat Feb 24, 2018 5:38 am

Updated.

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

User avatar
trooper6
Lemma-Class Veteran
Posts: 3208
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 » Sat Feb 24, 2018 6:11 am

Thanks for the update! I haven't checked it out yet, but I'm really excited to!
A Close Shave:
*Last Thing Done (Jul 7) Finished Emotion Matrix for Joint Customer Sprite.
*Currently Doing: Print Matrices, & decide emotions to use for Joint Sprite, think about blinking and lip flap. Maybe also about TransitionConditionSwitch?
*First Next thing to do: Code in all the sprite emotion and camera movement for Close Shave Sprite Sections
*Next Thing to Do: Code in all CG and special animation stuff
*Other Next Thing: Do SFX
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
KouhaiChan
Newbie
Posts: 10
Joined: Thu Feb 22, 2018 2:33 am
Projects: Project Mercurial
Deviantart: KouhaiChan1
Soundcloud: KouhaiChan
Contact:

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

#58 Post by KouhaiChan » Sun Feb 25, 2018 12:57 am

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

Post Reply

Who is online

Users browsing this forum: No registered users