Difference between revisions of "Vehicle Editor Guides"

From LFS Manual
Jump to navigationJump to search
m (Flame CZE moved page LFS Editor Guides to Vehicle Editor Guides: wrong naming)
m (add section to redirect)
Tag: Redirect target changed
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Adjusting masses ==
+
#REDIRECT [[LFS Editor Guides#Vehicle_editor_guides]]
 
 
Press S for 'special view' in the vehicle editor. You can see the positions of various masses (e.g. engine / fuel tank). You can adjust their positions in the "Object Positions" section. Also you can edit the 'frame' which is only for mass distribution. Frame elements should be placed around the vehicle, as an approximation of where mass would be. You can get the desired mass and weight distribution by adjusting positions of the cuboid masses and the frame elements.
 
 
 
To create a frame element, you first add points then add a frame element between those points. Click 'new point' then use the drag handles to move the point where you want it to be. With a point selected you can click 'dup pt' to duplicate that point. The new point is in the same place as the point you duplicated, so make sure you move it away. To connect two points with a frame element, clicking to select one point, then hold down SHIFT and click the second point. A rfame element should appear and you can change its mass by adjusting the 'TUBE mass per metre' slider bar.
 
 
 
After constructing a frame you may with to increase or decrease the mass of the frame, without adjusting each element individually. In the 'Mass' section, you can see the frame's mass at the top of the list of masses. See plus and minus buttons beside 'Scale Frame Mass'.
 
 
 
* Left click - big steps
 
* Right click - smaller steps
 
* CTRL + Right click - even smaller steps
 
 
 
== Setting suspension types ==
 
 
 
To set double wishbone suspension you will need a thrust bearing, and upper and lower pivot. These are points on the car body, created in the vehicle editor in the same way as 'frame' points then set to the appropriate type.
 
 
 
# Press S for 'Special Draw'
 
# Click 'new point' (near the top right)
 
# Position this point somewhere inboard of the lower part of the front suspension
 
# Adjust 'Point type' to 'lower pivot'
 
# Deselect that point by clicking on it
 
# Repeat steps 2 to 5 to create an 'upper pivot' somewhere above the lower pivot
 
# Repeat steps 2 to 5 to create a 'thrust bearing' somewhere above the pivot points
 
# Now you can set the type to Double Wishbone (in the Suspension tab at top left)
 
 
 
For single seaters you will probably want to add additional points and tubes so you form a 'wishbone' shape instead of a single rod connecting the suspension to the car.
 
 
 
For examples you can have a look at the existing Formula cars.
 
 
 
After setting up the suspension, press SHIFT+L to see a diagram of the suspension geometry and press SPACE to see how it reacts when the car is dropped. You can also switch on the 'Zero springs test' in 'Suspension' tab (at the top left) to see how the car falls down to the bump stops. This can help you to observe the way the camber changes according to the suspension geometry.
 
 
 
== Adjusting aerodynamics ==
 
 
 
In the Aerodynamics section, the sliders set the downforce values for a theoretical speed of 1 m/s, for a wing at the maximum angle of attack 30 degrees. These values are related to the square of speed, so at 10 m/s the downforce and drag values will be far higher than the theoretical values. You can see a representation of the downforce and drag at various speeds in the "Downforce" tab at the bottom right of the screen.
 
 
 
# Hide the bottom right editor buttons by clicking the '-' button in bottom right corner
 
# Select the 'Downforce' tab of the default setup
 
# Adjust the 'Test speed' to see how much force you will get with the default wing settings
 
 
 
NOTE: The downforce and drag forces are applied at the locations of the aerodynamic subobjects of the model. In the modeller, in 'subob' mode, these subobjects are shown in blue and have a letter code indicating their subobject type:
 
 
 
<pre>R - rear wing
 
F - front wing
 
U - undertray
 
C - aero centre</pre>
 
 
 
== Simple optimisations ==
 
 
 
