Difference between revisions of "LFS Editor/Guides/Mirrors"

From LFS Manual
Jump to navigationJump to search
m
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox vehicle mods}}
+
{{Infobox LFS Editor}}
  
In the [[Modeller]], a mirror texture is a special texture called <code>s_mirr</code> which looks black in editor but produces a real mirror image in game.
+
'''Mirrors''' for vehicle mods use a special texture called <code>s_mirr</code> which looks black in editor but produces a real mirror image in game.
  
== How to assign a mirror texture to a side mirror ==
+
== Assigning a mirror texture to a side mirror ==
  
=== 1. Texture page ===
+
=== Creating a texture page ===
  
# Enter the [[Modeller]] - {{key press|E}}.
+
{{steps
# Go to texture page mode by clicking the {{old button|page}} button.
+
| Enter the [[Modeller]] - {{key press|E}}.
# Click {{old button|add new page|#a1ffa1}}.
+
| Click the {{old button|page}} button at the top to enter [[LFS Editor/Modeller/Texture Page Mode|texture page mode]].
# Once the "Select PNG texture" dialog appears, enter <code>s_mirr</code> and press OK.
+
| Click {{old button|add new page|#a1ffa1}}.
 +
| When the "Select PNG texture" dialog appears, enter <code>s_mirr</code> and press {{button|OK}}.
 +
}}
  
=== 2. Texture cutout ===
+
=== Creating a texture cutout ===
  
# Go to the texture cutout mode by clicking the {{old button|cutout}} button.
+
{{steps
# Click {{old button|add new cutout|#a1ffa1}}, enter a name for it and press OK.
+
| Click the {{old button|cutout}} button at the top to enter [[LFS Editor/Modeller/Texture Cutout Mode|texture cutout mode]].
# Check the assigned texture page of the newly created cutout in the "texture page" column. If it doesn't already say <code>s_mirr</code>, click the page name and select <code>s_mirr</code> from the list of pages on the right side of the screen.
+
| Click {{old button|add new cutout|#a1ffa1}}, enter a name for it and press {{button|OK}}.
 +
| In the "texture page" column, check the assigned texture page of the newly created cutout. If it doesn't already say <code>s_mirr</code>, click the page name and select <code>s_mirr</code> from the list of pages on the right side of the screen.
 +
}}
  
=== 3. Texture mapping ===
+
=== Creating a texture mapping ===
  
# Go to the texture mapping mode by clicking the {{old button|map}} button.
+
{{steps
# Switch to any 2D view (e.g. front view by clicking the {{old button|f|#00ff00}} button in the [[LFS_Editor_User_Interface#Viewports|viewport controls]] at the bottom right, or pressing the {{key press|F}} key.
+
| Click the {{old button|map}} button at the top to enter [[LFS Editor/Modeller/Texture Mapping Mode|texture mapping mode]].
# Press and hold the right mouse button and drag a rectangle in the car model area to create a yellow "drag box" for the mapping.
+
| Switch to any 2D view (e.g. front view by clicking the {{old button|f|#00ff00}} button in the [[LFS Editor/User Interface#Viewports|viewport controls]] at the bottom right, or pressing the {{key press|F}} key.
# Click {{old button|add new mapping|#a1ffa1}}, enter a name for it and press OK.
+
| Press and hold the right mouse button and drag a rectangle in the car model area to create a yellow "drag box" for the mapping.
# Click the assigned cutout of the newly created mapping in the "cutout" column.
+
| Click {{old button|add new mapping|#a1ffa1}}, enter a name for it and press {{button|OK}}.
# Select the correct cutout from the list of cutouts on the right side of the screen.
+
| In the "cutout" column, click the assigned cutout of the newly created mapping.
 +
| On the right side of the screen, select the correct cutout from the list of cutouts.
 +
}}
  
=== 4. Assigning the mapping to triangles ===
+
=== Assigning the mapping to triangles ===
  
# Go to triangle mode by clicking the {{old button|tri}} button.
+
{{steps
# Select the triangles representing the mirror surface.
+
| Click the {{old button|tri}} button at the top to enter [[LFS Editor/Modeller/Triangle Mode|triangle mode]].
# In the bottom left part, you will see all existing mappings. Click the newly created mapping.
+
| Select the triangles representing the mirror surface. For example, press {{key press|Ctrl|LMB}} to select the triangles one by one.
 +
| In the bottom left corner, you will see all existing mappings. Click the newly created mapping.
 +
}}
  
[[Category:LFS Editor Guides]]
+
[[Category:LFS Editor Guides|{{SUBPAGENAME}}]]

Latest revision as of 22:33, 7 February 2024

LFS Editor
Vehicle Mods

Mirrors for vehicle mods use a special texture called s_mirr which looks black in editor but produces a real mirror image in game.

Assigning a mirror texture to a side mirror

Creating a texture page

  1. 1 Enter the Modeller - E.
  2. 2 Click the page button at the top to enter texture page mode.
  3. 3 Click add new page.
  4. 4 When the "Select PNG texture" dialog appears, enter s_mirr and press OK.

Creating a texture cutout

  1. 1 Click the cutout button at the top to enter texture cutout mode.
  2. 2 Click add new cutout, enter a name for it and press OK.
  3. 3 In the "texture page" column, check the assigned texture page of the newly created cutout. If it doesn't already say s_mirr, click the page name and select s_mirr from the list of pages on the right side of the screen.

Creating a texture mapping

  1. 1 Click the map button at the top to enter texture mapping mode.
  2. 2 Switch to any 2D view (e.g. front view by clicking the f button in the viewport controls at the bottom right, or pressing the F key.
  3. 3 Press and hold the right mouse button and drag a rectangle in the car model area to create a yellow "drag box" for the mapping.
  4. 4 Click add new mapping, enter a name for it and press OK.
  5. 5 In the "cutout" column, click the assigned cutout of the newly created mapping.
  6. 6 On the right side of the screen, select the correct cutout from the list of cutouts.

Assigning the mapping to triangles

  1. 1 Click the tri button at the top to enter triangle mode.
  2. 2 Select the triangles representing the mirror surface. For example, press Ctrl + LMB to select the triangles one by one.
  3. 3 In the bottom left corner, you will see all existing mappings. Click the newly created mapping.