Perspective API Demo
A demo mod showcasing custom camera perspectives using the Perspective API
截图
介绍
Perspective API Demo
This mod implements several simple custom perspectives based on the Perspective API. If you are developing a mod that involves custom perspective functionality, you may refer to the code in this mod. This mod is not intended for actual gameplay, so its features are not perfect—for example, in free camera mode, you can still break/place blocks with the mouse. This is not considered a bug.
Features
This mod adds the following custom perspectives:
Simple Third Person
Almost identical to vanilla third-person view, except that the camera position is adjusted so that the player is positioned in the lower-left portion of the screen.
Free Third Person
Almost identical to vanilla third-person view, but moving the mouse only rotates the camera, not the player. The player automatically turns toward the movement direction instead.
Additionally, the mouse scroll wheel adjusts both the camera-to-player distance and the FOV simultaneously, centered on the player, achieving a Hitchcock zoom (dolly zoom) effect.
Free Camera
The camera detaches from the player entity and can be controlled independently:
- Movement keys control camera movement
- Space / Sneak move the camera up / down
- Drop / Inventory keys roll the camera (rotate around the view axis)
All movements are based on the camera’s local reference frame, not the world reference frame.
常见问题
Perspective API Demo 支持哪些 Minecraft 版本?
Perspective API Demo 支持 Minecraft Java 版 1.20.1–26.2,共 10 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
Perspective API Demo 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
leawind 的其他作品
查看全部 →Leawind’s Third Person
一个流畅的第三人称视角模组
Perspective API
A client-side API framework for managing and extending Minecraft's camera perspectives.
Perspective API
A client-side API framework for managing and extending Minecraft's camera perspectives.
Camera Entity Fade
Fades the camera entity when it gets too close to the camera.
评论
登录后评论和评分