cg小白兔 发表于 2024-6-26 10:22:58

Procedural Books 适配UE5.1-5.2图书籍













With one single blueprint you can create thousands of instanced books. The script consists of 3 instanced books with 3 different instanced materials. Populate an entire library with just 1 simple script and edit the parameters to your liking.

Technical Details
Features:
Easy to replace the books to your own set of books.
Easy to replace the textures to something else.
The blueprint is commented to make it easy to understand and follow how it's made if you want to expand on it.

Exposed Parameters:
Create Random Seed (Creates a random seed for your book generation)
Seed (A seed that determines the generation, can be written to provide a specific book generation)
Length Of Row (The number of cm to determine the length of the bookshelf
Space Frequency (How many random spaces should be in your row of books)
Random Space (From what max range to have your spaces)
Rotation Frequency (How many random rotated books should be in your row of books)
Random Rotation (How big the angle of rotation should be)
Random Position (How big the difference in depth the books should be placed at)
Random Height (The random height of all of your books)
Random Width (The random width of all of your books)

Number Assets:
1 (BP_Books_01) Procedural book generation script
1 (M_Books_01) Master material for the books
1 (M_Base_Color_01) Master material for the Example map
1 (MF_Gradient) Material function that is used in the master material
1 (Example) Level to showcase the different uses for the books
1 (MI_Base_Color_01) Material instance
3 (MI_Books_01-03) Instances of the material with different color setups
3 (SM_Book_01-03) Static meshes to be used as the books
9 (T_Books_01-03_B, N, R) Textures to make up the materials for the books

Windows: (Yes)
Mac: (Yes)
Linux: (Yes)
Documentation: (No)


只需一个蓝图,你就可以创建成千上万本实例图书。该脚本由 3 个实例图书和 3 种不同的实例材料组成。只需一个简单的脚本就能填充整个图书馆,并根据自己的喜好编辑参数。

技术细节
功能
可轻松将书籍替换为您自己的书籍集。
可轻松将纹理替换为其他材料。
对蓝图进行了注释,使其易于理解,如果你想对其进行扩展,还可了解其制作过程。

公开参数:
创建随机种子(为图书生成创建随机种子)
种子(决定生成的种子,可编写以提供特定的书籍生成方式)
Length Of Row(确定书架长度的厘米数
空格频率(一排书中应该有多少个随机空格)
随机空格(空格的最大范围)
旋转频率(一排书中应随机旋转多少本书)
随机旋转(旋转的角度应该有多大)
随机位置(书籍放置的深度应相差多少)
随机高度(所有书籍的随机高度)
随机宽度(所有书籍的随机宽度)

数字资产:
1 (BP_Books_01) 程序图书生成脚本
1 (M_Books_01) 书籍的主素材
1 (M_Base_Color_01) 示例贴图的主材质
1 (MF_Gradient) 主材质中使用的材质函数
1 (示例) 展示图书不同用途的关卡





页: [1]
查看完整版本: Procedural Books 适配UE5.1-5.2图书籍