banner



How To Use 3d Camera Renpy

Like in movies, documentaries or anything video-related, zooming an paradigm in and/or panning an image to evidence off a scenery of sure areas of information technology goes a long way to make your game more immersive or a little more dynamic than just with static images.

Zoom method VS size and crop method

# Size and Ingather method show fawn_cg with dissolve:     size(1920,1080) crop (100,400,960,540)  # Zoomed position method show fawn_cg with dissolve:     xpos 0.88 ypos 1.28 xanchor 0.5 yanchor i.0 zoom 2.0  # Back to the whole image scene fawn_cg with deliquesce

The starting time two code snippets roughly will requite you the same zoomed-in image:

  • Zoom the image in at 200%
  • Move the paradigm 100px off the left of the window and 400px off the tiptop
  • Or move it 12% off the left side and 28% off the bottom

I personally prefer the zoom method, every bit this is what I get when picking the image location through the 3D photographic camera, saving me a lot of trial and error that I previously had when using the size and crop method.


Panning an image with linear

# Size and crop method scene meeting_leos with dissolve:    size (1920, 1080) crop (720, 531, 1012, 548)    linear 12 crop (720, 100, 1012, 548)  # Zoomed position method scene meeting_leos with dissolve:    xpos 0.5 ypos one.0 xanchor 0.66 yanchor 0.93 zoom two.0    linear 12 yanchor 0.59

Forgive the potato gif. These are hard to make without weighing too much. I hope information technology looks much better in the actual game.

  • Similar in the first instance, you state a position that'southward preferably zoomed-in
  • "linear" moves the epitome at a steady speed. You tin likewise apply "ease" and "easein" for different speed settings. Different warping methods are explained here.

Won't my zoomed-in image exist blurry?

If your images are the same size as the game window (in our example 1920×1080 px), then yes it's going to happen. If you can, I actually recommend you to make your avails every bit large as possible, and so calibration them down for your game build. You'll thank yourself afterwards for doing this. That said, stretched images don't look much worse than a lot of games or youtube videos stretched in fullscreen.

If the stretching is actually a concern to you (as information technology was for me), and you don't have a bigger version of your images in handy, then you could try upscaling your image with waifu2x. It's a complimentary and open-source programme that tin can denoise and upscale images with almost no quality loss.

Nosotros used information technology to upscale our "close" sprites, for the backgrounds and most of our current CGs. To make the files lighter, nosotros converted them to jpg with the quality to 97% and frankly, I didn't start to detect whatever departure until I zoomed the newly upscaled image at more than 300%. Note that upscaling images may require y'all to adjust your game lawmaking with the new resolution.

Starting time image is the vanilla one, second one'southward resolution was doubled with waifu2x. If you're unsure about using it, you lot tin try out the web version.


And that wraps up this Making-of! There is plenty more I could say well-nigh epitome upscaling and panning, but this volition do for now.

If y'all have whatsoever questions or need some help with doing what was demonstrated here, feel free to ask Two and a Half or me on Twitter. We don't seize with teeth!

Source: https://www.twoandahalfstudios.com/2019/12/tds-making-of-4-zooming-and-panning-in-renpy

Posted by: garciagratin.blogspot.com

0 Response to "How To Use 3d Camera Renpy"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel