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
WoLoLoiK
Newbie
Posts: 14
Joined: Thu Jun 20, 2019 7:41 am
Contact:

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

#61 Post by WoLoLoiK »

heyyo!
this is my first time trying out something like this hahaha

so, i copied all the files to our game directory, and this error occurred

While running game code:
File "game/camera.rpy", line 3, in script
if getattr(store, "_3d_layers"):
File "game/camera.rpy", line 3, in <module>
if getattr(store, "_3d_layers"):
AttributeError: 'StoreModule' object has no attribute '_3d_layers'

how do i fix it?

this seems to be a very useful plugin and id love to be able to play with it hahahaha

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

#62 Post by akakyouryuu »

Fixed below errors.
The error happens when register_3d_layers isn't called.
Attachments
camera.zip
(28.32 KiB) Downloaded 233 times

User avatar
Duchess
Regular
Posts: 61
Joined: Sat Aug 08, 2015 7:26 pm
Projects: Garden of Seif; Old Lucid9 Creative; Content Writer for VN Game Den
Organization: Foxdrift Studios
itch: foxdrift-studios
Location: Las Vegas
Contact:

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

#63 Post by Duchess »

Hi! I'm trying to figure out an issue I am having with the 3D camera. I have no errors, and clicking at a regular speed plays the animations smoothly. However, if I skip or rollback, the sprites and backgrounds will be in a completely different and incorrect position (completely irrelevant to the coded coordinates). Sometimes even transparent even though the alpha is set to 1.

Again, I don't have any error codes... this is simply something that happens only when rolling back or skipping.

Here is the code for one of my animations where the issue occurs:

Code: Select all

$all_moves(camera_check_points={u'y': [(-591, 0.0, u'linear'), (2947, 0.25, u'linear')], u'x': [(2217, 0.0, u'linear'), (3413, 0.25, u'linear')]})
image below showing the background and sprite in an incorrect position.
screenshot0001.png

correct placement:
screenshot0008.png
Duchess aka Suna back in the olden days.
https://foxdrift-studios.itch.io/garden-of-seif Just Making a visual novel about romance, assassins, a badass MC, and an anti-fairy godmother.

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

#64 Post by akakyouryuu »

Hello, Sunasrose.

Do you use latest version?
If so, That problem also happens with Sat Feb 24, 2018 version?

bambino358
Regular
Posts: 26
Joined: Sat Apr 27, 2019 7:17 am
Contact:

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

#65 Post by bambino358 »

Hi,
thank you for this great script.
I have one problem with it (don't know if it's bug or I'm doing something wrong).
When I rotate 3D camera lets say I rotate 5 degrees. Rotation automatically jump to number like -5640 and it rotates like crazy.
I'm usng renpy 7.0.0 so I don't know if it's because I'm using older version.

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

#66 Post by akakyouryuu »

Hello, bambino358.
Can you upload sample game or video?

bambino358
Regular
Posts: 26
Joined: Sat Apr 27, 2019 7:17 am
Contact:

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

#67 Post by bambino358 »

When you start it press shift+P. Then when I try to rotate 3D camera it doesn't work how it probably should.
I use RenPy 7.0.0
Attachments
tutorial.zip
(27.83 MiB) Downloaded 212 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

#68 Post by akakyouryuu »

I opend your tutorial project with renpy 7.0.0.196, But I can't find problems.

https://www.youtube.com/watch?v=kb8UO01 ... e=youtu.be

bambino358
Regular
Posts: 26
Joined: Sat Apr 27, 2019 7:17 am
Contact:

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

#69 Post by bambino358 »

At the begining when you use ratation tool. Rotate for example 20 degrees and press play. Rotation number will jump to 5500.

Example:
shift+p
3D camera
time 1s
rotate 20
press play
everything else is default

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

#70 Post by akakyouryuu »

OK, I found the problem and fixed.

Thank you.
Attachments
camera.zip
(28.33 KiB) Downloaded 264 times

User avatar
layerto
Regular
Posts: 44
Joined: Sat Jun 09, 2018 6:25 am
Completed: Learn To Code RPG (Art, https://freecodecamp.itch.io/learn-to-code-rpg), Sinsations(18+) (colourist, https://whitehand.itch.io/sinsationsvn)
Tumblr: layerto
Deviantart: layerto
Location: Ontario, Canada
Contact:

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

#71 Post by layerto »

Hello! This is the first time I'm using your camera. Thank you for sharing it. I have a question.

Is it possible to define specific camera_move coordinates into a variable/function? I would like to use the same camera movement multiple times and want to make the process faster. If there is a better suggestion to make this faster, I would appreciate it.
Thank you!

(Post edited to remove my last question, which was a typo on my end. Sorry!)
Image

Portfolio | Lemmasoft Thread | Twitter | Instagram
Currently looking for work and commissions are open!

Email: layerto@hotmail.com

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

#72 Post by akakyouryuu »

plan1. define functions

Code: Select all

    def move_to_left():
            camera_relative_move(-100, 0, 0, duration=.5)
plan2, define moves list [(x, y, z, rotate, duration, warper), ...]

Code: Select all

        init python:
            move1=[(0, 0, 0, 0, 0, "linear"), (100, 0, 0, 360, .5, "linear")]

        label sample
            camera_moves(move1)

User avatar
VimislikArt
Regular
Posts: 90
Joined: Sun Mar 06, 2016 6:50 pm
Projects: King of the Cul-De-Sac
Deviantart: vimislikart
itch: vimislikart
Location: Rochester, NY
Contact:

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

#73 Post by VimislikArt »

First off, let me just say that it's AMAZING that you've been updating the camera this entire time! I downloaded it almost 3 years ago to mess around with, and I just finished my first game that HEAVILY relied on creating animations using your camera to setup keyframes for my images! Absolutely fantastic!

With the support of Live2d, I'm hoping that will replace my use of the camera with something a bit more robust, but I still plan on using the camera as a regular part of my toolset.

The only big issue I've had with the camera is how much of the screen it obscures when it's in use - are there any variables I can manipulate in the .rpy files to give the bars some level of transparency, or change the color of the interface? This would help cases where I have smaller assets that need to be placed in the lower half of the screen.

Otherwise, again, thank you so much for maintaining this camera system!
Check out my VN, King of the Cul-De-Sac, currently in Open Beta production! Try it out HERE!

User avatar
layerto
Regular
Posts: 44
Joined: Sat Jun 09, 2018 6:25 am
Completed: Learn To Code RPG (Art, https://freecodecamp.itch.io/learn-to-code-rpg), Sinsations(18+) (colourist, https://whitehand.itch.io/sinsationsvn)
Tumblr: layerto
Deviantart: layerto
Location: Ontario, Canada
Contact:

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

#74 Post by layerto »

Hello! Thank you so much for your help last time. I managed to make my game using your camera and it's been a great help. I look forward to using it more!

I have one question. I was exporting my game for release, but I can still access the camera developer screen (Shift+P). Is there a way I can turn this off so that a player won't see the camera screen by accident?

Thank you!
Image

Portfolio | Lemmasoft Thread | Twitter | Instagram
Currently looking for work and commissions are open!

Email: layerto@hotmail.com

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

#75 Post by akakyouryuu »

>> VimislikArt
Use Shift+I(style inspection) and rewrite camera.rpy directly.
https://www.renpy.org/doc/html/develope ... inspecting
>> layerto
Set config.developer as False.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Ocelot