The online racing simulator
Searching in All forums
(821 results)
tryingtosimrace_69
S3 licensed
Maybe increase number of objects in autocross editor eg things like static vehicles, pit crew, ability to draw custom layouts like in blender
rane_nbg
S3 licensed
Sqlyzy, you can use LFS editor to add parts to the car and paint it. Find a sponsor, then you'll get S3 for free.
Scawen
Developer
Yes, I agree a reduction in the limit shouldn't be done without public discussion and fair warning. And maybe shouldn't be done at all. Maybe 8192 isn't so bad. It's just something I want to think about a bit more.

I'm interested to understand more about the difficulties in creating a good LOD2. I imagine some different approaches, mainly based on either:

1) Reducing a copy of LOD1, or:

2) Building a low polygon model from scratch based on the points and mappings of LOD1.

I don't know if any simple editor tools might help a lot with the process.
bayanofmansorofisky
S3 licensed
Although this is a bug, i didn't find editor bugs report thread. Sorry

The subobject Rotator have an issue with side swap.
I have an indicator stick that is mapped to the indicators signals (-1,0,1)
the vehicle is built as LHD, and the function works properly.
However when subobject set to Full Flip and test swap. the function is wrong in direction
so when u hit indicator Left the stick goes to the right and vise versa.
It works as expected in swap side but it's becomes wrongly placed in a RHD vehicle
versiu
S3 licensed
Quote from gumis0517 :As far as I know, it's not possible to put different engines into configurations, if I overlooked something, I'm sorry

Nope.
Just would be nice to have that feature in editor...
Scawen
Developer
As mentioned in the first post, you don't *have* to do an intermediate LOD. Better have only two LODs than a bad intermediate LOD. Of course, that's not really a finished mod. A finished mod has 3 LODs.

For examples of what I think LOD2 should be, please look at the official LFS cars supplied with the editor. In my opinion they should be somewhere in the region of around 1000 triangles.

It's not a huge task, compared with making a mod. It's just a simple model that will create a good shadow and look reasonable in the middle distance when LFS switches to the lower LOD mesh to save CPU and GPU time, to keep a good frame rate.
LUNDQUIST MOTORSPORT
S3 licensed
Online at :
[MRc] RX
Im working to fix the cars that has bad LOD2 and rims they are moved to "saved" is there somehow i can download the original files from the forum? ( i dont have them in editor folder anymore bcs new pc )
RealistAdam
S3 licensed
Quote from Foch_sho :Hello our dear Scawen. Can we hope for a test patch with physics and graphics this year?(2024). I hope for your answer.

I don't know if this is the place to talk about this topic, but there are a few things I observed. A program that has already been created. Before 7E was released, we were trying 2-3 test patches a day. This means that the developer team is careful not to deviate from the program. I don't want to sound knowing or claim that my thoughts are 100% correct. I'm just throwing out ideas. In my opinion, LFS's update plan will be to update the editor first. In every test patch, something about the editor is already shared. As for the graphics update. The developers know very well that it will not be difficult to add it day and night. I think they're adding something surprising. Like the weather... You may be wondering where I got this from. I've read articles where developers were inspired. There is a lot that can change or be updated before the chart or day and night. Of course, this requires time. Who wouldn't want to race at night....
Scawen
Developer
Thank you, that is on topic, as I am trying to help get mods more optimal.
I'll have a look in the editor tomorrow and see if I can spot any issues.
KingOfIce
S3 licensed
Online at :
www.CESAV.es #Q
Hello Scawen,
I don't know if my concern belongs here but seeing "triangles", "stutter", etc. (otherwise I'd move it!). Yesterday we had a race with this mod (by the way very nice and very pleasant to drive!) : https://www.lfs.net/files/vehmods/2670D3.
I'm having major performance problems with it even though I have a very powerful computer (I don't master LFS Editor so I can't check what could be causing this problem).
In case it's on topic and can be optimized...
Egor K
S3 licensed
Quote from Egor K :...when camera is selected please show eyes coordinates...

In addition to the previous suggestion, also for the sake of unification, I've combined camera control suggestions in one post, and since in general they are needed when creating a vehicle, decided to post them in Mod System Suggestions section. So:
Rotate view by arrows as "RMB + mouse movement" alternative
in LFS free-floating camera (Shuft+U) control: Ctrl + left/right arrow used to roll; Ctrl + up/down arrow used to adjust height, but rotation (yaw and tilt) is only possible with mouse; in LFS Editor in 3D view same as free-floating camera in LFS; in 2D view Ctrl + arrows used to rotate model. It would be handy to unify controls (LFS and LFS Editor: Vehicle Editor and Modeller):

This will allow you to calibrate yaw and pitch separately and precisely, besides, combined with panning (only arrows) all camera manipulations can be performed using buttons.
BTW now in order to isolate rotation axes and increase accuracy of rotation I'm using Mouse Keys from Windows Ease of Access Center.
Display of camera coordinates and angles (both in LFS&LFSE) and store custom views (already available in LFS)
In LFS Editor:

In LFS free-floating camera
This will allow to compare projections from the same point of view and perspective between LFS/LFSE and other 3D editors so that, having received images, you can instantly switch between them and clearly see the difference in shading, etc.;
or, for example, to demonstrate differences between mod versions like I did in this post, but could not accurately match shots from LFS and renders from Blender. Although this can be done using Custom View, but only approximately:
firstly, coordinates are set not from vehicle origin, but from driver's eyes, which makes precise comparison difficult;
secondly, range is a maximum of 2m width, 3m length and 0.6m height in each direction.
Maybe it would be useful set camera background image in LFS Editor 3D view, position and orientation of which can be obtained from camera matching programs such as fSpy.
Also add slider to set Focal Length (for 36 mm sensor size) or Field Of View and buttons with typical lens focal lengths for fast switching.
Scawen
Developer
Editor Patch E5 is now required to export mods for upload.

Changes in Editor E5:

Earlier versions can no longer be used for mod uploads
More updates and fixes for some of the official cars

Download: https://www.lfs.net/forum/thread/106792
26-Jan thru 28-Jan
TheStigUSA
S3 licensed
26-Jan thru 28-Jan
- Work is in progress to establish the interior. For now, reusing LFS assets for seats and steering wheel.
- Dash modeled from scratch in LFS editor.
- A starter dash clocks texture and map is in place. Some edits to do and need to fix mirroring when side switches.
-> Clock textures mapped to individual triangles on the dash.

ivo_drifta
S3 licensed
good choice to pick lfs vanilla car as a first mod. its better to experiment with lfs editor and all functions and stuff. nice sceenshots. keep it up!
Scawen
Developer
A new update for the Editor, Test Patch E4, is available.

The official vehicles needed an update for the new rims and dashboard options. I've been through them all and added features to help in the rim editor and spoke editor.

Most notably, the rim guide now shows a complete minimal rim profile (not only the flange and seat). The "well" or "drop centre" is included, which can help guide you to make a realistic rim profile for your wheels. A well is required on all car wheels so that the tyre can be fitted. If there was no well, it would be impossible to get the tyre bead over the rim flange to mount on the wheel. The well is normally near the outer face of the wheel (the side that you see) but there is an option in the rim editor to move it inward for the case of "reverse mount" wheels, which are less common and require the tyre to be mounted from the back of the wheel. There is an option to move the well to the maximum extent allowed by the standards.

The LFS guide has been constructed to comply with the "J" rim profile that is most commonly used on road cars. It also adapts for bike rims, which have a smaller flange and a less deep, central well.

I have updated all the vehicles supplied in the editor, so you can see the alloy style rim profiles that I have updated to be more realistic than they were before. Compared with steel rims, alloys allow some flexibility in rim design but they must always include the J profile rim flange and well. So if you see any of the rim guide protruding from your wheel, you should probably adjust something.


Changes in Editor E4:

Rim editor:

A complete rim profile cross section is now shown
Options for rim guide well offset and reverse mount
Points are a different colour in surface mode
Protection against adding duplicate or opposite surfaces
FIX: + and - buttons did not instantly update the 3D model

Spoke editor:

A complete 3D rim profile is now shown
Separate show options for spoke / rim / tyre / guide
It is now possible to rename the first mapping in the list
A "rim" button is shown beside the first mapping (used for rim)

Misc:

