Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"files.exclude":
{
"**/.DS_Store":true,
"**/.git":true,
"**/.gitignore":true,
"**/.gitmodules":true,
"**/*.booproj":true,
"**/*.pidb":true,
"**/*.suo":true,
"**/*.user":true,
"**/*.userprefs":true,
"**/*.unityproj":true,
"**/*.dll":true,
"**/*.exe":true,
"**/*.pdf":true,
"**/*.mid":true,
"**/*.midi":true,
"**/*.wav":true,
"**/*.gif":true,
"**/*.ico":true,
"**/*.jpg":true,
"**/*.jpeg":true,
"**/*.png":true,
"**/*.psd":true,
"**/*.tga":true,
"**/*.tif":true,
"**/*.tiff":true,
"**/*.3ds":true,
"**/*.3DS":true,
"**/*.fbx":true,
"**/*.FBX":true,
"**/*.lxo":true,
"**/*.LXO":true,
"**/*.ma":true,
"**/*.MA":true,
"**/*.obj":true,
"**/*.OBJ":true,
"**/*.asset":true,
"**/*.cubemap":true,
"**/*.flare":true,
"**/*.mat":true,
"**/*.meta":true,
"**/*.prefab":true,
"**/*.unity":true,
"build/":true,
"Build/":true,
"Library/":true,
"library/":true,
"obj/":true,
"Obj/":true,
"ProjectSettings/":true,
"temp/":true,
"Temp/":true
}
}
14 changes: 14 additions & 0 deletions Assets/BallPhysics.physicMaterial
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!134 &13400000
PhysicMaterial:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: BallPhysics
dynamicFriction: 2
staticFriction: 0.6
bounciness: 0.2
frictionCombine: 0
bounceCombine: 0
8 changes: 8 additions & 0 deletions Assets/BallPhysics.physicMaterial.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions Assets/BowlingPinPhysics.physicMaterial
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!134 &13400000
PhysicMaterial:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: BowlingPinPhysics
dynamicFriction: 0
staticFriction: 0.15
bounciness: 0.2
frictionCombine: 0
bounceCombine: 0
8 changes: 8 additions & 0 deletions Assets/BowlingPinPhysics.physicMaterial.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/KajamansRoads.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions Assets/KajamansRoads/FileNamesDescription.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Road names description
---------------------------

Road files have somewhat cumbersome file names. On positive side, these names provide their both unique and descriptive identifiers.

For example:

Road_l10km_rw12m_wh15m_RsBtW_cc4_sl69_t(1212029).asset

l10km .. the length of the road is 10 km (10000m) along its center line
rw12m .. the road width (just the tarmac) is 12 meters
wh15m .. the height of the "wall", for example the treeline along the road is 15 meters

RsBtW
The road profile can consist of up to 5 sub meshes. They are (from the center outwards) road, shoulder, banking, terrain and wall.
Not all parts are always present. Skipped (zero sized) parts are omitted which keeps the number of polygons down.
Capital letters indicate that corresponding part is present, small letters mean that it is deprecated. The road in the example consists of road, banking and wall.

cc4 .. centering coefficient, doesn't have any obvious intuitive meaning other than that two roads only differing in this parameter will have different shapes.

sl69 .. segment length coefficient. generally, the smaller, the finer mesh, the bigger the less polygons, but the shape changes as well

t(1212029) .. some more parameters controlling the pseudo-random shape generator.

Update 1:

The naming convention has been slightly changed. The same data and meaning, but because of architectural changes in the generator they have been reshuffled. The data pertaining to where the road goes (length, segment length coeff...) are at the start. THe data describing the road profile (e.g. width) follow.
8 changes: 8 additions & 0 deletions Assets/KajamansRoads/FileNamesDescription.txt.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Assets/KajamansRoads/Free.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/KajamansRoads/Free/Meshes.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
C:/Prog/Unity5/Generation01/Assets/KajamansRoads/Free/Meshes/l10km_cc4_sl20_t(12123025)_A87113010_Alley.text
MaxHeightSpread = 0.00
SegmentLengthCoef = 0.20
RequestedLength = 10000.00
CenteringCoef = 4.00
TurnRandomPoint = 12.2000 , 12.2000
TurnRandomDir = 30.00
TurnRandomDT = 0.02500
HeightRandomPoint = 12.5000 , 12.5000
HeightRandomDir = 90.00

TreeHeight = 8.00
TreeWidth = 7.00
SideOffset = 11.00
Spacing = 30.00
FacingDistance = 30.00
StartDist = 10.00

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
C:/Prog/Unity5/Generation01/Assets/KajamansRoads/Free/Meshes/l10km_cc4_sl20_t(12123025)_rw10_wh3_n3_RsBTW_MeshV00.text
MaxHeightSpread = 0.00
SegmentLengthCoef = 0.20
RequestedLength = 10000.00
CenteringCoef = 4.00
TurnRandomPoint = 12.2000 , 12.2000
TurnRandomDir = 30.00
TurnRandomDT = 0.02500
HeightRandomPoint = 12.5000 , 12.5000
HeightRandomDir = 90.00

RoadWidth = 10.00
ShoulderWidth = 0.00
BankingWidth = 4.00
BankingUp = 1.00
TerrainWidth = 10.00
WallHeight = 3.50
MetersPerRoadTexture = 10.00
MetersPerShoulderTexture = 4.00
MetersPerBankTexture = 5.00
MetersPerTerrainTexture = 10.00
MetersPerWallTexture = 7.00

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
C:/Prog/Unity5/Generation01/Assets/KajamansRoads/Free/Meshes/l10km_cc4_sl69_t(1212029)_rw12_wh15_n1_RsBtW_MeshV00.text
MaxHeightSpread = 100.00
SegmentLengthCoef = 0.70
RequestedLength = 10000.00
CenteringCoef = 4.00
TurnRandomPoint = 12.2000 , 12.2000
TurnRandomDir = 0.00
TurnRandomDT = 0.03000
HeightRandomPoint = 12.5000 , 12.5000
HeightRandomDir = 90.00

RoadWidth = 12.00
ShoulderWidth = 0.00
BankingWidth = 4.00
BankingUp = 2.00
TerrainWidth = 0.00
WallHeight = 15.00
MetersPerRoadTexture = 12.00
MetersPerShoulderTexture = 4.00
MetersPerBankTexture = 4.00
MetersPerTerrainTexture = 4.00
MetersPerWallTexture = 60.00

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
C:/Prog/Unity5/Generation01/Assets/KajamansRoads/Free/Meshes/l20km_cc2_sl30_t(401509)_rw28_wh15_n1_RsBTW_MeshV00.text
MaxHeightSpread = 100.00
SegmentLengthCoef = 0.30
RequestedLength = 20000.00
CenteringCoef = 2.00
TurnRandomPoint = 40.0000 , 15.0000
TurnRandomDir = 0.00
TurnRandomDT = 0.01000
HeightRandomPoint = 7.0000 , 7.0000
HeightRandomDir = 90.00

RoadWidth = 28.00
ShoulderWidth = 0.00
BankingWidth = 0.00
BankingUp = 1.20
TerrainWidth = 10.00
WallHeight = 15.00
MetersPerRoadTexture = 28.00
MetersPerShoulderTexture = 4.00
MetersPerBankTexture = 2.40
MetersPerTerrainTexture = 10.00
MetersPerWallTexture = 60.00

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/KajamansRoads/Free/Obj.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/KajamansRoads/Free/Obj/Materials.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading