FancyMenuWorldRenderer
FancyMenu 的插件,允许用户使用方块创建 3D 场景。
描述
用户可以定义由方块构成的自定义 3D 场景,并将其渲染为 FancyMenu 自定义 UI 的一部分。随后,可以通过编辑器对场景进行旋转、缩放和平移。它还支持使用占位符来动画化这些参数。
使用方法
定义场景
场景被定义为 JSON 文件。创建场景的一种简便方法是进入一个世界并使用命令 fmsr-create。
此命令有两个必需参数和一个可选的第三个参数。第一个参数是场景第一角的坐标,第二个参数是第二角的坐标。例如:
fmsr-create 0 0 0 1 1 1
执行该命令后,聊天栏会显示一条确认创建的消息。点击蓝色的文本即可将 JSON 场景复制到剪贴板。如果你决定使用第三个参数,结果将被输出到一个文件中:
fmsr-create 0 0 0 1 1 1 scene.json
该文件将创建在 FancyMenu 的配置文件夹内。
在 FancyMenu 中使用场景
FancyMenu 中会出现一个名为 Scene(场景)的新元素。右键单击该元素时,应该有一个选项可以在两种输入方式之间进行选择:“File”(文件)和“Direct”(直接)。第一种选项允许你使用文件的内容,例如之前创建的 scene.json。第二种选项允许你直接将场景作为参数写入。
自定义场景
右键单击该元素时,应该会有一系列用于设置场景偏移量、旋转角度和缩放的选项。这些选项可以使用占位符进行参数化。如果你想动态更新它们,例如随时间自动更改以实现动画效果,你应该在右键上下文菜单中启用 Dynamic Rotation(动态旋转)、Dynamic Offset(动态偏移)或 Dynamic Scale(动态缩放)选项。
待办事项
模拟实体和模型的一种方法是创建一个自定义资源包以添加自定义模型,并将这些方块用作场景的一部分。
FancyMenuWorldRenderer
An addon for FancyMenu that allows the user to create 3D scenes using blocks
Description
The user can define custom 3D scenes using blocks, and then they can be renderer as part of FancyMenu's custom UI. Then, the scene can be rotated, scaled and translated using the editor. It also allows to use placeholders to animate these parameters.
How to use it
Define the scene
The scene is defined as a json file. An easy way to create the scene is to go into a world and use the command fmsr-create.
This command has two arguments and a third optional argument. The first argument is the position of the first corner of the scene, the second argument is the second corner. Like this:
fmsr-create 0 0 0 1 1 1
Once you execute this command, a message will be displayed in the chat confirming the creation, if you click the blue text, the json scene should copy to your clipboard. If you decide to use the third argument, the result will be outputed to a file:
fmsr-create 0 0 0 1 1 1 scene.json
The file will be created inside FancyMenu's config folder
Use the scene inside fancy menu
There will be a new element in FancyMenu with the name Scene. When you right-click the element there should be an option to choose between two input options: File and Direct. The first option allows you to use the contents of a file, for example the previously created scene.json. The second options allows you to write directly the scene as a parameter.
Customize the scene
When you right-click the element, there should be a list of options for setting the offset, rotation and scale of the scene. These options can be parametrized using placeholders. If you want to dynamically update them, for example to automatically change them overtime to make an animation, you should enable Dynamic Rotation, Dynamic Offset or Dynamic Scale options inside the right-click context menu.
TODO
- Render entities
- 3D models
- Particle rendering
A way of imitating entities and models, is to create a custom resourcepack that adds custom models and using those blocks as part of the scene.
评论 0
登录后参与评分
还没有评论,来抢沙发吧