设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
搜索附件  
同能RPG制作大师 › 附件中心 › 同能RM技术讨论区 › RPG Maker MZ 讨论区 › Animation Perspective Fix: Animation Perspective Fix-2.jpg

Animation Perspective Fix: Animation Perspective Fix-2.jpg

 

Animation Perspective Fix:
[DUCK] Animation Perspective Fix v1.0
GregorDuckman
​


Introduction
Adjusts the Projection Matrix and Camera Matrix used in Effekseer computations to eliminate the extreme Field of View (FOV) / fisheye effect, so that animations more closely match the top-down / diorama perspective used in stock RMMZ map view and side view battle scenes.

... I'm not sure if a similar fix has been published elsewhere yet, so I made my own!

All screenshots captured on WIN10 PC platform, the plugin is as yet untested on the Android/iOS platforms.

How to Use
The script is a plug-and-play plugin script for RMMZ v1.3.3, though its simplicity could allow it to work with past and future versions and other scripts/plugins, provided they do not alter the Sprite_Animation class or Sprite class hierarchy much. Paste the script below into a file named "[DUCK]AnimationPerspectiveFix.js" and drop it into your project's "plugins" folder, then install and activate using RMMZ's plugin manager.

To obtain the best results, you may need to rotate the stock animations by ~8 degrees in the positive X axis direction ([X:8, Y:0, Z:0] in the RMMZ animation editor). See the screenshots below.

This script contains no parameters or plugin commands.

Screenshots
Consider this screen capture of the "0051 Power up 1" animation in stock RMMZ:




[captured in-editor and stretched 2x]

As the magic circles in the power-up animation rise from the ground, the distortion caused by the stock perspective causes the ring to flatten, and then be visible from below. This is what you'd observe if, for example, you picked a circular object off a table at arms length and raised it above your eye-line. However, the distance on-screen over which this transition takes place only makes sense if the scene is unfolding within an inch or so of your eyes, causing dissonance with the perspective and depth implied by the battleback graphics and enemy/actor placement.





Immediately after installing the plugin, the same animation becomes axially aligned with the screen, so the magic circles only appear as thin lines in the horizontal direction.





By rotating the X axis by about 8 degrees, the magic circles are now in good agreement with the top-down / diorama perspective suggested by the stock graphics. Notice the magic circles and Reid's drop shadow (both of which should be perfect circles when viewed from above) appear as ellipses with roughly the same same eccentricity, as we'd expect of these shapes viewed in the same scene without the prior dissonance.

Terms and Credits
This script is provided "as is" without warranty of any kind. It is free to be copied and used with or without credit to GregorDuckman. The openness of these terms do not extend to any future releases unless specified.

Script
Spoiler                JavaScript:       







本贴来自国际rpgmaker官方论坛作者:GregorDuckman处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/animation-perspective-fix.141233/
Animation Perspective Fix: Animation Perspective Fix-2.jpg
         同一主题附件:
    Animation Perspective Fix-2.jpg
    Animation Perspective Fix-3.jpg
简体中文
繁體中文
English(英语)
日本語(日语)
Deutsch(德语)
Русский язык(俄语)
بالعربية(阿拉伯语)
Türkçe(土耳其语)
Português(葡萄牙语)
ภาษาไทย(泰国语)
한어(朝鲜语/韩语)
Français(法语)
关闭

幸运抽奖

社区每日抽奖来袭,快来试试你是欧皇还是非酋~

立即查看

Loading...

QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

GMT+8, 2026-10-5 23:45 , Processed in 0.051387 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部