Rfactor2 - Car Modding Tutorials: Mandatory Installation
Rfactor2 - Car Modding Tutorials: Mandatory Installation
Rfactor2 - Car Modding Tutorials: Mandatory Installation
Mandatory installation - coreshaders.mas These shaders from rFactor2 (ModDev/Shared) have to be placed in the 3DSMax/hardwareshaders folder. - gMotor tools > Converter.dlu >Material.dlu >Texture.dlu These files have to be placed in the 3DSMax/plugins folder. - Nvidia dds tools (for Photoshop) - Notepad++ Setting up workspace You will be working directly in the vehicles/car folder, sources and loose files will be removed at the end of the process. As long as you haven't finished building the car, all graphical assets wont be packed in the car.mas archive. Recommended setup for you cars folder : 1 - Create a new folder in Vehicles directory (well use test_car as example here) 2 - open the rTrainer main folder and copy all files 3 - paste files in your test_car main folder. 4 - Replace rtrainer part in all files name with test_car 5 - Open teams folder and do the same (just keep car #1 files) Now add 4 new folders in your test_car main dir : 1 - resources (all car reference as blueprints and pictures go there) 2 - max (for 3DSMax files) 3 - psd (for photoshop / paintshop textures source images) 4 - maps (for car graphical assets used by the car in game as textures and meshes) - Unpack the test_car.mas archive into the maps folder (drag archive onto MAS2.exe then select all, right-click, extract) - Click Create a new MAS file top left button from MAS2.exe - Open your test_car/mas folder - drag black.dds file onto MAS2.exe window - Save as test_car.mas (replace previous archive) in your test_car main folder. This way you know your car will use assets from maps folder, and not the ones packed in your .mas file. Setting up all paths and links As seen in Introduction 02, you have to edit files that refer to each other and get sure you are using the correct naming everywhere a file is mentioned. Edit files in this order : > team folder 1 - open test_car_01.veh with Notepad++ 2 - replace all instances of rtrainer with test_car, save. > main test_car folder 1 - open test_car.hdv 2 - replace all instances of rtrainer with test_car, save. 3 - open test_car_Tires.tbc 2 - replace TGM=rTrainer_Tires with TGM=test_car_Tires at lines 85 and 124, save.
WORKFLOW 01
WORKFLOW 02
- Click on temp_test ( Standard ) button, then click on Standard and select gMotorMaterial on the list. T1 gMat is showing by default. - Click on Map#1 (gTex) - Browse to the test_car/maps folder and select GREY00.DDS map. The red dot on the left (Status column) is now green, showing that the texture is loaded.
WORKFLOW 03
Exporting - On Utilities panel select More..., select GMT Converter v2.xxx on the list. Setting up destination folder : > Expand GMT Outpout sub-menu > Click the icon at the right of the Mesh field > Browse to the test_car/maps folder
Now you have to set up the parameters of the exported object : > Select the test_cube object and expand the Instance sub-menu > Use settings shown on the image on the right These are the basic settings for most car parts. Back to the GMT Output tab : > Click Do Mesh button to export the object.
Editing Spinner.gen file We will delete all rtrainer objects showing on showroom, and replace the main body instance with our test_cube object. - Open test_car_Spinner.gen file - Delete everything under the Actor=VEHICLE line except for } at the last line. - replace MeshFile=rter_body_max.gmt with MeshFile=test_cube.gmt Your test_car_Spinner.gen file should show this :
WORKFLOW 04
Now you have correctly setup your workspace. You are able to quickly export then load and check your meshes in rFactor2 showroom, that is enough to start the process of building a complete car.
Notes In order to quick check objects on track, you have to fill at least these test_car.gen instances with one object : Instance=SLOT<ID> Instance=COCKPIT Instance=LFTIRE Instance=RFTIRE Instance=LRTIRE Instance=RRTIRE Tire instances meshes have to be tire-shaped cyclindrical polys. SLOT<ID> and COCKPIT meshes must have a 0,0,0 centered pivot point. xxTIRE instances must have a centered to object pivot point.