A new set of vehicles is included with updated dash and wheels
Engine damage and shift light can be enabled in the dash editor

Download:

https://www.lfs.net/forum/thread/106792


Layout Editor [maximum number of objects in the future]
plkrk
S3 licensed
Hi there!
I have a question abut maximum objects in Editor, now we have 3k objects limit, what is the maximum capabilities of LFS in objects number in the future? Sorry if this question was asked before, simply i cannot find the answear.
Egor K
S3 licensed
Aerodynamics > Lift (Downforce)
Quote from Driving Ambition page 76 :Initial targets were a realistic 0.35Cd, CoP almost coincident about the centre of gravity and 160lbs (712N) downforce at 150mph (241km/h).

Quote from Racecar Vol6 No1 page 35 :According to Murray, the McLaren F1 road car produces 500-600lb lift at its road maximum speed, at which it is able to cancel this lift and leave a nett 200lbs downforce.

Here's the tricky part, if stated downforce (200lbs or 890N) is correct for top speed of a serial car 221 mph or 98.8m/s, then by quadratic function at 150mph or 67.1m/s it will be 93lbs or 411N, which is 58% of the Initial target. Uh-hu Perhaps downforce generated by fans reaches maximum already at 150 mph and does not increase further because their speed can be controlled by some program.

Also print-out of tunnel 3/10 scale model run results is used as an illustration on Driving Ambition page 74, this one and above data summarized in table below.



Anyway, I see no reason to assign less downforce than planned, so 0.158 N @ m/s is chosen.
Spoiler - click to revealHave to mention "BB 'Foil" (spoiler), however, LFS currently doesn't simulate active downforce.
Quote from Driving Ambition page 79 :Activated automatically by electronic control sensing heavy breaking, this "BB 'Foil" would deploy at 30-degrees, slightly raising Cd but crucially enhancing base-suction at the tail to generate greater downforce from the diffuser with its CoP in the right place.

How much "greater downforce" exactly? Gordon says twice:
Quote from Gordon Murray :We have an active aerodynamic control system on the car which pops up a flap, which not only doubles downforce on each wheel, but doubles downforce in right proportion front to rear axle, so it helps stabilize the car...


Aerodynamics > Drag
Knowing frontal area=1.79 m^2 and drag coefficient Cd=0.32 (ρ is air density) drag force can be calculated, so for V=67.1m/s (150mph) Fd=1580N.

To find body drag for LFS Editor divide drag force (1580N) by square of speed (V=67.1m/s)^2 = 0.351 N @ m/s.
But using this value LFS Estimated Maximum Speed Calculator (hereinafter — LFS.EMSC) indicates 373 km/h (232 mph), moreover acceleration from 255 to 350 takes 20 sec (16 sec IRL) and from 350 to 370 takes 20 sec again (8 sec IRL).

To match LFS.EMSC and Ehra-Lessien 391 km/h (243 mph) XP5 (experimental prototype number five) record run (not to be confused with official two-way average measured 386.7km/h or 240.3mph) body drag must be 0.304 N @ m/s.
Apart from fact that accelerating from 360 to 370km/h and from 370 to 380km/h takes one sec longer than IRL, even across Layout Square is not enough to reach 390km/h.

So 0.293 N @ m/s (LFS.EMSC 396 km/h) chosen because this body drag ensures acceleration coincides across all control ranges with deviation of less than a second.

Version 3 Aerodynamic changes
reduced Body lift from –0.450 to –0.158 N @ 1 m/s
increased Body drag from 0.270 to 0.293 N @ 1 m/s
reduced Side drag from 0.600 to 0.586 N @ 1 m/s
Other changes in addition to those listed here
gear ratios according to Autocar magazine: second from 2.21 to 2.19 and third from 1.68 to 1.71

final ratio from 2.99 to 3.03 to ensure maximum speed with
standard (7500rpm, 221mph, 356km/h)
"record" (8300rpm, 243mph, 391km/h)

original starter sound from youtu.be/LSUvgTFp5Ts 0.740s (0.742s max)

original gear shift sound from youtu.be/KXihJTDSWb4 0.180s (0.184s max)

second (right) internal mirror disabled (not supported)

Thanks to Rony for helping me stop procrastination with improving the aerodynamicsThumbs up

