Standard wheels to mesh wheels
From Rigs of Rods Wiki
How to add meshwheels to an existing truck with wheels:
1. Make sure you have the following:
>A wheelband
>A .mesh file of the rim
>A .material file for both
2. Open up your chosen truck in notepad and find the wheels section.
A typical wheels section looks like this:
wheels 0.450000, 0.300000, 12, 68, 70, 9999, 1, 0, 69, 175.000000, 400000.000000, 3000.000000, tracks/wheelface tracks/wheelband1 0.450000, 0.300000, 12, 72, 73, 9999, 1, 0, 71, 175.000000, 400000.000000, 3000.000000, tracks/wheelface tracks/wheelband1 0.450000, 0.600000, 12, 64, 65, 66, 1, 1, 39, 350.000000, 400000.000000, 3000.000000, tracks/wheelfaceb tracks/wheelband2 0.450000, 0.600000, 12, 66, 67, -65, 1, 1, 41, 350.000000, 400000.000000, 3000.000000, tracks/wheelfaceb tracks/wheelband2
3. Find the following values and note them down as we will need them later:
>The radius(1st value)
>The width(2nd value)
>The number of rays(3rd value)
>Node1 (4th value)
>Node2 (5th value)
>Rigidity Node (6th value)
>Wheel Braking (7th value)
>Wheel Drive (8th value)
>Reference arm node (9th value)
>Mass (10th value)
>Springiness (11th value)
>Damping (12th value)
4. Copy the following code into the .truck file:
meshwheels
- tyre_radius, rim_radius,width,numrays,node1,node2,snode,braked,propulsed, arm, mass, spring, damping, side, meshname material
0.35, 0.21, 0.5, 14, 32, 33, 34, 1, 1, 18, 200.0, 300000.0, 2000.0, l, dodgechargerwheel.mesh dodgechargerband 0.35, 0.21, 0.5, 14, 34, 35, 33, 1, 1, 26, 200.0, 300000.0, 2000.0, r, dodgechargerwheel.mesh dodgechargerband 0.35, 0.21, 0.5, 14, 44, 45, 9999, 1, 0, 53, 200.0, 350000.0, 2000.0, l, dodgechargerwheel.mesh dodgechargerband 0.35, 0.21, 0.5, 14, 46, 47, 9999, 1, 0, 50, 200.0, 350000.0, 2000.0, r, dodgechargerwheel.mesh dodgechargerband
5. Replace the values under the name:
>tyre_radius with the radius (noted in step3)
>width with the width (noted in step3)
>numrays with the the number of rays (noted in step3)
>Node1 with Node1 (noted in step3)
>Node2 with Node2 (noted in step3)
>Rigidity Node with snode (noted in step3)
>Wheel Braking with braked (noted in step3)
>Wheel Drive with propulsed (noted in step3)
>Reference arm node with arm (noted in step3)
>Mass with Mass (noted in step3)
>Springiness with spring (noted in step3)
>Damping with damping (noted in step3)
6. Next come the parts only for meshwheels,
>The rim radius is the radius of the mesh rim
>The side is the side of the wheel(l for left, r for right)
>The meshname. This is the name of the . mesh file(with the . mesh extension)
>The material, defined in the .material file, is the tyre texture.
7. Do this for all the lines in the wheels section(add/remove lines according to the number of wheels).
8. Remove the old wheels section, save and enjoy high quality wheels!
More info on meshwheels can be found here: Meshwheels


(gold)
(silver)
(bronze)