Concealed Wheels (in Wheel Object section) - Please use this option if the inside of your wheels is fully concealed (e.g. most road cars). The most obvious difference is that the tyre manufacturer logo will not be drawn on the inside of the wheel. Also the spokes may not be drawn when the wheel is seen from the hidden side. A case where you would <u>not</u> use this option: single seater racing car.
 
 
 
Concealed Driver (in Wheel Object section) - Please use this option if the driver's body is not usually visible. This is the case for most cars (e.g. road cars and single seaters) and can help the frame rate when there are a few cars around. The helmet will be drawn in any case but the driver's body will not be drawn if the viewer is firther away. Some cases where you would <u>not</u> use this option: karts or motorbikes.
 
 
 
== Driver animations ==
 
 
 
In the animation editor you can edit the sit and steer animations. Press A in the vehicle editor to enter the animation editor. Buttons to save and load animations are at the top left. Driver animations are named str_xxx and passenger animations (which have a single frame) are named sit_xxx. The 'xxx' part of the name is up to 7 characters and can be set in the 'Driver' section in the vehicle editor.
 
 
 
To edit a steering animation: (LMB = left mouse button)
 
 
 
# Enter animation editor by pressing A in the vehicle editor
 
# Note the buttons 'show skeleton' and 'show object' at bottom right
 
# Select an individual frame on the timeline at bottom left
 
# Select any bone you want to move or rotate (switch 'show skeleton' on and 'show object' off to make this clearer)
 
# Hold Q/W/E for x/y/z rotation - rotate by dragging left or right with LMB
 
# Hold A/S/D for x/y/z movement - drag with LMB in relevant direction
 
# Check for smooth movement by moving the timeline slider
 
# Click &quot;SAVE as STR&quot; to save the file (in your data\move folder)
 
 
 
NOTE: The steering animation should contain very little head movement and rotation. The game automatically applies head rotation and lean in real time for steering and lateral force.
 
 
 
== Editing dashboard ==
 
 
 
In the dashboard editor you can edit the positions of various parts of the dashboard, or switch some gauges or lights on or off. In the vehicle editor open the &quot;Class / Textures&quot; tab. Beside the word CLOCKS you can click to select the dashboard type. This strange looking name, e.g. &quot;s_clock_formula&quot; is actually a specially named live texture that you can enter in 'page' mode in the modeller, as a texture page either for the main object or a subobject. To edit the selected dashboard, click the EDIT button. It is a good idea to switch off any lights or gauges you don't need.
 
 
 
== Collaboration - More than one person working on a mod ==
 
 
 
There is a feature to help with sharing a complete mod with its development files. Unlike exporting for upload, this function copies png files rather than creating dds textures. It doesn't automatically create a zip. It simply gathers all the files and saves them in a structured share folder ready for copying.
 
 
 
After creating the initial vehicle and working on it a bit, you can click &quot;export to share vehicle for development&quot; at the top right.
 
 
 
That exports veh, engine sound, animations, png in a directory structure in a 'share' folder. So you can zip up those folders inside 'share', send it to your collaborator who will unzip it to 'data' on their computer. Now the exact same mod exists on both computers.
 
 
 
From that point on, if only the collaborator works on it they could do the same to return the updated mod back to you. But if you both continue to work on the project at the same time you will probably manually share updated files.
 
 
 
Two people should usually not work on the actual vehicle editor settings at the same time, as you would need to manually merge the changes. It may be that one person works on the vehicle settings, while another works on the 3D model. The 3D model can be saved out from the modeller and sent to be loaded in on the remote computer. A complete wheel style file can also be saved or loaded - save WHL / load WHL in the wheel object section. Engine can also be saved separately.
 
 
 
There is also a function &quot;export for DV&quot; in the Class/Textures section. This copies all png textures to data\png_export. For example the person working on the 3d model might save the 3D model into data\3dob and do a png export then send those files to the person working on the veh. The veh person would then save the png files into data\png load the model (in the modeller, accessed from the vehicle editor).
 

Revision as of 14:36, 13 December 2021