Thanks to Martin because I had previously speculatively decided original tacho's four-digit readings must be too large to be readable on low resolution screen, but after he asked I tried and realized I was wrong.
Last edited by Egor K, . Reason : "invisible" table reuploaded, listed additional changes
Scawen
Developer
New version of editor allows you to check the number of materials in subobjects: https://www.lfs.net/forum/thread/106792
Scawen
Developer
Editor Test Patch E3 contains fixes and improvements:

Modeller cutout screen:

FIX: Number of materials and material index were wrong for subobjects
- helps when optimising a model for frame rate by texture sharing

Engine editor:

Increased maximum value of "Turbo MOI Multiplier" to 2.0
- allows turbo to spool up slower (more turbo lag)

Rim guide in rim editor and spoke editor:

Decreased the minimum width of car rim flange (was 12mm, now 11mm)
- this is correct for the 'J' rim profile used on modern road cars

https://www.lfs.net/forum/thread/106792
Last edited by Scawen, .
Scawen
Developer
No, changes in the rim editor do not affect the grip.
LUNDQUIST MOTORSPORT
S3 licensed
Online at :
[MRc] RX
Hi, about the rim editor is there just visible changes when moving the points or Does it effect the tyre also? Im making some rims right now but want to make sure it doesnt mess with the grip because of that 😁
Scawen
Developer
Quote from Aleksandr_124rus :Thank you for your time and explanation of how to better optimize the mod, I will definitely do it as soon as I have free time.

No problem, I was just interested, as I saw the frame rate hits, when a lot of cars were on screen, and also seemingly in panning shots with a few cars on screen.

I wondered if there were any problems in LFS so I built a profiler version to see what's up and I spotted a lot of CPU usage in "Draw driver" and "Draw meshes" (that includes subobjects) and "Draw wheels" (includes spoke objects) and also similar issues in the alpha pass. This particular CPU usage is not related in any way to number of polygons. Thousands of polygons may be drawn in a single draw call, which is also the same for one single triangle. LFS does a good job of combining all triangles of a single material, into a single draw call. No matter how many cutouts you use, they will still be combined together if they are using a single material and in a single object.

This heavy CPU usage which is (I think, roughly) double that of an XR turbo led me to look in the model a bit, specially near subobjects and spoke objects. That's where I noticed this use of multiple textures. Also the concealed driver thing which is just one switch to fix.

Quote from Aleksandr_124rus :But I wonder if the problem here is really in the textures or the number of subobjects. Lags during the broadcast occur during the crash of several cars. Is it possible that this is somehow related to the damage model of the high-polygonal mesh or something like that?

When the cars are initially generated (when leaving pits) and when there is a collision, this is when the number of triangles (actually vertices) is a problem. All these vertices and triangles must be created on the CPU and then sent to the graphics card. When damage occurs, the model must be deformed and it is all sent to the graphics card again.

But for a modern graphics card, this number of vertices isn't really a problem regarding drawing the car each frame (when there is no collision). The number of materials is more of a problem, and also subobjects that are not "attachments". Each movable subobject requires a new matrix to be sent to the graphics card and of course a whole batch of draw calls for its materials (which cannot be combined with the main object's materials).

Quote from Aleksandr_124rus :You are right about combining textures in one subobject.
But from this another question arises, what is the best way to optimize the mod? I should not use the same large texture in several subobjects, or make separate small textures for them. So if you use one big texture in two subobjects it double the graphics workload (or something like that) or not cuz it the same texture?

Taking the example of the steering wheel, if those textures are all used only in the steering wheel, then it is a perfect case to make a special texture for that steering wheel. I imagine those 11 (or was it 12) 128x128 textures I talked about, going onto a new texture of 512x512 and you use the 16 squares, leaving a few spare.

It is not a problem to use the same texture in two different subobjects if that is convenient, or for subobjects to share a texture with the main object. But it brings no specific benefit, other than maybe reducing the total size of textures in the whole model. That is more about what texture cutouts you can fit on what pages.

For example, I wouldn't suggest using really massive textures to try to share everything in the whole model. It can be good to use smaller textures, if that is convenient for one (or a few) subobjects. So... don't worry about different subobjects sharing a texture, that is OK, but don't go mad and try to combine everything, which would require extra big textures for no benefit.

