欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 644|回复: 0
收起左侧

[建模] Curve类型模型

[复制链接]
知行 发表于 2022-5-28 21:36 | 显示全部楼层 |阅读模式

定义

定义在 curve_model.yourmod.sii 中,格式如下:

       ----------  Internal Data Type
      |
      |          ------  Data Type Identification
      |         |
      |         |    ----- User Name
      |         |   |                    
      v         v   v
curve_model : curve.2 {
     category: "Walls"                                          # Category
     name: "Warehouse wall"                                     # Curve model name
     model_desc: "/model/warehouse/tiled_wall.pmd"              # Model Path
     dynamic_lod_desc[]: "/model/warehouse/tiled_wall_lod1.pmd" # LOD1 Model Path
     dynamic_lod_dist[]: 50                                     # LOD1 switch distance in meters
     dynamic_lod_desc[]: "/model/warehouse/tiled_wall_lod2.pmd" # LOD2 Model Path
     dynamic_lod_dist[]: 100                                    # LOD2 switch distance in meters

     variation[]: "var_name1 | center1:2 | center2:5"           # Part variation definition
     variation[]: "var_name2 | center1, center2:5"       
     start_part[]: "strt1|strt1a"                               # Start parts list per variation
     start_part[]: "strt2|strt2b"
     end_part[]: "end1"                                         # End parts list per variation
     end_part[]: "end2|end3|end4"
     smooth_surface: false                                      # Smooth surface
     color_variant[]: "red: 255, 0, 0"                          # Color variants
     color_variant[]: "blue: 0, 0, 255"
     vegetation[]: "tree_a : vegetmodel.cityalley.smalltree02a | 5:8 | -2:2 | 0.5:1.5 | 0:360" 
     vegetation[]: "tree_b : vegetmodel.cityalley.smalltree02b | 5:8 | -2:2 | 0.5:1.5 | 0:360"

     fixed_step: 20                                             # Use given fixed step between parts
     fixed_inner_start[]: strt1                                 # Use given start part for "inner" curve (definition per variation)
     fixed_inner_start[]: strt2

     fixed_inner_end[]: end1                                    # Use given end part for "inner" curve (definition per variation)
     fixed_inner_end[]: end2
}
  • Internal Data Type, Data Type Identification: 固定值
  • User Name:游戏中的每一个curve都必须是独一无二的(甚至是所有的dlc, mod等)。这个名称最多可以包含以下集合中的12个字符:_0123456789abcdefghijklmnopqrstuvwxyz。最佳实践是在名称中添加一些后缀来标识dlc或mod,以避免名称冲突。
  • Category:在构建项目属性对话框中用于导航简化的类别名称。字符串值。
  • Name:任意字符串
  • Model Path:Path to the model file (*.pmd).
  • Maximum Dynamic LOD(Level of detail 细节层次) count is 3
  • LOD Model Path:Path to the model file used for the low poly LOD (*.pmd).
  • Variation:Center part variation definition
    • Variation name (token) | part_name [,part_name ...] : weight [ | part_name [,part_name ...] : weight]
  • Start part:Array of all valid parts which can be used as the start
  • End part: Array of all valid parts which can be used as the end
  • Smooth surface:对几何法线进行平滑插值。默认值:false
  • Color variants:用户定义的顶点颜色乘法因子在建筑物项目几何生成时使用(可选)
  • Vegetation :实例植被定义格式如下:
    • Instance name (token) : vegetation model unit name | min_width : max_width | min_offset : max_offset | min_scale : max_scale | min_rot : max_rot

Automatic wire generation

The curve model can contain locators for automatic wire generation. These locators have the following naming convention:

Locator name: w_X_Y_Z where:

  • w_ - prefix
  • X - wire type
    • f - flat wire without any drop distance
    • t - LOW wire drop, with flat wire thickness (thin wire)
    • l - LOW wire drop
    • m - MEDIUM wire drop
    • h - HIGH wire drop
  • Y - wire line index 0 based
  • Z - unique suffix suffix can be any character

Examples:

w_h_0_a, w_h_0_b, w_f_1_0

原文: https://modding.scssoft.com/index.php?title=Games/ETS2/Modding_guides/1.35#Curve_items

本帖被以下淘专辑推荐:

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-5-2 20:39 , Processed in 0.042874 second(s), 9 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表