Skip to content

Terrain

skzk edited this page Nov 17, 2020 · 26 revisions

Standlone terrain segment.

Item file: aux.

Structure

Field(s) Description
struct kdop_item See kDOP item.

Flags I know about:

Bit 0 and 1: Right -> terrain noise
0 = 100%; 1 = 50%; 2 = 0%.

Bit 2 and 3: Right -> terrain transition
0 = 16; 1 = 8; 2 = 4; 3 = 32.

Bit 4 and 5: Step size
0 = 4m; 1 = 16m; 2 = 12m; 3 = 2m

Bit 6: Right -> Vegetation collision
Bit 7: Water reflection
Bit 8: Invert railing
Bit 9: No collision
Bit 10: No boundary
Bit 11: Right -> No detail vegetation
Bit 12: Stretch terrain
Bit 13: Low poly vegetation
Bit 14: Ignore cut planes
Bit 16: No terrain shadows
Bit 18: Smooth detail vegetation
Bit 24 and 25: Left -> terrain noise
Bit 26 and 27: Left -> terrain transition
Bit 28: Left -> vegetation collision
Bit 29: Left -> no detail vegetation

u64 node0_uid
u64 node1_uid
UID of the backward and forward node of the item.
float3 node0_offset
float3 node1_offset
Don't know what this does
float length

Cached length of the terrain segment. See Polyline item.

The minimum length of a terrain is step size / 2.

The maximum length of a terrain is 99999m.

u32 rnd_seed The seed used for placing vegetation.
token railing
s16 railing_offset
Railing model and its offset, multiplied by 100. This is repeated three times, since there are three models.
The following parameters are repeated for the right and left side:
u16 right_terrain_size Terrain size, multiplied by 10. Maximum size is 6500.
token right_profile
float right_profile_coef
Terrain profile and coefficient.
token right_prev_profile
float right_prev_profile_coef
Profile and coeffictient for the previous terrain in the chain.

Not sure why this is cached here, but terrains won't generate properly if it's just left blank.

array_struct vegetation Three vegetation structs, see Vegetation struct.
u16 right_dvdm
u16 right_dvd
No Detail Vegetation From and To settings, multiplied by 10.
End of repeated section
u32 veg_sphere_count
array_struct veg_spheres
List of vegetation spheres. See Vegetation sphere struct.
struct quad_info Terrain data. See Quad info struct. Repeated for right and left side.
token right_edge
token right_edge_look
token left_edge
token left_edge_look
Edge models.

Clone this wiki locally