Skip to content

Commit 84d731e

Browse files
authored
Merge pull request #14 from BeamNG/improvements
Batch node renaming, retaining node selection after moving them, face flipping,
2 parents 2b005b8 + 9aac046 commit 84d731e

17 files changed

Lines changed: 541 additions & 263 deletions

docs/user/face_orientation.png

178 KB
Loading

docs/user/flip_face.png

166 KB
Loading

docs/user/jbeam_ui_2.png

33.6 KB
Loading

docs/user/rename_node.png

173 KB
Loading

docs/user/rename_node_2.png

-290 KB
Binary file not shown.

docs/user/user_docs.md

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,41 @@ With the JBeam imported, you should see Blender meshes that represent the JBeam
8787

8888
![](usage_vehicle_selected.png)
8989

90-
One more step before moving on is to add a *Text Editor* view. The *Text Editor* allows you to view the changes to the JBeam file after modifying the Blender mesh in realtime and also allows you to modify it to view the changes to the Blender mesh in realtime as well!
90+
<br>
91+
92+
#### Blender Text Editor
93+
94+
Blender's *Text Editor* allows you to view the changes to the JBeam file after modifying the Blender mesh in realtime and also allows you to modify it to view the changes to the Blender mesh in realtime as well!
9195

9296
Open it by placing your cursor on the top right hand corner of the viewport until you see your cursor turn into a '+' symbol and then LMB drag to the left and you should see a 2nd viewport. And then click on the top left button in that viewport that looks like a "grid and a circle" and click on *Text Editor*. Afterwards the text editor may appear blank. Just click on the JBeam part and the text editor should open the JBeam file that the part originates from.
9397

9498
![](opening_text_editor.gif)
9599

96-
We are now ready to start editing the JBeam parts! For the most part, if you know how to use Blender, editing a JBeam part is just like editing a regular mesh. For example, moving a node is exactly the same as moving a regular vertex. The same applies for adding and deleting a node as well, although renaming a node is something unique to JBeam.
100+
<br>
101+
102+
#### JBeam UI
103+
104+
The *JBeam UI* allows you to see the properties of a selected JBeam object.
105+
106+
1. On the right hand side of the 3D Viewport next to the 3D axes arrows, click on the little arrow pointing to the left.
107+
108+
![](jbeam_ui_1.png)
109+
110+
2. Several tabs will pop out such as *Item*, *Tool*, *View*, *JBeam*. Click on the *JBeam* tab and you will be greeted to a UI that shows you the JBeam part selected and its properties.
111+
112+
![](jbeam_ui_2.png)
113+
114+
<br>
115+
116+
We are now ready to start editing JBeam parts! For the most part, if you know how to use Blender, editing a JBeam part is just like editing a regular mesh. For example, moving a node is exactly the same as moving a regular vertex. The same applies for adding and deleting a node as well, although renaming a node is something unique to JBeam.
97117

98118
The rest of the instructions below will be using the *Square Donut* JBeam part and please have the JBeam part selected and be in *Edit Mode*.
99119

100120
![](after_importing.png)
101121

102122
<br>
103123

104-
#### Undoing/Redoing
124+
#### Undoing/Redoing (VERY IMPORTANT!)
105125
Please use **Ctrl + [ and Ctrl + ]** to undo and redo your changes. **DO NOT** use Ctrl + Z and Ctrl + Shift + Z as Blender's undo system doesn't work well with this plugin and can break things.
106126

107127
<br>
@@ -119,16 +139,19 @@ That wasn't too bad right? ;)
119139
<br>
120140

121141
#### Renaming a Node
122-
Renaming a node is something unique to JBeam but is easy to do :)
142+
Renaming a node is something unique to JBeam but is easy to do :) FYI, if you want references to the node you are renaming (e.g. beams, tris, quads) to also be renamed, enable *Affect Node References* under the *Settings* panel. But with this enabled, renaming will be slow, especially with full vehicles.
123143

124144
1. Click on the node you want to rename.
125-
2. Then, on the right hand side of the 3D Viewport right next to the 3D axes arrows, click on the little arrow pointing to the left.
145+
2. In the *JBeam* UI, in the *JBeam Node ID* input box, rename the node to whatever you'd like and press enter. I renamed the node to "hey". You will see that the rename is also reflected in the node name labels on the part.
126146

127-
![](rename_node_1.png)
147+
![](rename_node.png)
128148

129-
3. Several tabs will pop out such as *Item*, *Tool*, *View*, *JBeam*. Click on the *JBeam* tab and you will be greeted to a UI that shows you the JBeam part selected and allows you to rename the selected node. Rename the node to whatever you'd like and press enter. I renamed the node to "hey". You will see that the rename is also reflected in the node name labels on the part.
149+
<br>
150+
151+
#### Batch Node Renaming
152+
You can also rename a bunch of nodes quickly, by renaming nodes under a naming scheme!
130153

131-
![](rename_node_2.png)
154+
1. In the *JBeam* UI, inside the *Batch Node Renaming* panel, in the *Naming Scheme* input box, type in the node name scheme where the '#' character will be replaced by the *Node Index*. For example, naming scheme "#rr" will produce node names like "1rr", "2rr", "3rr", etc. Don't forget if required to enable *Affect Node References* under the *Settings* panel. Then press the "Start" button and nodes you click will be renamed. The *Node Index* shows you what the next node will be renamed to. You can also adjust this number if you need to.
132155

133156
<br>
134157

@@ -204,6 +227,27 @@ And deleting a triangle/quad is also pretty straight forward.
204227

205228
<br>
206229

230+
#### Triangle/Quad Face Orientation
231+
Blender has a tool to show you which way a face is pointing, as a face has a front and back side. A blue face is the front side of a face (normal pointing towards you) and a red face is the back side (normal pointing away from you).
232+
233+
1. On the upper right corner of the viewport, click on the *Overlays* downward facing arrow
234+
2. Toggle the *Face Orientation* checkbox.
235+
236+
![](face_orientation.png)
237+
238+
<br>
239+
240+
#### Flipping a Triangle/Quad
241+
And you can flip the way a triangle/quad is facing.
242+
243+
1. Switch into *Face select* mode
244+
2. Click on the triangle/quad you want to flip.
245+
3. Click on *Flip Face(s)*
246+
247+
![](flip_face.png)
248+
249+
<br>
250+
207251
#### Exporting a JBeam Part
208252
1. When you want to export, select the JBeam part in *Object Mode*, and in the top menu bar *File* > *Export* > *Selected JBeam Parts(s)*.
209253

0 commit comments

Comments
 (0)