Thats correct.Reinhard wrote:I'm thinking that roads - including terrain - are the only type of 3D-object (based on a mesh) in the game that doesn't come with a PMD/PMG representation.WerewolfCustoms wrote:Yes, it could be that. Similar to truck/trailer models.
In my view, each road type is established by a kind of "dynamic" mesh that is created by the engine, on runtime, depending on the data in "road.look.sii". Which is good, as it is more flexible than to create a base 3D-model with an editor, for each road type. And you can apply any available material, no preset definition list of materials necessary, like in a PMD.
“road_look.sii” located in “Def / World” subdirectory. In order to extend it you must create new “road_look.anyCustomName.sii” file with at least one road. It will look like this:
-------------------------------------------------------------------------------
SiiNunit
{
road_look : road.look777 {
name: "My New Road"
road_size_left: 4.5
road_size_right: 4.5
road_offset: 0.0
ai_road_offset: 0.0
tex1_left: 0.752
tex0_left: 0.5
tex0_right: 0.5
tex1_right: 0.752
trans_tex0_left: 0.944
trans_tex1_left: 1.0
trans_tex0_right: 0.944
trans_tex1_right: 1.0
shoulder_size_right: 1.0
shoulder_tex0_right: 0.88
shoulder_tex1_right: 0.944
shoulder_size_left: 1.0
shoulder_tex0_left: 0.88
shoulder_tex1_left: 0.944
center_line_left_offset: 0.02
center_line_right_offset: 0.02
center_line_left_width: 0.2
center_line_right_width: 0.2
center_line_left_style: 3
center_line_right_style: 3
inner_line_style: 0
outer_line_style: 1
ai_lane_count: 1
actor_lane_count: 1
ai_speed_type: 1
one_way: no
road_trans_style: 0
}
}
------------------------------------------------------------------------------------------
Some of this value easy to understand… but how they work in combination with each others… i don’t know.
Second: in order for map editor to see/recognaze you new road it must be added to defaul “road.sii” with proper array numbers. For example:
road_material[30]: "/material/road/old_city_road.mat"
road_material[31]: "/material/road/y_ground_path5.mat"
road_material[32]: "/material/road/ground_poland.mat"
road_material[33]: "/material/road/my_new_road.mat"