However, "attachment" subobjects are a different case, as they don't move, they are combined with the main object. So it's a good idea to share textures with the main object (and/or other attachments) in that case.


I want to help with the materials display in the cutout editor (as described, there is a bug). I am interested to try and add a CPU display in the vehicle editor so you can see the results of your improvements.

EDIT: added image showing materials in my fixed version, that will be more helpful to see the results after you share textures.

EDIT2: added another image showing the combined list of materials, when attachments are combined with main object.
Last edited by Scawen, . Reason : added image
Prefecture XNS
TheStigUSA
S3 licensed
Hi everyone,

I'm embarking on my journey with my first ground-up mod. I made a couple cars in Automation and I really enjoyed playing the export in BeamNG. Now, I'm getting my sea legs with LFS editor (learning fast!) and work has begun on building the mod.

The PREFECTURE XNS has a similar body to the real life, early 90's Honda/Acura NSX.

The XNS however doesn't mimic the powertrains, instead to come offered in at least variants
(This info is subject to change):
  • High-performance 1.5L Inline 4 motorbike engine
  • 2.5L Inline 6 Motorbike engine
  • 3.0L Flatplane V8 (two of the 1.5 I4's combined)
The XNS is a natural-born handler and is sturdy and vibrant in the corners. The V8 variant packs a hearty punch. All engines rev quite high Smile

Licensing:
-> According to the Car Exporter EULA, which I was able to ONLY locate from within Automation game, states 'any graphical and car data assets that are exported from Automation to BeamNG.drive' [which was the pathway I followed] ... 'are licensed under a Creative Commons Attribution-NonCommercial-ShareALike 4.0 International Licence'.

For a copy of the relevant EULA, here it is:



-> There was a licensing error brought to my attention regarding the engine sounds. This error has been corrected, and these mods will be using LFS assets for its engine sounds.

Attribution:
Camshaft Software created the base model. From there, it was modified by me extensively for the use-case of this project. All other materials utilized were either LFS assets, Automation textures, or original creations by me.
Non-Commercial: This is a non-commercial product, and will not be used for any monetary gain or motivation. The purpose of the project is for educative, and entertainment purposes.
Share-Alike: In accordance with the CC BY-NC-SA 4.0 license terms, the same exact license must, and does, apply to this product. Any terms of use regarding this product shall be in accordance with the mentioned license, and is provided with NO WARRANTY, OF ANY KIND, as well as no additional restrictions.
For a direct link to this license, please go here: https://creativecommons.org/licenses/by-nc-sa/4.0/


Details:

Model: The work done by me on the model was very significant
-> dozens of hours finding issues and fixing them, and trying to polish up what I could.
-> I made the popup headlights and the cutout for it from full scratch.
-> Exhaust tip model made from full scratch.
-> Added nice pillar textures
-> Door mirrors:
--> Tried to use the Automation mirror but gave up lol. It was just a very messy model. Redid it from scratch, I think I only kept the mirror face from their model.

Textures: mixture of LFS built-ins, original work, and a few Automation textures. The Automation textures used are for the rear light bar, just took a small snip from the game and worked it into a texture. Took the "P" manufacturer logo and using it as the logo for the brand in LFS.

Driveline: Suspension, engine, setup, from scratch.

Sound: Recorded a micro-snippet (to match what works with LFS' audio engine) of the engine in Automation at 5500RPM. Learned a method on how to EQ the audio, and made a good .ENG for it. The sound is reasonable, not perfect, but it has a throaty chonk to it that, trying to recreate a strong VVL system the Automation engine has. Small engine needs to work hard to pull, so it's gonna make some noise.

-Sub-models:
-> Reused some LFS assets such as gear lever and RB4 steering wheel. RB4 steering wheel modded to have leather face texture, and added a prop onto it.
-> Gauge cluster: created from a scratch along with base backing alpha. Modeling went through a few iterations, major cleanup work unit occurred on it. Figured out how to mirror it.
-->> All clocks are on triangles to allow later individual ability to re-map the cluster lights to other images. Meme variants? Smile
-> Rear lightbar: Taken from Automation model. Heavily cleaned up and organized. Light design changed to be cleaner and easier to see, better to look at.
-> Interior: Modeled from full scratch. Started with the dash using a side img of the Automation dash, from there I just let it flow.
--> Reused XRG-Turbo textures in a several places. Reusing common elements such as leathers and carpets.


All work on the mod is being done by me and any mentioned collaborators. I am recording the process and will put together a timelapse video once the mod is ready for public review.

Considering the licensing provided by Camshaft Software, going along with my transformative work (and the work on its own), and no intent to use this for commercial purposes (just doing it for fun), Automation's content is allowed to be Shared and Adapted.[/indent]

Collaborators:
Biomeri - for being very kind and spending time to share their knowledge with me. Thank you so much dude Cool


==============================
==============================
This section is a running changelog, additions will be added by edit here:

1/21/24:
- First real day of work. Spent lot of time getting the model out of Automation and learning LFS editor more.
- Created and applied a base texture to the exterior of the model. Also did window textures and did plastic pillar texture for around the doors and windshield
- Body allows changing color
- Frame slightly modified but no real work done yet.



22-Jan-24
- Removed leftover mesh (using >1000 triangles) inside the car on the floor and a shelf in the back. Cleaned the whole inside area for the interior later.
- Spent a good amount of time doing granular edits to the model, going around it and trying to remove any triangles that are unneeded or causing issues.
- The portion of the model with the rear lightbar was stuck behind the rear panel it was mounted on.
-> The lightbar was a nasty model.
-> Went through this a lot and removed so many triangles.
-> The lightbar was recessed behind the mesh of the rear of the car. Manually extruded the lightbar back a bit.
-> Created textures from Automation for rear light bar. Came out really nice I think!
- Made rear lightbar it's own subobject. Cleaned this submodel up lots, there were so many unnecessary triangles.
- I cut over ~2500 triangles from the model today. It's looking much tidier now, this is important prep work for the interior and sub objects to be added.

Media from today, see here

24-Jan through 26-Jan
- Extensive work underway on modeling.
-> In general, meticulous cleanup on the model has occurred.
-> Main exterior components finished.
--> Created model for pop up headlight.
--> Created mesh cutouts for pop up headlights.
--> Added mesh cutouts for air entry.
--> Modeled and placed side lights for front and blinker object.
--> Animated Prefecture "P" logo on the rear lightbar to illuminate when ignition on Smile

Work is beginning on the interior and starting from scratch.

Aiming for basic model based on a blueprint I'm using taken from a side image of the dash seen from Automation. More intricate details can be added iteratively later on.

The modeling on the exterior was a lot of time but it shows it was worth it. The model looks quite even to me and many bad triangles have been removed creating a nice and smooth looking model.

Media found here Smile


26-Jan thru 28-Jan
- Work is in progress to establish the interior. For now, reusing LFS assets for seats and steering wheel.
- Dash modeled from scratch in LFS editor.
- A starter dash clocks texture and map is in place. Some edits to do and need to fix mirroring when side switches.
-> Clock textures mapped to individual triangles on the dash.

Media: https://www.lfs.net/forum/post/2076705#post2076705

31-Jan thru 03-Feb
- Large push of work every day in this stretch.
-> Model is DONE enough for now. Following initial release, a work unit will be to significantly cut a large number of triangles out. The model can be greatly simplified for the use-case of LFS.
-> Added in some extra touches like an airbag decal, Prefecture logo on steering wheel.
-> Modified RB4 steering wheel (slightly), changed face texture over to leather, and added Prefecture logo on it.
-> 3rd (omg it really is) redo on the dash.
-> Took FZ5 rim and made some changes, moved to thinner spokes more reminiscent of what the Automation rim looks like.
-> Chased down so many more remaining bad or double triangles. Holy crap this model had so many.
-> Polished the interior up a bit. Need to add some remaining detail items such as vents and a stereo headunit, both can be made as basic models. Might leave this for after initial release.
-> Discovered purpose of the Groups tab Smile -- fixed groups to be logical, they were rather out of whack.
-> I pulled the XFG default engine sound into Audacity, studied it, and got to learning how to make a good sounding custom engine sound. I think I have a formula figured out, I want to keep practicing it and can perhaps write a Wiki post on how to do it. It's not that bad, making sure you match a set length, set some EQ in the right areas, and make it not too loud.
--> Anyway, with all that, I recorded a snip of the engine from Audacity, trial-and-errored my way into learning what to do with it, and the Prefecture now has a unique WAV and a nicely tuned .ENG.
-> Engine and driveline is in place and default setup feels good.

Last thing to do I think is do a basic model wrapper around the steering wheel.
This completes the model for now.

Following that, it's time to copy and paste it all, and make the V8 and V8-T models. Minimal changes to the model other than a couple decal additions, should be simple. Will make custom sounds for these in the same manner.
==============================
==============================

It's been a dream to get this over into LFS finally, and now that I think I'm over much of the learning curve with the editor, I am very excited to dig in here and bring you one heck of a fun mod Smile

Media:



Last edited by TheStigUSA, .
CarlosSainz55
S3 licensed
Idk if this is the right place to report a bug in the lfs editor, if it isn't I apologize, but I found a small bug when making the suspension for a mod

https://streamable.com/rj0h9r
Scawen
Developer
It's a very nice looking mod but I have been wondering what causes the slowdowns when watching on Simbroadcasts. My investigations are not complete. I'm stopping for the day but have some observations. It's not all about the number of triangles.

Incorrect setting "Concealed driver" - this should be YES - absolutely this vehicle has a concealed driver (it's not a motorbike or a kart). This one setting appears to waste around 3% of CPU with 32 on the grid.

By the way, "Wheel visibility" should be "inside covered" though I think this is only for looks now. It's not an open wheel racing car, so this will produce a better lighting effect on the wheels.

Another graphical cost is lack of texture sharing. For example the wheel objects are slower to draw than they could be because the alpha cutouts use 3 different textures. The 3 different transparent textures should share a single texture page, so LFS does not have to waste CPU time instructing D3D to switch between textures (texture switching is slow). If you set this right, then when drawing wheel alpha, instead of 3 texture switches and 3 draw calls, it would do a single texture switch and a single draw call.

There could be similar case in the main object (or other subobjects) but I haven't looked much. I do see an S and a backwards S using the same texture but flipped. Can't you use the same texture but flip the cutout?

Of course "repeating textures" cannot share a texture page. But some other textures can, and this can avoid switching between textures during the render of the car, saving CPU time.

EDIT: (next morning)

You can easily get the spoke object down to one single texture instead of 5 at the moment. How to do that:
1) Combine the 4 256 textures onto a single 512 page, the obvious way.
2) For the "unnamed" (no texture) cutout use a small white square on the new texture page. There is space beside the bolts.

More optimisations:
- If possible, combine the hub object into the spoke object. Every moving subobject is a frame rate hit.
- Change "muffler" subobject into an attachment. "Attachment" subobjects are merged into the main object so they don't cause the same frame rate hits as a moving subobject. The vibrating muffler gimmick isn't worth the frame rate hit.
- Steering wheel subobject can be made way more efficient by combining textures. The 11 small button textures could be combined onto a single texture. The [no texture] page can be eliminated by using a small square from the new texture. And the "plain transparent" texture at the end of the list can also be combined into the same texture page. So this combines 13 textures into a single texture page. Only the two repeating textures need to be left on their own page. 15 textures on the steering wheel now, can be reduced to only 3. Thumbs up

Let's do some maths, for 40 cars on the grid.
For the wheel objects described above, we save 4 texture changes per wheel = 16 per car = 640 per graphical frame.
For the steering wheel optimisation, we save 12 texture changes per car = 480 per graphical frame.

So by these simple changes we save 1120 calls to "Set texture" every graphical frame.

Also don't use "TEA" (Tree Edge Alpha). Tree Edge Alpha is not supported for vehicles, it's a special thing for trees with intersecting polygons that only works for world objects. Applied to a car it looks exactly the same as ALPHA so you are adding one more material for no reason.

[I notice one bug, in cutout mode when a subobject is selected: "materials : X" at the top is showing the number for the main object. I'll fix this in next editor test patch. You really should be aiming to reduce the number of materials so that number would help.]
Last edited by Scawen, .
FGED GREDG RDFGDR GSFDG