How do use a 3d camera?

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.
Post Reply
Message
Author
shiza
Regular
Posts: 29
Joined: Wed Jun 14, 2017 12:36 pm
Contact:

How do use a 3d camera?

#1 Post by shiza »

Been trying to a guide about 3d camera but I couldn't find a source in english.

https://www.youtube.com/watch?v=lhA8Ib3iKE8

Anyone know where I can find a guide for this?

User avatar
Black Cat 2412
Regular
Posts: 74
Joined: Wed Aug 16, 2017 10:10 am
Projects: Rapunzel: A classic retold
Deviantart: BlackCat2412
Location: Vietnam
Contact:

Re: How do use a 3d camera?

#2 Post by Black Cat 2412 »

I don't know if you have seen this, but I hope it helps:
https://github.com/kyouryuukunn/renpy-ActionEditor

shiza
Regular
Posts: 29
Joined: Wed Jun 14, 2017 12:36 pm
Contact:

Re: How do use a 3d camera?

#3 Post by shiza »

Black Cat 2412 wrote: Thu Sep 14, 2017 6:00 am I don't know if you have seen this, but I hope it helps:
https://github.com/kyouryuukunn/renpy-ActionEditor
I think the thing I'm looking for is more camera options. I would like to zoom in and out on sprites with backgrounds or a simple CG.

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: How do use a 3d camera?

#4 Post by Divona »

shiza wrote: Thu Sep 14, 2017 3:30 pmI would like to zoom in and out on sprites with backgrounds or a simple CG.
You're working in (simulate) 3D plane. X-axis is left and right. Y-axis is up and down. Z-axis is in and out.

camera_move(x, y, z, rotate=0, duration=0, etc...)

Code: Select all

     Moves the camera to a given coordinate and rotation.

     `x`
          The x coordinate to move the camera to.
     `y`
          The y coordinate to move the camera to.
     `z`
          The z coordinate to move the camera to.
     `rotate`
          Rotation of the camera, perpindicular to the scene, in degrees.
     `duration`
          The time, in seconds, to complete the camera move. If no time is given,
          the move will happen instantaneously.
So to zoom in:

Code: Select all

    $ camera_move(0, 0, 1000, rotate=0, duration=1.0)
Zoom out:

Code: Select all

    $ camera_move(0, 0, -500, rotate=0, duration=1.0)
Completed:
Image

Post Reply

Who is online

Users browsing this forum: Bing [Bot]