You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: VisualPinball.Unity/Documentation~/creators-guide/tutorials/realistic-backglass/2-create-mesh.md
+14-22Lines changed: 14 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,40 +6,32 @@ description: How to create a Backglass mesh in Blender
6
6
7
7
# Create a Backglass Mesh
8
8
9
-
We're now going to edit the _default cube_ and unwrap it to fit the backglass artwork. _Note: this might be the only tutorial on the internet that actually uses the default cube ;)_
9
+
We're now going to edit Blender's *default cube* and unwrap it to fit the backglass artwork.
10
10
11
-
## Step 1: Edit the Cube
11
+
*Note: this might be the only tutorial on the internet that actually uses the default cube ;)*
12
12
13
-
Open Blender, choose *File -> New -> General* and select the _default cube_ that is native to this scene while in Object Mode. Under the Scene setting in the lower right change the units to *Imperial* and set the length to *Inches*. At the upper right of the window pull out the menu there and type in the exact dimensions of your backglass.
13
+
## Create the Geometry
14
14
15
-

15
+
Open Blender and select the default cube. In the *Scene Properties* window, set units to *Imperial* and the length to *Inches*. With your mouse cursor over 3D viewport, hit `N` to show the transform properties of the cube. Enter the dimensions of your backglass in the `Y` and `Z` fields under *Scale*. The `X` value isn't really important, make it something small like 0.2".
16
16
17
-
## Step 2: Scale the Backglass
17
+

18
18
19
-
Once you've set the dimensions of the backglass zoom in on it and while still in *Object Mode* select *Object -> Apply -> Scale*. This will set the scale to 1:1:1 which will lock in your edit of the backglass.
19
+
Then, while the object is still selected, hit `CTRL+A`and choose *Scale* to apply the scale to the geometry.
20
20
21
-

21
+
## Unwrap the Front Surface
22
22
23
-
## Step 3: Import the artwork
23
+
The edges and the back side of the translite won't be visible, so we'll only unwrap the front side. Since the aspect ratio of the front side matches the aspect ratio of our maps, we can to project it entirely onto the map.
24
24
25
-
To start the process of unwrapping the object that we just made we first must bring in the artwork that we created in the previous step. To do that select "UV Editing" and in the left screen choose *Image -> Open* and navigate to the Color Artwork that you made in Step 1.
25
+
Change to the *UV Editing* workspace. Put your mouse cursor over the right window and press `numpad 3` to switch to an orthographic front view of the backglass. Make sure you're in edit mode, hit `3` for face selection and click on the front face. Select *UV -> Project From View (Bounds)*.
26
26
27
-

27
+

28
28
29
-
## Step 4: Unwrap the Front surface
29
+
In order to clear the unused faces, hit `CTRL+I`, hover over the left side, hit `1` for point selection, type `S` for scale, and enter `0`.
30
30
31
-
To be able to use the object that you've just created, we'll create a UV map for it. For this to work, we only need to unwrap the front face of the backglass and make sure that it fits the artwork.
31
+
## Clean Up and Export
32
32
33
-
Change to the *UV Editing* workspace. Put your mouse cursor over the right window and press `numpad 7` to switch to an orthographic top-down view of the backglass and `numpad 5` to get a view from the top. Hit `3` for face selection and click on the front face. In the right window, choose *UV -> Project From View (Bounds)*.
33
+
Go back to the *Layout* workspace. Select *Material Properties*, click on *Material*and on the `-` button to remove it.
34
34
35
-
You should see an unwrapped face appear in the left window that lines up with the artwork that you made. If the edges don't line up, hit `2` for edge selection in the left screen, click on the edge that needs to be moved and hit `G` while hovering over that edge. This will select the edge and allow you to move it to the correct location. Note that you do not need to "click" to move the edge.
36
-
37
-

38
-
39
-
## Step 5: Export from Blender
40
-
41
-
The hard work is now done! Choose File/Export and save the file as an fbx.
42
-
43
-

35
+
Then, with the object still selected, choose *File -> Export -> FBX*. Check *Selected Objects* only, and name it `backglass.fbx`.
44
36
45
37
You're now ready to [import into Unity](xref:tutorial_backglass_3).
0 commit comments