Tuesday, December 27, 2022

How to make NFS3 showcase and history files

In this tutorial you will learn how to make the showcase and history files for your car in a style that's quite close to the one used in the vanilla game's ones.

    Stuff you'll need


    GIMP's user interface

    If you're not familiarized with GIMP, I will give you a quick rundown of the UI so you can get yourself acquainted with it. Here's the default UI for version 2.10


    1. Toolbox: here's where you will find most of the tools used for editing, like selection, paintbrush, bucket fill, text, etc. By default tools are grouped into several groups (which are indicated by the small arrows on the bottom right of the buttons); to select another tool in the group, right-click on the button to display the available tools in that tool to select them. Also, you can select the foreground and background colors (the black and white squares, respectively)
    2. Tool options/Information/Undo history/Recent files tabs: for this tutorial we're just going to focus on the Tool options; here's where the selected tool's parameters can be configured.
    3. Brushes/Patterns/Fonts/Messages tabs: not important for this tutorial.
    4. Layers/Channels/Paths tabs: here's when you can manage the image layers, channels and paths. We'll just focus on layers.

    Step 1: Making the showcase backgrounds

    1. Unzip the contents of the toolkit to a folder and open the nfs3_his_show_template.xcf file in GIMP. Select the rim_back layer in the base group by clicking on its name in the Layers pane.


    2. Get an image of your car's side (focusing on it's wheels, preferably), open it in GIMP, copy it and paste it on the template's rim_back layer


    3. Pick the Unite Transform (Shift+T) tool and resize the layer you pasted until you fill the most of the right quadrant by clicking and dragging on the squares alongside the logo's border (you can lower the Image Opacity parameter to 50 in the Tool Options pane to help yourself); Ctrl-click and dragging them will resize the layer while keeping it centered. You can also move the layer by just clicking and dragging it. Once you're done, press the Transform button or press the Enter key, then press the anchor button in the layers pane (or press Ctrl+H) to anchor the pasted selection to the layer below.


    4. Adjust the contrast by going to Colors > Curves. Make sure it's set to Value and move the points to adjust brightness and contrast; lower-left point controls the darker colors -if you move it upwards it will make the dark colors brighter; if you move it towards the right it will make them darker- and the upper-right one controls the brightest colors -if you move it downwards it will make them darker; if you move it towards the left it will make them brighter-. In this case, use values similar to the pic below since we need to make the dark areas lighter. Click OK to apply the adjustments. Right click on the rim_back layer and click on Layer to Image Size when you're done.
      • You can also add points by clicking in any point of the curve and dragging for more precise control.


    5. Select the logo_back layer, then get a logo with transparency (preferably a black monochrome one) of your car's manufacturer, open it in GIMP, copy it and paste it on the template's logo_back layer.
      • If you only have access to a black and white logo with no transparency, you can use the Colors > Color to Alpha command to make the background color transparent
      • If your logo comes in other color than black, you can lock the transparency by clicking on the checkerboard button above the layer list and fill it up with black by picking the Bucket Fill (Shift+B) tool and shift clicking on the logo to color it.
      • If the logo is just a part of your source image, you can select it with the Rectangle Select (R) tool, copy it, paste it, unlock the transparency then crop off the empty borders with Layer > Crop to Content, cut it and paste it on the template.


    6. Pick the Unite Transform (Shift+T) tool, then move and resize the logo into place; you can also rotate the logo by clicking and dragging outside it and if you Shift-click and drag outside the logo, you can rotate the logo in 15 degree steps. Once you're done, press the Transform button or press the Enter key, then anchor the pasted selection to the layer below.


    7. Adjust the brightness and contrast of the logo going to Colors > Curves. Make sure there aren't black areas in the blending areas with the rim_back layer to avoid transparency issues. When you're done, click OK. Deselect your selection with Select > None (Ctrl+Shift+A). Right click on the logo_back layer and click on Layer to Image Size when you're done.

    8. Select the car layer of the general group and paste a pic of your car in there, preferably a front 3/4 angle pic of it.
      • You'll need a pic with transparency (that means, without background) of the car you're making for this one. You can use GIMP's own Foreground Select and Quick Mask features to select the image's foreground, then invert the selection and delete the background. There are also background removal apps such as the one provided by DepositPhotos that you can use.


    9. Use the Unite Transform (T) tool to resize and move the car layer into place using the bottom guide (cyan dotted line) to guide yourself, then anchor the layer with Ctrl+H. Then adjust the contrast with Colors > Curves with settings similar to the ones of the pic below


    10. Select the car_shadow layer, then pick the Free Select (F) tool and make a selection by placing points where roughly where the shadow would be placed -don't worry about making it perfect because it will be blurred anyway-. Either connect the points all the way to the end or press Enter to make the selection active. Next, pick the Bucket Fill (Shift+B) tool and fill the selection with a black color.


    11. Deselect your selection and go to Filters > Blur > Gaussian Blur, set a strength of 5.00 in both X and Y and click OK to apply it.


    12. Hide the general group with the by clicking on the eye icon next to it. Select the car layer of the performance group and paste another front 3/4 picture of your car (preferably one of it moving) in it; resize it and move it with the Unite Transform tool, adjust contrast like we did with the car in the general group and anchor the layer.
      • You can also adjust the color tone if needed by applying curves in different channels (such as red, green, blue, alpha, etc) for different effects, like I did here: I changed the image tone using the rim color as a base (if you click on a part of the image while in the Curves dialog it will pick the color you clicked on as a sample which will displayed as a vertical line) and reduced the red channel value while raising the values on the blue channel to make the image tone match the background.


    13. Create the shadow in the car_shadow layer like we did for the one in the general group


    14. Select the smoke_b layer, pick the Airbrush (A) tool, pick a white color for the foreground color, then pick the Grunge 01 brush and set the Rate and Flow values to the ones you see on the screenshot. Paint over where the smoke cloud would be 3 times, each time a bit smaller than the last one. When you're done, go to Filters > Blur > Gaussian Blur and apply a blur of 8.00


    15. Select the smoke_f layer, paint a smaller cloud and blur it in the same manner as the previous step, then pick the Eraser (Shift+E) tool, select the 2. Hardness 25 brush and erase some of the smoke covering the wheel. You can zoom in or out as needed with Ctrl+mouse wheel or the +/- keys.


    16. If you couldn't get a front 3/4 pic of your car in movement, you could do the following:
      1. Select the car layerm pick the Ellipse Select (E), select the "face" of wheel, pick the Unite Transform tool and set Transform: to Selection (the second button). Use the diamond points to shape the selection to the wheel shape and press Transform or the Enter key


      2. Go to Filters > Blur > Circular Motion Blur, place the center (the cross shape) on the wheel center and set an angle of 10-15. Click on OK to apply the blur.


      3. Deselect your selection, pick the Smudge (S) tool, pick the 2. Hardness 25 brush, a size of 10 and smudge the tire tread downward a little.


      4. Repeat the process for the front wheel


    17. Hide the perfomance group and perform the same steps as we did in the general layer with a "cutaway" style image of your car. If can't get one of those, you can use an image of the engine, forgo the shadow layer and use the Eraser tool with the 2. Hardness 25 brush and a size of 200 to erase the unneeded surroundings. You're now done with the showcase elements.


    Step 2: Making the showcase backgrounds

    1. For the history files you can either reuse the showcase background or create a dedicated background for it that has a few more details (basically the founders/influential people in the manufacturer's history); if you go for the latter, copy the contents of the rim_back and the logo_back layers of the base group into their base_his counterparts, then hide the show group. Move the logo layer a bit to the right and down to make room for the next part.


    2. Select the his_keypeople layer in the keypeople group and paste the pic of company founder/key figure; then press Ctrl+H to anchor the layer.


    3. Select the his_keypeople_shadow layer, pick the Paintbrush (P) tool with the 2. Hardeness 25 brush and size 100, then paint right where the shadow would be. When your done, go to Filters > Blur > Gaussian Blur and apply a blur with strength of 5.


    4. Go to the his_car_grp group. Work on the his_car and his_car_shadow layers like we did previously for the showcase ones.


    5. If you need to add another car to the history files, you can duplicate the his_car_grp group by right-clicking on the group and clicking Duplicate Layer or pressing the Duplicate button (pointed below). Then hide the his_car_grp group, delete the contents of the duplicate layers in the duplicate group by pressing Delete on each and repeat the process. You're now done with the history elements.

    Step 3: Exporting the images and compiling

    1. We'll begin with the showcase elements; first hide the his group and unhide the base and show groups, then in the show group hide all groups except for general. Unhide the back_mask layer, pick the Rectangle Select (R) tool and mark a selection from the past the right and top edges of the image to the leftmost guide as shown (the select tool will snap to the guide), then press Ctrl+Shift+C to copy all visible layers.


    2. Press Ctrl+Shift+V to paste our copied data into a new image. This is going to be the background (bgn) part of the general section of the showcase.


    3. Go to File > Export (Ctrl+E) or File > Export As (Ctrl+Shift+E). Look for the bitmaps\show folder of the toolkit and save the file as gen_bgn.bmp. When the export options dialog shows up, use the settings shown below and click on Export.
    4. Go back to the template file, hide the back_mask layer, deselect your selection, pick the Rectangle Select (R) tool and mark a selection from the past the left and top edges of the image to the rightmost guide, copy the visible layers with Ctrl+Shift+C and paste it as a new image with Ctrl+Shift+V. Export it as gen_msk.bmp in the bitmaps\show folder of the toolkit like we did for the gen_bgn.bmp file, with the same settings as before. This is going to be the mask (mask) part of the general section of the showcase.


    5. Repeat the above process with the performance and mechanical layers of the template; you should export for those as the following:
      • per_bgn.bmp & per_msk.bmp for the performance elements
      • mech_bgn.bmp & mech_msk.bmp for the mechanical elements

    6. For the history elements, first hide the show group (and if you have a dedicated background for the history sections, the base group) and unhide the his group and repeat the process for each of the his_car_grp groups. For each of the his_car_group elements you should export them as bk##.bmp for the background and mk##.bmp for the mask, both should be exported to the bitmaps\his folder.
      • The ## part of the name indicates the year of the element in the history section of the fedata, each one is called by the last 2 digits in the fedata history string, so for example, for the green 1969 Fairlady Z to appear correctly in the history section, the entries for its background and mask should be named BK69 and MK69, respectively, in addition to the fedata history string ending in "69" (i.e. "Fairlady Z - 1969")

    7. To compile the files, run the compile.bat file and follow the prompts; when it's done, open the showcase folder that appears in the newly created _output folder of the toolkit. Move the files in there to the fedata\art\showcase folder of NFS3 and boot the game to enjoy the showcase and history sections you made!

    That's it for this tutorial, see you around!

    Sunday, December 11, 2022

    How to make NFS3-styled manufacturer logos and loading slides

    In this tutorial you will learn how to make a manufacturer logo (the one that appears behind the car in the car select screen) and loading screen for your car in a style that's quite close to the one used in the vanilla game's ones.

      Stuff you'll need

      GIMP's user interface

      If you're not famliarized with GIMP, I will give you a quick rundown of the UI so you can get yourself acquainted with it. Here's the default UI for version 2.10


      1. Toolbox: here's where you will find most of the tools used for editing, like selection, paintbrush, bucket fill, text, etc. By default tools are grouped into several groups (which are indicated by the small arrows on the bottom right of the buttons); to select another tool in the group, right-click on the button to display the available tools in that tool to select them. Also, you can select the foreground and background colors (the black and white squares, respectively)
      2. Tool options/Information/Undo history/Recent files tabs: for this tutorial we're just going to focus on the Tool options; here's where the selected tool's parameters can be configured.
      3. Brushes/Patterns/Fonts/Messages tabs: not important for this tutorial.
      4. Layers/Channels/Paths tabs: here's when you can manage the image layers, channels and paths. We'll just focus on layers.
       

      Step 1: Uncompressing the .qfs files

      1. Unzip FSHTool into a folder 
      2. Extract the FEDATA.FSH file from an existing car.viv with NFSWizard or VIVEdit
      3. Copy the FEDATA.FSH you extracted and any fedata\art\slides\##_00.qfs file from the game's folder into the FSHTool folder
        • The ## stands for your car serial's number, so rename the file to match your car's SN (for example, if it has a serial number of 7, the file should be named as 07_00.qfs)
      4. Now drag the files you copied into the FSHTool.exe file to uncompress them; a new folder with the file name will be generated for each file. 

      Step 2: Making the manufacturer logo

      1. Unzip the files of the templates to a folder and open the nfs3_fedatafsh_template.xcf file in GIMP. Select the logo_back layer in the logo_back_grp group by clicking on its name in the Layers pane.

      2. Get a logo with transparency (preferably a black monochrome one) of your car's manufacturer, open it in GIMP, copy it and paste it on the template's logo_back layer
        • If you only have access to a black and white logo with no transparency, you can use the Colors > Color to Alpha command to make the background color transparent
        • If your logo comes in other color than black, you can lock the transparency by clicking on the checkerboard button above the layer list and fill it up with black by picking the Bucket Fill (Shift+B) tool and shift clicking on the logo to color it.
        • If the logo is just a part of your source image, you can select it with the Rectangle Select (R) tool, copy it, paste it, unlock the transparency then crop off the empty borders with Layer > Crop to Content, cut it and paste it on the template.



      3. Pick the Unite Transform (Shift+T) tool and resize the logo until it fits by clicking and dragging on the squares alongside the logo's border; Ctrl-click and dragging them will resize the logo while keeping it centered. You can rotate the logo by clicking and dragging outside it and if you Shift-click and drag outside the logo, you can rotate the logo in 15 degree steps. Once you're done, press the Transform button or press the Enter key, then press the anchor button in the layers pane (or press Ctrl+H) to anchor the pasted selection to the layer below.


      4. Select the logo_back_shadow layer, then right-click on the logo_back layer and click on the Alpha to Selection command, then go to Selection > Grow, pick a value of 3 and click OK. Next click on the foreground color in the Toolbox and enter the color depicted here (8f93bf), then click OK. Pick the Bucket Fill tool and click on the selection to fill it.



      5. Deselect the area with Select > None (Ctrl+Shift+A), then go to Filters > Blur > Gaussian Blur, set it up with the values below and click OK.


      6. Right-click on the logo_back layer, then click on Alpha to Selection and delete the contents of the selection by pressing the Delete key. Next, deselect the area. The back logo is done.


      7. Now, onto the front logo. Go to the logo_front_grp group and select the logo_front_layer; paste the wordmark of the manufacturer (for best results it should be white), then resize it and move it with the Unite Transform tool. Use the guides to place the logo.


      8. Create a new layer by either going to Layer > New Layer (Ctrl+Shift+N) or clicking the New Layer button that's on the lower left corner of the Layers pane. Name the layer logo_front_shine and set it to Grain Merge mode. Place the layer above the color layer with the arrow buttons on the bottom of the Layers pane and fill it with a white color.


      9. Pick the Move (M) tool, then hold the Alt key (to move the selection) while you click and drag the selection 2 pixels to the down and right. Delete the selection contents and deselect your selection. You can zoom in and out with the plus (+) and minus (-) keys or by Ctrl+mouse wheel to help yourself out.


      10. Make a new layer called logo_front_shadow with Grain Merge mode and place it below the logo_front_shine one. Right-click on the logo_back layer, click on Alpha to Selection, fill with black color, move the selection 2 pixels up and left, and delete the selection. Deselect your selection, you're done with the manufacturer logo.


      11. To save the manufacturer logo, go to File > Export (Ctrl+E) or File > Export As (Ctrl+Shift+E). Save it as 0000.bmp in the FEDATA folder of the qfs file you uncompressed with FSHTool. When the export options dialog shows up, use the settings shown below and click on Export

      Step 3: Making the loading slide

      1. First you'll need a pic with transparency (that means, without background) of the car you're making. You can use GIMP's own Foreground Select and Quick Mask features to select the image's foreground, then invert the selection and delete the background. There are also background removal apps such as the one provided by DepositPhotos that you can use.
      2. Make sure you have the Earth or Future Earth font installed
      3. Open the nfs3_car_slide_template.xcf in GIMP
      4. Copy your car image and paste it on the car_bg's group car layer, then scale it and rotate it with the Unite Transform tool. Anchor the layer (Ctrl+H) when you're done.

        • In case there are background bits sticking out of the car's image, pick the Eraser (Shift+E) tool, pick a brush size of 10 px and erase them away

      5. Select the car_shadow layer, then pick the Free Select (F) tool and make a selection by placing points where roughly where the shadow would be placed -don't worry about making it perfect because it will be blurred anyway-. Either connect the points all the way to the end or press Enter to make the selection active. Next, pick the Bucket Fill tool and fill the selection with a black color.


      6. Go to Filters > Blur > Gaussian Blur and apply a blur with these settings


      7. If you need to adjust the contrast of car layer, select again the car layer and go to Colors > Curves. Make sure it's set to Value and move the points to adjust brightness and contrast; lower-left point controls the darker colors -if you move it upwards it will make the dark colors brighter; if you move it towards the right it will make them darker- and the upper-right one controls the brightest colors -if you move it downwards it will make them darker; if you move it towards the left it will make them brighter-. Click OK to apply the adjustments.

        • You can also add points by clicking in any point of the curve and dragging for more precise control. You can also apply curves in different channels (such as red, green, blue, alpha, etc) for different effects, like I did here: I changed the image tone using the rim color as a base (if you click on a part of the image while in the Curves dialog it will pick the color you clicked on as a sample which will displayed as a vertical line) and reduced the blue channel value while raising the values on the red channel to make the image tone match the background.

      8. Go to the car name (Earth) layer in the text group, pick the Text (T) tool triple-click in it to select all the text and type the car's name in ALL CAPS
        • If you're using Future Earth, hide the car name (Earth) by clicking on the eye icon next to the layer in the Layers pane, show the car name (Future Earth) layer, proceed as step 8 but use small caps instead

      9. Select the shadow layer below the text, right-click on the text layer and select Alpha to Selection, then go to Selection > Grow and grow the selection by 3px. Then pick the Bucket Fill tool and paint the selection black

      10. Deselect your selection, then go to Filters > Blur > Gaussian Blur and apply a blur using these values. Then go to Layer > Crop to Selection to crop out the empty space in the layer.


      11. Select the text group and pick the Unite Transform tool. Move the pivot point right to the text's upper right corner, then Ctrl-click and drag to the right the diamond shaped point on the top side of the layer; use the placeholder text below as a guide for the shear (which is around 11 in the upper-right value of the Transform box). When you're done, click on Transform or press Enter.

      12. Hide the org_text_guide layer. You're done with the loading slide
      13. To save the loading slide, go to File > Export (Ctrl+E) or File > Export As (Ctrl+Shift+E). Save it as 0000.bmp in the ##_00 folder of the qfs file you uncompressed with FSHTool. When the export options dialog shows up, use the settings shown below and click on Export

      Step 3: Compiling the logo and slide files and setting them in-game

      1. Go to the FEDATA folder and drag the index.fsh file into the FSHTool executable (you might need to open a second window to do this)
      2. Go to the ##_00 folder and drag the index.fsh file into the FSHTool executable (you might need to open a second window to do this)
      3. Open you car's car.viv file with NFSWizard or VIVEdit and import your FEDATA.FSH file, then save.
      4. Copy the ##_00.qfs file and paste it into the fedata\art\slides folder of NFS3

      And that's it! This is how you can make NFS3-styled manufacturer logos and loading slides. Hope this tutorial has been helpful.

      See you around!