The wooden road is intended for wood bridges and is a bit bumpy. Wood has fairly good grip, I guess.
New:
- road material: roadWodd
- surface (phyiscs): Wood
- wall: road_wall_wood
What is missing are normal maps and unique wood sounds. I totally want to add a wood sound on normal driving but I don’t know how. Or if this is even possible. Obviously this also needs a bit tweaking. Also the wooden planks only look OK on bridges. On terrain, the wooden planks look kinda displaced, especially the edges are too “hard”.
Screenshot of this in action:
I also wish the black parts of the road material would be actually transparent
Here’s a link to the wall image:
http://opengameart.org/node/8160
(Rename to “woodwall.jpg”, move to data/road)
Here’s the road image:
(Rename to “roadWood.jpg”, move to data/road)
PNG source: http://opengameart.org/node/8051
I also wrote some stuff into config filess in order to add new road materials to Stunt Rally.
Here’s a diff compared to version 0d7a204ca1d0d44fba1d2dd038e3c6422a1ca975:
- {l Code}: {l Select All Code}
diff --git a/config/presets.xml b/config/presets.xml
index c818f2d..1ee0775 100644
--- a/config/presets.xml
+++ b/config/presets.xml
@@ -181,6 +181,8 @@
<r a="D16" sc="D" m="roadAsphalt" su="Asphalt" du="0.0" ds="0.9" md="0.0" tr="0.00 0.00 0.00 0.0" z="D" />
+<r a="F1" sc="F" m="roadWood" su="Wood" du="0.0" ds="0.0" md="0.0" tr="0.00 0.00 0.00 0.0" z="F" />
+
<r a="A3" sc="A" m="roadAdesert" su="roadAdesert" du="0.5" ds="0.6" md="0.0" tr="0.54 0.30 0.22 0.7" z="ACR" />
<r a="A1" sc="A" m="roadAdesertDark" su="roadAdesert" du="0.5" ds="0.6" md="0.0" tr="0.44 0.30 0.22 0.7" z="ACR" />
<r a="C1" sc="C" m="roadCdesert" su="roadDesert" du="0.5" ds="0.6" md="0.0" tr="0.44 0.30 0.22 0.7" z="C" />
diff --git a/data/carsim/easy/surfaces.cfg b/data/carsim/easy/surfaces.cfg
index 9a9b63b..f285fbf 100644
--- a/data/carsim/easy/surfaces.cfg
+++ b/data/carsim/easy/surfaces.cfg
@@ -284,3 +284,17 @@ ID = 5
RollResistance = 1
RollingDrag = 60
Tire = gravel
+
+
+#----------------------------------------------------------------------------------------------------
+#-- Wood
+#----------------------------------------------------------------------------------------------------
+
+[ Wood ]
+BumpAmplitude = 0.03
+BumpWaveLength = 10
+FrictionTread = 0.98
+ID = 5
+RollResistance = 1
+RollingDrag = 1
+Tire = gravel
diff --git a/data/carsim/hard/surfaces.cfg b/data/carsim/hard/surfaces.cfg
index 7ace988..00e9f1a 100644
--- a/data/carsim/hard/surfaces.cfg
+++ b/data/carsim/hard/surfaces.cfg
@@ -284,3 +284,16 @@ ID = 5
RollResistance = 1
RollingDrag = 60
Tire = gravel
+
+#----------------------------------------------------------------------------------------------------
+#-- Wood
+#----------------------------------------------------------------------------------------------------
+
+[ Wood ]
+BumpAmplitude = 0.05
+BumpWaveLength = 5.0
+FrictionTread = 0.95
+ID = 5
+RollResistance = 1
+RollingDrag = 1
+Tire = gravel
diff --git a/data/carsim/normal/surfaces.cfg b/data/carsim/normal/surfaces.cfg
index d6021a3..2a01e70 100644
--- a/data/carsim/normal/surfaces.cfg
+++ b/data/carsim/normal/surfaces.cfg
@@ -284,3 +284,16 @@ ID = 5
RollResistance = 1
RollingDrag = 60
Tire = gravel
+
+#----------------------------------------------------------------------------------------------------
+#-- Wood
+#----------------------------------------------------------------------------------------------------
+
+[ Wood ]
+BumpAmplitude = 0.05
+BumpWaveLength = 10
+FrictionTread = 0.95
+ID = 5
+RollResistance = 1
+RollingDrag = 1
+Tire = gravel
diff --git a/data/materials/scene/pipe.mat b/data/materials/scene/pipe.mat
index f9677e8..467cd5a 100644
--- a/data/materials/scene/pipe.mat
+++ b/data/materials/scene/pipe.mat
@@ -580,6 +580,16 @@ material road_wall_Desert
bump_scale 1.0
}
+// wood
+material road_wall_Wood
+{
+ parent road_wall
+ ambient 0.8 0.8 0.8
+ diffuse 0.6 0.6 0.6
+ specular 0.3 0.3 0.3 16
+ diffuseMap woodwall.jpg
+}
+
// pipe Wall
//----------------------------------------------------
diff --git a/data/materials/scene/road.mat b/data/materials/scene/road.mat
index 544a21d..59cbf26 100644
--- a/data/materials/scene/road.mat
+++ b/data/materials/scene/road.mat
@@ -660,6 +660,26 @@ material roadMoss
specular 0.15 0.24 0.25 48
}
+// Wooden planks
+
+material roadWood_ter
+{
+ parent road
+ diffuseMap roadWood.jpg
+ ambient 0.7 0.7 0.7
+ diffuse 0.2 0.2 0.2
+ specular 0.2 0.2 0.2 16
+}
+
+material roadWood
+{
+ parent road
+ diffuseMap roadWood.jpg
+ ambient 0.7 0.7 0.7
+ diffuse 0.2 0.2 0.2
+ specular 0.2 0.2 0.2 16
+}
+
/// test new gravel