Tuesday, January 3, 2023

How to make NFS3 photo album slides

In this tutorial you will learn how to make photo album slides 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 [portable] - image editor 
    • My NFS3 photo album templates
    • FSHTool -JimD's version- [download] - QFS/FSH file unpacker/packer, for slides and vidwalls; JimD's version allows for packing resized bitmaps without having to edit the index.fsh file for that

    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. Copy the FEDATA.FSH you extracted and at least 2 fedata\art\showcase\sl<car id>##.qfs file from the game's folder into the FSHTool folder.
      • <car id> stands for your car's FEDATA ID (i.e. F355)
      • The ## stands for the slide number, 01 is the first slide which is styled differently from the rest and it's what enables the photo album feature for your car.
      • Copy more sl<car id>##.qfs if you want to add more slides
    3. 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 first slide

    1. Unzip the contents of the templates zip file to a folder and open the nfs3_photo_1st_slide_template.xcf file in GIMP. Select the wheel layer in the back 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 wheel layer


    3. Pick the Unite Transform (Shift+T) tool and resize the layer you pasted until the wheel covers both top and bottom of the area between the base (and then some) 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. You can zoom in or out as needed with Ctrl+mouse wheel or the +/- keys.


    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-. Click OK to apply the adjustments. Right click on the wheel 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 color layer and pick the Bucket Fill (Shift+B) tool; then pick the foreground color of your preference (I will be picking the #ffc44c [HSV 40,70,100] color for this one) and click anywhere on the layer to color it.


    6. Select the make_bg 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 make_bg layer. Then pick the Unite Transform (Shift+T) tool, then resize and move the logo to the left and middle of the background. Once you're done, press the Transform button or press the Enter key, then anchor the pasted selection to the layer below.
      • 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.


    7. Select the car layer and paste a pic of your car in there, preferably a front 3/4 angle pic of it. Then use the Unite Transform (T) tool to resize, rotate (by clicking and dragging outside of the selection) and move the car layer to the lower right zone (right up to rear wheel going past the image edge) , then anchor the layer with Ctrl+H. Then adjust the contrast with Colors > Curves.
      • 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.
      • 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. Select the mk layer in the make group, paste the manufacturer's wordmark (word logo) into it, use the Unite Transform tool to resize it and move to near the upper left corner and anchor it with Ctrl+H. Then lock the transparency by clicking the third upper button in the Layers pane, pick the Bucket Fill tool, choose a HSV 0 0 50 gray, hold Shift and click on the layer to paint it entirely with gray.


    9. Duplicate the mk layer with the Duplicate button (the one pointed at with a red arrow) on the Layers pane, press F2 and rename the layer to mk_shine, then move it under the mk layer on the Layers pane by either dragging or clicking on the Move Layer Down button (the one pointed at with a green arrow). Pick the Bucket Fill tool, pick a white color for the foreground and Shift+click to paint it all white. Pick the Move (M) tool, then Shift+click and drag the layer 1 px to the top and left.


    10. Repeat the above process for the shadow, but painting it with off-black (HSV 0,0,5) and moving it 1px to the bottom and right


    11. Hide the make group by clicking on the eye icon next to it. Repeat steps 9 and 10 for the model group layers, but with the model's logo


    12. Select the color layer of the logos group, pick the Bucket Fill tool, select a foreground color (I will be picking #ffc44d [HSV 40, 70, 90]) and click on the layer to paint it


    13. Hide the logos group. You're done with the first slide, but now you'll have to export it's parts (background, model logo and make logo)


    14. To save the background, go to File > Export (Ctrl+E) or File > Export As (Ctrl+Shift+E). Save it as 0000.bmp in the sl<car id>01 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

    15. Unhide the logos group, hide the model group within it and unhide the make group. Pick the Rectangle Select (R) tool and select the upper left area where the logo is.


    16. Copy the visible selection with Ctrl+Shift+C and paste it as a new image with Ctrl+Shift+V. Export the newly pasted image as 0002.bmp in the sl<car id>01 folder with the same settings as the previous step.


    17. Go back to the template file and repeat steps 15 and 16 for the model logo


    Step 3: Making the rest of the slides

    1. Open the nfs3_photo_slides_template.xcf file in GIMP. Select the image layer.


    2. Open the pic you want to use as a slide, go to Image > Scale Image and resize it to 640 pixels wide.


    3. Copy the image, go back to the slide template and paste it over the image layer, then pick the Move tool and Ctrl+drag (to move it alongside the image's edges) the image up or down until your desired position.


    4. Press Ctrl+Shift+N to make your pasted image into a new layer.


    5. To save the slide, go to File > Export (Ctrl+E) or File > Export As (Ctrl+Shift+E). Save it as 0000.bmp in a sl<car id>## folder of the qfs files you uncompressed with FSHTool. When the export options dialog shows up, use the settings shown below and click on Export


    6. Repeat this process for each additional slide you want to make.
       

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

    1. Go to each sl<car id>## folder and drag the index.fsh file into the FSHTool executable (you might need to open a second window to do this)
    2. Copy the sl<car id>##.qfs files and paste them into the fedata\art\showcase folder of NFS3

    And that's it! This is how you can make NFS3-styled photo albums. Hope this tutorial has been helpful. 


    See you around!

     

    No comments:

    Post a Comment