I really want to know what the balance is like, and if it'd actually just tear itself apart XD and I have a growing list of future engines we can make ;)
I know how to get an I-7 in real life. Start with a Ford I-8 and remove one push rod to an intake valve, any cylinder. Congrats, you have an inline 7. 😈
It's crazy, this man single handedly stepped up not just games, but the automotive industry. The potential of this is huge... That's why everyone is so invested in it, it's unlocked so many doors for expansion and integration. Good job Ange, take my patreon money 😎😎
it turns out this isn't the first program to do this, but it's the first one since DOS :P and probably is made a whole lot better, with more applications available
> but the automotive industry Hadn't considered that, but it'd be interesting to put this style of program in the dash of electric cars to have the car simulate its own particular engine sounds.
@@TykeMison_ Really? Here I was, thinking they did everything as back of a napkin calculations with only a single Curta manual calculator shared across each continent.
@@TykeMison_ Closed source condenses innovation to the source holders only, not to the public. If the company goes under, where does this useful/innovative software go? The software that costs as much as a house is, in all likely hood, closed source. This software however, is not... Game changer. So no, the industry has not being open sourcing cool software/innovations. They buy them out and keep them in house.
IT'S TIME TO FRICKING DO A FLAT 12 Man, Ange is a beast and I'm happy two beasts got to meet. And I'm so happy you showed us the whole process of coding it, it's sooooo useful
haha I knew what kind of video I wanted to make with him the moment I saw his video. I didn't expect it to such a long video, but I enjoyed every moment of making it!!
it seems they have, it's unclear if much will change, because it works in a very unique way. I'm guessing the next wave of stuff will start to have something like this (as long as we can move away from freaking fmod!!)
@@fillman86 Honestly I'm really hoping we get something like this in BeamNG, the engine sounds in that game are already pretty good but getting actual realistic engine noise out of ultra-realistic cars would be so amazing to see.
Inline 7 is clearly impractical from a space perspective, however, this can be solved with an EVEN MORE cursed V7 engine! Welcome to true engineering hell!
it often was used for space reasons. Diesel engine bays that were made for straight 6 cylinder engines (very common) but the bay has a little more room, so they'd chuck another cylinder on there (usually with modular engines)
Been trying to set up a V4 engine by modifying a copy of the default V-Twin... I did get it to run (after realizing I was trying to implement the firing order sideways) without going into any sort of tutorials or documentation, though it's only making a few HP when it should be making 60 (VF500C). Still cool that it was possible to add completely new parts in a matter of a few hours, and I'll definitely keep playing with this.
An offset between the cylinder and crankshaft is acually a thing. It is used to keep the connecting rod angle small during the early power stroke when cylinder pressure is the highest. It also increases the angle in the intake stroke, but since the pressures are much lower it is not a big problem.
I think it's interesting that the last Automation Dev Update did not have any engine tests and Ange also says that it can be a part of a game. Is there an audio update in the works? I hope so! Great video, and fantastic collab!
@@samuelrudy1776 it's not free to use, and as simple as just chucking files into a folder when you want to mod. There's also many usage rights you have to keep in mind etc
I think the engine in the gr yaris uses an offset crank. it allows the piston to push on the crank in a more direct way during the expansion phase, and allows the compression phase to be shorter.
Great video... and awesome development. You mentioned offset crankshafts.. and they are used. Toyota has used them. The do it to reduce side loading of the cylinder walls on the power stroke... If you move the crank a little to the side.. the piston is pushing a bit more straight down.
You said in your video firing order should be spaced out like a radial, so if the firing order is 1 2 3 4 5 6 7 the crank pins go 0/7 2/7 4/7 6/7 1/7 3/7 5/7ths of a rotation so for every space the camshaft moves, the crankshaft goes two. So for an inline 3 with firing order 1 2 3 the crankshaft would go 1 3 2 spaces or 0/3, 2/3, 1/3 of a rotation i guess i should be giving this info to AngeTheGreat because he's going to use it the most Also if you don't understand just say so, ill try and make a better explanation
I think I really need a 3D representation, so I might go make something to visualise this. Thanks for explaining, I think you have made it a little easier to understand
1:19:08 The problem with that cursed stroke is that the Rod Ratio is completely wrong. Lol. You fixed it here 1:20:58 We need someone to code a GUI that spits out the engine file to run on the sim.
1:21:07 I remember seeing an engine with the crankshaft being off center, but I don't remember now which one. The idea is that the conrod stays as straight as possible during the power stroke, when there's the highest stress.
20:23 So what I'm getting is: IF you were to take an engine cycle as 360° rather than 720° (while also messing with intake/exhaust valve timings) you could TECHNICALLY make a two stroke engine in this
@@fillman86 ALSO one more thing The engine you guys discussed at 1:09:00 would basically just be a very long 1 cylinder engine, and one that would need a big ass flywheel to get enough inertia for the compression stroke lmao
that's totally the plan :D they've said they'll have a look into making power graphs that have numbers, so I should be able to transcribe over a power graph too :)
@@fillman86 the code in the Audi engine that he used as an example has some lines of code altered. Some of the code was changed to reflect the corrections made in the video whilst others seem completely brand new.
Now we just need the next version to show these configs in an engine block attached to a car with the physics engine engaged. That way we can watch people's engine designs turn cars into that whole dryer-with-a-brick-in-it thing.
@@fillman86 yeah, well all units that could be either imperial or metric are metric within SI. Weird how people just say metric when it’s actually just a part of the SI system. Like mentioning kg while talking about imperial vs metric when it’s actually a different part of the system.
Converting things like mass, intertia, pressure, specific gravity, volume, density, etc is always tricky because of weight vs mass. I.e. lbs/in^3 vs g/mm^3. It's something I run into as an engineer dealing with fluids and sometimes I convert it all to metric and then convert to imperial at the end, so I'm not trying to track the use of lbs mass and lbs force throughout.
this was suuuuper interesting and I learned a lot. I'm trying to recreate the inline 3 engine from a Smart Roadster lol. still struggling but I think I'm getting the hang of it. I never coded in this language before so I'm learning about two new things at once: coding and engines xD
well as a german with absolutley no coding experience i a sadly had to quit quite early. i just bit off more than i can chew with a V16. But judging by the comments a lot ofy guys got it running. have fun making engines guys.
This is such a jump in audio simulation for engines...I'm surprised no one has this type of in-depth simulation in the past. I hope you are patenting this because I could see this becoming a basic part of future motorsport games....
haha I am surprised that people are liking it so much, because it comes across so much as a tutorial. Which is about information, not being liked haha We did get along though, and immediately after the recording, talked about doing more videos together in the future
I'm guessing I'm way late for the party, but one key factor that engine designers have to take into account (afaik) when it comes to firing orders is how long it has been since any cylinders neighbouring has been fired due to thermal stress and heat dissipation in the block and head. For i4s and lower I don't think it's possible to separate each fired cylinder with another one that wasn't fired just before it with. It should be feasible with the inline 5 engine I think, but I assume Audi and Volvo (not BMW) didn't because of balancing reasons. But from inline 6 and onwards, there are plenty of ways to arrange the firing order, but if heat is an issue you're concerned with as well, "firing down the range" at least is not the way. I know the engine sim doesn't take balance or heat into account and that I shouldn't either, but eh... I kind of want to, even though it makes the setup of the crank, cam, and ignition a lot more difficult while working on it and finding all my mistakes. Also, I don't think using one cycle (two times one rotation, or all four strokes) as a base measure of angle is as big of an issue as Ange claimed when setting up the fractions of the timings. But I don't remember what my workaround for the crank vs the cam and ignition was when it came to getting it right. In the end, I've sort of set the crank angle first, and then worked out the cam and ignition angles from there. Trying to separate each power stroke evenly.
@@fillman86 Sorry for rambling. It's way too late for me to keep it short and to the point, and I kind of thought I was talking only to the void of the interwebs by now.
To anyone with an interest and/or knowledge in both programming and engines I can only recommend playing around with this thing. It's an insane amount of fun though at times frustrating, it takes a bit to figure out the quirks and how to debug an actual engine that won't run how you want it to. I just added VTEC to an inline 3 engine and now it makes 260HP and revs to 9k lol.
@@fillman86 it would be a bit too long to explain in detail in a comment but there is an example Honda VTEC engine somewhere in the engines folder, you can pretty much copy the cylinder head and camshaft from that code, and then modify the camshaft to fit your specific cylinder count and firing order.
probably not like this, but instead a firing order blip based upon the rpm (not what some sims do, and I don't know why), which is fine and perfect for a lot of vehicle sims :) but this offers opportunities of realistic power delivery too :)
Loved the tool! Might give it a shot later! Also, try hitting Shift + S on LFS, you can alter several parameters similar to convolution and the HF/LF filters on Ange's Sim. I guess every car gamer enthusiast wishes this kinda freedom for tuning and creating engines and later hitting the track with it!
Offset crankshafts are a thing, hard to balance the oscillations but they have benefits because the cycles work different and the phases have slightly different timings, and also the angles are not in 90 degree increments anymore. But they do create more torque because the main benefit of offset is that the cylinder has less friction on the wall. Thats where they get more power from. Modern 3 cylinder engines use offset, some cars and motorcycles.
@@martin-vv9lf Offset engines, how it was explained to me, have inbuilt instabilities and vibrations that then need to be balanced with different counterweights. Actually not sure if someone has done that. I also think the boxer is a special case, and when you try offset the cylinderbanks themselves have to be offset, and in a mirrored fashion. So if 1 bank is offset by 2cms higher than the crankshaft, the other bank would be 2 cms lower which would be a total of 4 cm offset of the banks themselves. In turn what that would do is reduce one of the benefits of the boxer, the jerk or torque in the rotating direction of the crankshaft would go up if there are no appropiate counterweights which would make the crankshaft a bit bigger of longer to get more weight in there. But it would be a curious experiment nontheless. I am not good at writing script stuff, otherwise I would have tried doing that. Just seeing the possibilities of the simulator gives me ideas. But maybe in the future when the 3D simulator is done, I can just drag the cylinders into its positions so it becomes easier rather than having to type and calculate all the degrees without visualization.
@@YouCountSheep it was idle specualtion. i'm not sure if it would work. there may be other approaches like build two mirrored engines with offset crankshafts geared together so that they turn in opposite directions. the dragsters do that occasionally. i have a hunch that with enough cylinders it would balance out, like how the straight six and straight eight do.
well there has been contact with the automation devs, I don't know if there's actually going to be anything there, as it turns out a bunch of companies are just "reaching out." And I had to look up this SLRR and I doubt it, the game looks like a kids toy, which doesn't fit the other 2 games at all :/
@@fillman86 that's good news, I hope something good come out. SLRR it's an old game, but essentially what it allows is to assemble your own engine piece by piece
SLRR was a great!! Being able to use different heads, pistons, cranks and rods to change power curves... adjustable cam timing on all cams, ignition timing and fuel control!
I think the infinity variable compression ratio had an offset crankshaft due to the variable compression mechanism. Speaking of which, is that a possibility in this engine engine?
Pushing the crank to the left so that when the piston is pressing down it's angle is less severe boosts the torque of the engine, at the expense of a smooth exhaust/compression stroke. A bunch of bike engines do this, and I thought some engines like the Honda D series and the chevy LS did this..... but I can't find any reference so I'm probably wrong.
this theory may work if you change nothing else, and you're in a vacuum, but by that regard, all new german cars should be getting 2mpg with how hefty their cars are XD
@@fillman86 It has the same effect as having offset piston pins, where you can mess with the piston's behavior near TDC. Most engines use a slightly offset piston pin to reduce piston rock and thus wear and noise especially on a cold engine with large clearances. The dwell time at TDC also changes with pin offset. Nissan's variable compression engine also uses an offset crankshaft to the same effect.
Wish it could've been a more common engine. Trying to dumb my way around making a Lycoming o-540, using a Porsche flat six as the baseline. Seems like, once you have the firing order, everything else becomes defined by it. Except for say sizes and weights.
Yes, there were offset crankshafts. They were in H-pattern aviation engines. But that setup went away and people turned to more sane V and W setups. The H-engines were made to have a smaller forward cross-section. Something desirable in aviation, not so much in land and sea designs.
Man you're missing out, a lot of people want tutorials on how to make engines in applications and you have it just put it in the title and add something like (Engine Code tutorial) or something
I have to bribe someone to make ... whatever the hell it was powering the Mercedes W125. That car is my kink, I want to see if this thing can handle it haha. What a great program.
I'll add another engine with an offset crankshaft, the Toyota 1NZ from the Echo, Yaris, xB, NHWxx Prius, Etc. As someone else said it is so that the power stroke has the rod at less of an angle for less side force on the piston and less friction. The offset shown in the video is to the wrong side, the rod was straighter in compression than in expansion/power.
I don't think I've ever heard anyone say that a bike sounds like a jet engine... but they did tell me after the recording that any combustion engine (including jets) were possible
yuhhh ange go brrr bmw doesnt have 5 cylinders afaik also i like william mosers stuff, i actually have permission to use his sounds in my games if i get it to work lol
yeah, it's an audi 5 cyl, there might have been confusion with the bmw 6 cyl that's also available in the base files. I'd never heard of him before, but his content looks awesome! Implementing it into beamng wouldn't be too hard, as long as you could get steady sounds from steady rpm increments :)
@@fillman86 i actually did that once for a game i made ages years ago in scratch, there is some parts where you can get a steady rpm fairly easily and it doesn't sound half bad hmu if you wanna test it out
so what controls the Liters or CC. I've been trying to edit an engine for hours and can't figure out how to change it to a 5L engine instead of a 2.5 or whatever it is now.
there is, but it's nothing like this. Almost all the power of an NA engine is gained through the cylinder head irl, and I really want to explore that more
That’s also not how firing orders work at all… the pulses have to balance eachother out or the engine will tear itself apart. In the firing order 1234567, fhe engine will rock from front to back horribly.
@@fillman86 if he could manage to model the engine in 3D and simulate the vibration and knocking physics I would be extremely impressed, it would be very cool to see a 3D engine tear itself apart. I have never seen a 3D engine have a breaking feature, most of the time they just make a boom sound and don’t work anymore. It would be extremely cool to see a piston fo through the side of a block in 3D and have cracks in the engine or pieces blown out
Imagine refining this tool and selling it to a triple-A driving game title or developer. something like Forza or Gran Turismo? With enough refinement there no one would be able to complain about inaccurate engine sounds again.
I think he's got some stuff in mind, but with Ange's hard core simulation approach, he probably wouldn't choose arcade or simcade games like those. What's more likely is him taking offers by loads of companies to create/implement solutions into their existing games/game engines :) in the mean time, I believe he's working on just making a playable version of the engine simulator for sale :)
this is a great video, however i feel like the skippable part is not actually a part that should be skipped, it tells you what the whole flow sample thing means.
If the video was any wider, we'd be looking at a fuckin line of pixels. Btw, this was not the garbage youtube algorithm pushing Ange's video, it was the content. This was also shared a lot because it is an amazing tool he made. And since it was shared and the views wen't up quickly, youtube recommended it to people as well.
this video was doing poorly until ange shared it, which was really nice of him. If you can't see because of the aspect ratio, it may because you're watching from a phone, or not in theatre mode
@@fillman86 I was watching on a computer screen. I was also exaggerating on purpose because the format is horrible. It even caused Ange's coding (the main part of the video) to be only half the size of my screen even though it had the same ratio as it. I was not speaking about your video when I mentioned the algorithm, I was speaking about Ange's original video. It gained traction because of the good content and was later assisted by the algorithm because it was already very well received and viewed.
@@Cyan37 you can have great content and not get views, because of the algorithm, for instance "countreefus", sure it's just wiki articles, but really enjoyable, and is of the quality of at least a few 100k subs level
Renault TCe engines have an offset crankshaft supposedly for better torque output and balance. No idea of the actual technical reason for this but heh !
I wish I could go back in the late 1980s and develop a 2-seater sports car with a high-revving inline 7 that produces 400 horsepower and a 9300 rpm redline that will be in production in 1996.
I can't get it to work on my Windows 8.1 system. It threw out a vulkan.dll missing error, so I installed the dll and then it threw out a different error "The Application Was Unable To Start Correctly (0xc000007b)" which I still haven't been able to fix. Unable to upgrade to newer Windows because the laptop is too shit
I like where your head's at ;) but you may be thinking of S.I. where it's accepted, but not the main unit. Metric on the other hand uses both, but to what degree (pun intended) is dependant on where you're from
but hear me out: they implement this software into the ECM (or whatever the equivalent is in electric vehicles) so that you can make the car sound like whatever you want. that would be AMAZING.
@@fillman86 oh wow, people have already made turbos for this? I made the comment as a joke but that's just impressive. Also, i don't think it would be possible to twin or tri turbo a i7 without some really whacky exhaust headers, it just wouldn't work or make sense i think.
Thanks for having me! I think we're ready to take over the auto industry with the offset cylinder inline-7
haha yes for sure 😄
next engine from nissan must be a rb inline 7
I really want to know what the balance is like, and if it'd actually just tear itself apart XD
and I have a growing list of future engines we can make ;)
that'd be cool, but I don't think they've done an inline 6 in a while now :( they're such party poopers!!!
@@fillman86 yeah 'vibration', play, imbalance simulation would be cool
just to see the engine rock back and fourth while running
Now we just need motorcycle engines in here.
Its like getting a straight 6, theoretically the ideal engine with perfect primary and secondary balance and saying "right, let's fuck it up"
oh man, I showed that engine no mercy haha
I know how to get an I-7 in real life. Start with a Ford I-8 and remove one push rod to an intake valve, any cylinder. Congrats, you have an inline 7. 😈
It's crazy, this man single handedly stepped up not just games, but the automotive industry. The potential of this is huge... That's why everyone is so invested in it, it's unlocked so many doors for expansion and integration. Good job Ange, take my patreon money 😎😎
it turns out this isn't the first program to do this, but it's the first one since DOS :P and probably is made a whole lot better, with more applications available
> but the automotive industry
Hadn't considered that, but it'd be interesting to put this style of program in the dash of electric cars to have the car simulate its own particular engine sounds.
@@MrMartinSchou XD interesting approach :P
@@TykeMison_ Really? Here I was, thinking they did everything as back of a napkin calculations with only a single Curta manual calculator shared across each continent.
@@TykeMison_ Closed source condenses innovation to the source holders only, not to the public. If the company goes under, where does this useful/innovative software go? The software that costs as much as a house is, in all likely hood, closed source. This software however, is not... Game changer.
So no, the industry has not being open sourcing cool software/innovations. They buy them out and keep them in house.
IT'S TIME TO FRICKING DO A FLAT 12
Man, Ange is a beast and I'm happy two beasts got to meet. And I'm so happy you showed us the whole process of coding it, it's sooooo useful
haha I knew what kind of video I wanted to make with him the moment I saw his video. I didn't expect it to such a long video, but I enjoyed every moment of making it!!
wait u the guy that made the ferrari 312t?
@@that_kaii haha yes, and I've made many f1 cars too :)
as someone who watched this video particularly to make a flat(10). i find this comment agreeable
I can't believe a thing a guy threw together for fun ended up being a wet dream for us car guys.
ikr brilliant!
its one of the best ways stuff happens i think.
Finally! The automation sounds have been so far behind everything else lately.. Very exciting!
well this software isn't quite there yet, as automation has things like turbos, mufflers, and simulates intake sound too
@@fillman86 True hopefully it gets picked up and sees more development. It’s still pretty fun to mess with even now.
I saw someone talking about a turbo mod for this simulator. I don’t know anything more about it doe
@@HPsawus I saw someone made a video showing a turbo'd engine too
Just don't forget the exhausts in the audio generation XD
Ange is in great demand after his video. Automation devs also got in contact with him almost a day after its release
yeah, I was surprised that he immediately responded to me contacting him for help
Ange just changed the gaming industry and i wouldn't be super surprised if the automation devs and Beam devs already contacted him lol
it seems they have, it's unclear if much will change, because it works in a very unique way. I'm guessing the next wave of stuff will start to have something like this (as long as we can move away from freaking fmod!!)
Well, make a V6 with an extra inline cylinder ...
@@fillman86 Honestly I'm really hoping we get something like this in BeamNG, the engine sounds in that game are already pretty good but getting actual realistic engine noise out of ultra-realistic cars would be so amazing to see.
Inline 7 is clearly impractical from a space perspective, however, this can be solved with an EVEN MORE cursed V7 engine! Welcome to true engineering hell!
it often was used for space reasons. Diesel engine bays that were made for straight 6 cylinder engines (very common) but the bay has a little more room, so they'd chuck another cylinder on there (usually with modular engines)
Maybe VR7 doesn't sounds that bad
@@fillman86 I think that happened exactly once with a combine harvester, unless it happened with any marine diesel engines I don't know about.
@@GoldenGrenadier exactly, it was the AGCO SISU 98 CTA SCR
V14 is where it's at.
Been trying to set up a V4 engine by modifying a copy of the default V-Twin... I did get it to run (after realizing I was trying to implement the firing order sideways) without going into any sort of tutorials or documentation, though it's only making a few HP when it should be making 60 (VF500C). Still cool that it was possible to add completely new parts in a matter of a few hours, and I'll definitely keep playing with this.
oh yeah man, there's so many parameters to play with. In fact, a daunting amount haha keep fiddling, because that's where the fun is :)
An offset between the cylinder and crankshaft is acually a thing. It is used to keep the connecting rod angle small during the early power stroke when cylinder pressure is the highest. It also increases the angle in the intake stroke, but since the pressures are much lower it is not a big problem.
yep XD many people have listed companies that do just that :P
I think it's interesting that the last Automation Dev Update did not have any engine tests and Ange also says that it can be a part of a game. Is there an audio update in the works? I hope so!
Great video, and fantastic collab!
hmmm I don't know if this'll be implemented into automation, but he did tell me that many companies have contacted him already, so maybe?
@@fillman86 what’s wrong with fmod
@@samuelrudy1776 it's not free to use, and as simple as just chucking files into a folder when you want to mod. There's also many usage rights you have to keep in mind etc
I think the engine in the gr yaris uses an offset crank. it allows the piston to push on the crank in a more direct way during the expansion phase, and allows the compression phase to be shorter.
yeah, it seems a lot of companies have implemented this
I think the 2.7 GM 4 cylinder turbo does this too
Great video... and awesome development.
You mentioned offset crankshafts.. and they are used. Toyota has used them. The do it to reduce side loading of the cylinder walls on the power stroke... If you move the crank a little to the side.. the piston is pushing a bit more straight down.
haha it turns out quite a few manufacturers do it :)
You said in your video firing order should be spaced out like a radial, so if the firing order is 1 2 3 4 5 6 7 the crank pins go 0/7 2/7 4/7 6/7 1/7 3/7 5/7ths of a rotation so for every space the camshaft moves, the crankshaft goes two.
So for an inline 3 with firing order 1 2 3 the crankshaft would go 1 3 2 spaces or 0/3, 2/3, 1/3 of a rotation
i guess i should be giving this info to AngeTheGreat because he's going to use it the most
Also if you don't understand just say so, ill try and make a better explanation
I think I really need a 3D representation, so I might go make something to visualise this. Thanks for explaining, I think you have made it a little easier to understand
1:19:08 The problem with that cursed stroke is that the Rod Ratio is completely wrong. Lol.
You fixed it here 1:20:58
We need someone to code a GUI that spits out the engine file to run on the sim.
There are people working on that. They are in his discord, and it's called enginette
I was gonna try this. Havent had the time, nice to see that some one did it.
yeah man, this is such a cool program!
Great video! Really helps understand how everything works and what everything does.
thanks, I didn't want to have a "do this, then this" kind of thing, I wanted it to be talked though :)
something that truly rhymes with orange! a great milestone in human development
errr.......
silly configs was by far the best part of the video, straight up GLORIOUS
haha I love programs that let you do what you want, and then seeing the program show you the results, good or bad!!
@@fillman86 or even the program just imploding as a result is great too XD
@@Ferrari255GTO agreed
I just love that this can make such cursed things. I now want to see a twin row radial that fires all of one row on one revolution then the other.
haha that'd be great!
Now can we appreciate the amazing Inline 7 engine.. let's forget about the Inline 6 now..
yeah, the i6 is so last week!
Hi fill
@@fillman86 bruh, you're still talking about V12's? that's cringe man get to the V14's
@@Ferrari255GTO It's been my dream to have a v14 for a project car lol
@@Lil_Pac-MackYT1 oof. Good luck my guy, you're gonna need it
1:21:07 I remember seeing an engine with the crankshaft being off center, but I don't remember now which one. The idea is that the conrod stays as straight as possible during the power stroke, when there's the highest stress.
Kind of like how the audi/volvo 5 cylinders have a simmilar sounding V10 noise, this I7 also resembles the I5 sound quite well
possibly, but they aren't exactly a 1:1
20:23 So what I'm getting is:
IF you were to take an engine cycle as 360° rather than 720° (while also messing with intake/exhaust valve timings) you could TECHNICALLY make a two stroke engine in this
you'd have to somehow change the position of the exhaust port... which I don't know how to do
@@fillman86 ALSO one more thing
The engine you guys discussed at 1:09:00 would basically just be a very long 1 cylinder engine, and one that would need a big ass flywheel to get enough inertia for the compression stroke lmao
Could maybe be a fun idea for a series where you design car in automation and then design some outlandish engine for it in the engine sim lol
that's totally the plan :D they've said they'll have a look into making power graphs that have numbers, so I should be able to transcribe over a power graph too :)
This Engine Sim is amazing !
ikr, I love it!!
Wow its been a week and this tutorial’s already out of date, this guy works fast!
by how much? I saw that you can now hit enter instead of re-launching, but is there more?
@@fillman86 the code in the Audi engine that he used as an example has some lines of code altered. Some of the code was changed to reflect the corrections made in the video whilst others seem completely brand new.
Now we just need the next version to show these configs in an engine block attached to a car with the physics engine engaged. That way we can watch people's engine designs turn cars into that whole dryer-with-a-brick-in-it thing.
This highlights the superiority of SI measurements. Metric ftw!
those are very similar, but not exactly the same ;)
@@fillman86 yeah, well all units that could be either imperial or metric are metric within SI. Weird how people just say metric when it’s actually just a part of the SI system. Like mentioning kg while talking about imperial vs metric when it’s actually a different part of the system.
Procedural car sounds its what car games need
this really is the next step for cars, and with generated misfires sound like my dreams!!!
Converting things like mass, intertia, pressure, specific gravity, volume, density, etc is always tricky because of weight vs mass. I.e. lbs/in^3 vs g/mm^3. It's something I run into as an engineer dealing with fluids and sometimes I convert it all to metric and then convert to imperial at the end, so I'm not trying to track the use of lbs mass and lbs force throughout.
Oooh glad you did a vid on this software ! (:
yep, and there will me more :D
this was suuuuper interesting and I learned a lot. I'm trying to recreate the inline 3 engine from a Smart Roadster lol. still struggling but I think I'm getting the hang of it. I never coded in this language before so I'm learning about two new things at once: coding and engines xD
well as a german with absolutley no coding experience i a sadly had to quit quite early. i just bit off more than i can chew with a V16. But judging by the comments a lot ofy guys got it running. have fun making engines guys.
oh man this game is quite hard to visualise, so it's understandable
This is such a jump in audio simulation for engines...I'm surprised no one has this type of in-depth simulation in the past. I hope you are patenting this because I could see this becoming a basic part of future motorsport games....
not just audio, but power delivery being coded as "add speed now" :P
They do sometimes offset cranks. It can give a better rod angle during power stroke.
Best. Collab. Ever.
agreed
haha I am surprised that people are liking it so much, because it comes across so much as a tutorial. Which is about information, not being liked haha
We did get along though, and immediately after the recording, talked about doing more videos together in the future
@@fillman86 Awesome! I'll be looking forward to it
internal stresses= yes
piston side load= all of it.
haha it's all there, just needs to be utilised by the game
I'm guessing I'm way late for the party, but one key factor that engine designers have to take into account (afaik) when it comes to firing orders is how long it has been since any cylinders neighbouring has been fired due to thermal stress and heat dissipation in the block and head. For i4s and lower I don't think it's possible to separate each fired cylinder with another one that wasn't fired just before it with. It should be feasible with the inline 5 engine I think, but I assume Audi and Volvo (not BMW) didn't because of balancing reasons. But from inline 6 and onwards, there are plenty of ways to arrange the firing order, but if heat is an issue you're concerned with as well, "firing down the range" at least is not the way.
I know the engine sim doesn't take balance or heat into account and that I shouldn't either, but eh... I kind of want to, even though it makes the setup of the crank, cam, and ignition a lot more difficult while working on it and finding all my mistakes.
Also, I don't think using one cycle (two times one rotation, or all four strokes) as a base measure of angle is as big of an issue as Ange claimed when setting up the fractions of the timings. But I don't remember what my workaround for the crank vs the cam and ignition was when it came to getting it right. In the end, I've sort of set the crank angle first, and then worked out the cam and ignition angles from there. Trying to separate each power stroke evenly.
thanks for the info, even if I am dyslexic, and that was a slog XD
@@fillman86 Sorry for rambling. It's way too late for me to keep it short and to the point, and I kind of thought I was talking only to the void of the interwebs by now.
@@jonsen2k haha I try to read and respond to every comment :)
To anyone with an interest and/or knowledge in both programming and engines I can only recommend playing around with this thing. It's an insane amount of fun though at times frustrating, it takes a bit to figure out the quirks and how to debug an actual engine that won't run how you want it to. I just added VTEC to an inline 3 engine and now it makes 260HP and revs to 9k lol.
That’s cool, I wish I knew how to mod things like vtec in
@@fillman86 it would be a bit too long to explain in detail in a comment but there is an example Honda VTEC engine somewhere in the engines folder, you can pretty much copy the cylinder head and camshaft from that code, and then modify the camshaft to fit your specific cylinder count and firing order.
Live For Speed, I believe generates engine sounds in a similar way. Worth a look! This Sim is from 2001 iirc, best feeling Sim imo
probably not like this, but instead a firing order blip based upon the rpm (not what some sims do, and I don't know why), which is fine and perfect for a lot of vehicle sims :) but this offers opportunities of realistic power delivery too :)
Loved the tool! Might give it a shot later! Also, try hitting Shift + S on LFS, you can alter several parameters similar to convolution and the HF/LF filters on Ange's Sim. I guess every car gamer enthusiast wishes this kinda freedom for tuning and creating engines and later hitting the track with it!
This is the engine building manual from the man himself!
yeah, there was a few things left out, so maybe I'll make a follow up with his help :)
Offset crankshafts are a thing, hard to balance the oscillations but they have benefits because the cycles work different and the phases have slightly different timings, and also the angles are not in 90 degree increments anymore. But they do create more torque because the main benefit of offset is that the cylinder has less friction on the wall. Thats where they get more power from.
Modern 3 cylinder engines use offset, some cars and motorcycles.
do you think an offset crank in a boxer would balance, because each engine block would have the offset in opposite directions.
@@martin-vv9lf Offset engines, how it was explained to me, have inbuilt instabilities and vibrations that then need to be balanced with different counterweights. Actually not sure if someone has done that. I also think the boxer is a special case, and when you try offset the cylinderbanks themselves have to be offset, and in a mirrored fashion. So if 1 bank is offset by 2cms higher than the crankshaft, the other bank would be 2 cms lower which would be a total of 4 cm offset of the banks themselves. In turn what that would do is reduce one of the benefits of the boxer, the jerk or torque in the rotating direction of the crankshaft would go up if there are no appropiate counterweights which would make the crankshaft a bit bigger of longer to get more weight in there. But it would be a curious experiment nontheless.
I am not good at writing script stuff, otherwise I would have tried doing that. Just seeing the possibilities of the simulator gives me ideas.
But maybe in the future when the 3D simulator is done, I can just drag the cylinders into its positions so it becomes easier rather than having to type and calculate all the degrees without visualization.
@@YouCountSheep it was idle specualtion. i'm not sure if it would work. there may be other approaches like build two mirrored engines with offset crankshafts geared together so that they turn in opposite directions. the dragsters do that occasionally. i have a hunch that with enough cylinders it would balance out, like how the straight six and straight eight do.
@@martin-vv9lfyeah I was also thinking an 8 cylinder, 4 per side.
The coding reminds me of the Expression tool in gmod, from the Expressions donated to me for engine making
then give it a go bro, it's a super fun program :)
@@fillman86 i cant code tho, thats why the spaghetti was donated to me 😅
I hope one day a blend of Automation, SLRR and this game will eventually come out
well there has been contact with the automation devs, I don't know if there's actually going to be anything there, as it turns out a bunch of companies are just "reaching out." And I had to look up this SLRR and I doubt it, the game looks like a kids toy, which doesn't fit the other 2 games at all :/
@@fillman86 that's good news, I hope something good come out. SLRR it's an old game, but essentially what it allows is to assemble your own engine piece by piece
SLRR was a great!! Being able to use different heads, pistons, cranks and rods to change power curves... adjustable cam timing on all cams, ignition timing and fuel control!
I think the infinity variable compression ratio had an offset crankshaft due to the variable compression mechanism. Speaking of which, is that a possibility in this engine engine?
it could be possible one day, but I doubt it's on the list. People are modding this program though, so.... consider learning to mod it?
So interesting how the I7 sounds very much like the famous V14 configuration.
well that makes logical sense, though I'd never heard of a v14 before
Pushing the crank to the left so that when the piston is pressing down it's angle is less severe boosts the torque of the engine, at the expense of a smooth exhaust/compression stroke.
A bunch of bike engines do this, and I thought some engines like the Honda D series and the chevy LS did this..... but I can't find any reference so I'm probably wrong.
I've seen many comments by people talking about how many companies actually do this, so I believe you bro ;)
if you double the load on the truck you’ll cut it’s range in half (in theory). it’s a shame the ford is useless as a truck but it adds up
this theory may work if you change nothing else, and you're in a vacuum, but by that regard, all new german cars should be getting 2mpg with how hefty their cars are XD
There have definitely been engines with offset crankshafts. The Hyundai Nu engine was one of them.
that's odd, I wouldn't have thought it would have been in a car, is there a good reason for that?
@@fillman86 It has the same effect as having offset piston pins, where you can mess with the piston's behavior near TDC. Most engines use a slightly offset piston pin to reduce piston rock and thus wear and noise especially on a cold engine with large clearances. The dwell time at TDC also changes with pin offset. Nissan's variable compression engine also uses an offset crankshaft to the same effect.
@@azxuts783 wow, that's really interesting, and warrants further investigation
The Honda Jazz uses an engine with offset crankshaft and many monocylindric bikes, especially those produced by Yamaha.
Newer Subaru engines use it too
Tilt this 45° and it's an exotic engine.
lol wot?
@@fillman86 o forget which brand, but there was at least one car with an engine that was tilted.
@@jwalster9412 there's a lot that did that
Wish it could've been a more common engine. Trying to dumb my way around making a Lycoming o-540, using a Porsche flat six as the baseline. Seems like, once you have the firing order, everything else becomes defined by it. Except for say sizes and weights.
man I'd use this more if I could wrap my head around it better lol
Yes, there were offset crankshafts. They were in H-pattern aviation engines. But that setup went away and people turned to more sane V and W setups.
The H-engines were made to have a smaller forward cross-section. Something desirable in aviation, not so much in land and sea designs.
it turns out that there was a bunch of offset crankshafted cars due to efficiencies of the power stroke
The technical stuff *is* the fun stuff!
I love it, but if only I fully understood it :P
Engineering Explained (Or was it Driving 4 Answers?) has a video on offset cranks if you're interested.
i’ve seen it now, and it’s a simple but interesting idea that just makes sense
Offset crankshafts exist to reduce side loading during power stroke
I remember in one part "flathead" was mentioned, now I want to see someone make a ford flathead V8 in the sim
it'd be the same as any other v8, but really low compression
@@fillman86 yeah
Man you're missing out, a lot of people want tutorials on how to make engines in applications and you have it just put it in the title and add something like (Engine Code tutorial) or something
ah good point
Would a VR7 engine be better? since all cylinders can exist in the same block but in v shape.
haha are you trying to torture me? XD I already struggle with visualising crankshafts :P you'd also have to play with off-centre weight pistons etc
Ahhh so this is how Kawasaki made the inline 7
haha well they've had some weird firing engines too
Watching this for the fourth time to maybe make my engine design work lol
I know right, it's been weeks, and I still struggle XD
I have to bribe someone to make ... whatever the hell it was powering the Mercedes W125. That car is my kink, I want to see if this thing can handle it haha. What a great program.
well I did make a w196 - ua-cam.com/video/2a2vtwIZ1Ko/v-deo.html
and I did make a straight 8 - ua-cam.com/video/1dKS2lguFNQ/v-deo.html
@@fillman86 Oh I meant in this program, but those remake videos are great. Cool work, keep it up!
Thanks for a great video,
Regarding offcenter crankshaft look at the Toyota NZ engines.
haha I've had people give me a long list of engines that use it, and why. It's really interesting
ofset craks does exists to gives longer exhaust stroke and increase efficiency, but it's 2-9mm at max
I'll add another engine with an offset crankshaft, the Toyota 1NZ from the Echo, Yaris, xB, NHWxx Prius, Etc. As someone else said it is so that the power stroke has the rod at less of an angle for less side force on the piston and less friction. The offset shown in the video is to the wrong side, the rod was straighter in compression than in expansion/power.
this is really cool, I will be doing some testing on this in the future :) there'll be many more videos to make on this in the future!
I hope it ends up as a module in the open source game engine Godot.
oh yeah, I always forget that godot exists. I could see it being available on the market place for the big 2, unity, and UE
Well now I've finally found something to simulate my motorcycle engines. Now I just need to figure out how to make one sound like a jet engine. 🤣
I don't think I've ever heard anyone say that a bike sounds like a jet engine... but they did tell me after the recording that any combustion engine (including jets) were possible
Maybe you can try to cheat it by making 50 0.1L pistons with massive turbochargers.
@@Appletank8 I've only seen turbos modded in by 1 person, otherwise I don't know how to do that
Now I'm curious how flat 4 with inline 2 crankshaft will sound like.
well the default engine is a v-twin :)
180 degree V4
yuhhh ange go brrr
bmw doesnt have 5 cylinders afaik
also i like william mosers stuff, i actually have permission to use his sounds in my games if i get it to work lol
yeah, it's an audi 5 cyl, there might have been confusion with the bmw 6 cyl that's also available in the base files.
I'd never heard of him before, but his content looks awesome! Implementing it into beamng wouldn't be too hard, as long as you could get steady sounds from steady rpm increments :)
@@fillman86 i actually did that once for a game i made ages years ago in scratch, there is some parts where you can get a steady rpm fairly easily and it doesn't sound half bad
hmu if you wanna test it out
@@meehdrescher haha tbh I don't know anything about scratch
so what controls the Liters or CC. I've been trying to edit an engine for hours and can't figure out how to change it to a 5L engine instead of a 2.5 or whatever it is now.
that would be done by bore, throw (half your engine's stroke), and how many cylinders you have
There is camshaft tuning in Automation isn't there? Not massively in depth but it's not bad afair.
there is, but it's nothing like this. Almost all the power of an NA engine is gained through the cylinder head irl, and I really want to explore that more
to be clear, I like both approaches, and they both have their advantages
@@fillman86 yes good point. I really enjoyed the vid thanks!
I plan on getting this software it's seems pretty cool
it's really easy to get!! maybe learning it isn't quite so easy if you aren't pre-disposed :/
When I tried it I did a cross plane in line 4 from a motorcycle I also coded from the actual source not any assists
yeah, porsche also did it in their 919, and that thing is legendary!!
720 divided by seven, multiply by cylinder order
errr...
That’s also not how firing orders work at all… the pulses have to balance eachother out or the engine will tear itself apart. In the firing order 1234567, fhe engine will rock from front to back horribly.
it really would, and I can't wait until his full game release happens, and we get to see physics responses :)
@@fillman86 if he could manage to model the engine in 3D and simulate the vibration and knocking physics I would be extremely impressed, it would be very cool to see a 3D engine tear itself apart. I have never seen a 3D engine have a breaking feature, most of the time they just make a boom sound and don’t work anymore. It would be extremely cool to see a piston fo through the side of a block in 3D and have cracks in the engine or pieces blown out
Imagine refining this tool and selling it to a triple-A driving game title or developer.
something like Forza or Gran Turismo? With enough refinement there no one would be able to complain about inaccurate engine sounds again.
I think he's got some stuff in mind, but with Ange's hard core simulation approach, he probably wouldn't choose arcade or simcade games like those. What's more likely is him taking offers by loads of companies to create/implement solutions into their existing games/game engines :)
in the mean time, I believe he's working on just making a playable version of the engine simulator for sale :)
this is a great video, however i feel like the skippable part is not actually a part that should be skipped, it tells you what the whole flow sample thing means.
I don't think we talked about that
I'm using the trial version of soft to learn the basics. How do I make a cool keyboard lody that isn't just a basic softing soft?
bro, you've just made my brain melt with those 2 sentences XD
If the video was any wider, we'd be looking at a fuckin line of pixels.
Btw, this was not the garbage youtube algorithm pushing Ange's video, it was the content.
This was also shared a lot because it is an amazing tool he made.
And since it was shared and the views wen't up quickly, youtube recommended it to people as well.
this video was doing poorly until ange shared it, which was really nice of him. If you can't see because of the aspect ratio, it may because you're watching from a phone, or not in theatre mode
@@fillman86 I was watching on a computer screen. I was also exaggerating on purpose because the format is horrible. It even caused Ange's coding (the main part of the video) to be only half the size of my screen even though it had the same ratio as it.
I was not speaking about your video when I mentioned the algorithm, I was speaking about Ange's original video. It gained traction because of the good content and was later assisted by the algorithm because it was already very well received and viewed.
@@Cyan37 you can have great content and not get views, because of the algorithm, for instance "countreefus", sure it's just wiki articles, but really enjoyable, and is of the quality of at least a few 100k subs level
@@fillman86 Absolutely, seen that happen as well. UA-cam has become hell and needs proper competition in my opinion. Been overdue for years now.
Renault TCe engines have an offset crankshaft supposedly for better torque output and balance. No idea of the actual technical reason for this but heh !
it has to do with the power stroke and the position of the crank (or so others in the comments have told me haha)
Offset cranks... The gm 3.9Lv6 was offset, but not L/R, .
Maybe the Nissan variable compression one is too
as it turns out, many companies do it to give a cleaner power stroke :)
I wish I could go back in the late 1980s and develop a 2-seater sports car with a high-revving inline 7 that produces 400 horsepower and a 9300 rpm redline that will be in production in 1996.
lol it's not meant to be a real engine XD
offset crankshafts are actually a thing for example in the engine in the yaris GR
38:33 looking at you, radial engine
all the camshaft!!
10:40 I think this makes everyone feel better about themselves
haha yeah, it's a steep learning curve
I can't get it to work on my Windows 8.1 system. It threw out a vulkan.dll missing error, so I installed the dll and then it threw out a different error "The Application Was Unable To Start Correctly (0xc000007b)" which I still haven't been able to fix. Unable to upgrade to newer Windows because the laptop is too shit
errr I don't know how to fix that, but he does have a discord that you might have luck in
Is your GPU is too old to support Vulkan? Just a guess.
@@Liam9787 Intel HD integrated graphics. Would that be my issue?
For making such a big deal about non-metric units it's a bit ironic not knowing what radians are.
I like where your head's at ;) but you may be thinking of S.I. where it's accepted, but not the main unit. Metric on the other hand uses both, but to what degree (pun intended) is dependant on where you're from
I want to make the H-block 24cl Napier Sabre in this thing, though I imagine it might bloww my PC sky high lmao.
nah bro, totally do-able, unless maybe if you're running something like a pentium haha
@@fillman86 The V12 Rolls Royce Griffon runs on my PC perfect fine so lets hope that twice as many cylinders does as well lmao
@@blockheadgreen_ keep in mind that the more exhaust manifolds you have, the less stable things become. Some say that 4 is the limit
What extension are you using to get code highlighting for .mr files in VS Code?
I'd suggest doing to the engine sim discord, and asking there, as I'm not that tech savvy haha
but hear me out: they implement this software into the ECM (or whatever the equivalent is in electric vehicles) so that you can make the car sound like whatever you want. that would be AMAZING.
that wouldn't be particularly hard, but also.... adding sounds to EVs is silly to me :/
@@fillman86 me too, but it’d be pretty funny to make a Tesla sound like a giant rotary or a 45° V-Twin something silly like that
AngeTheGreat's voice sounds a lot like GoodTimesWithScar to me.
had to look them up, but yeah, they sound kind of similar, every base-y voices
now i have a challenge for you: desing a tri turbo i7 good luck XD
turbos aren't implemented yet, and I don't know his plans on it. I have though, seen people doing that with modified versions
@@fillman86 oh wow, people have already made turbos for this? I made the comment as a joke but that's just impressive. Also, i don't think it would be possible to twin or tri turbo a i7 without some really whacky exhaust headers, it just wouldn't work or make sense i think.
@@Ferrari255GTO haha it could still be done, though there's also the option for sequential turbos :P
@@fillman86 yeah, but if they were sequential it would be weird to have three, both low mid and high range? Or two high and a low-mid one?
is there a link to the exe? Because I'd like an easier way to make engines than by having to type lines of code.
Hopefully the simulator can be turned into a functional game.
that seems to be the goal
I think that you forgot to adjust the crank to the correct firing order. That‘s why it didn‘t want to idle. (But I skipped a lot of the video.)
haha I kept all the troubleshooting in the video. He deliberately let the mistake happen so there was lots of learning involved :)
mate the more i listen to your voice the more i want to gouge my eardrums out
harley davidson v twins fire at uneven intervals.
yep :) actually a huge range of engines do (mostly motorbikes)
I'm going to run this using CAN bus inputs from my Prius to make it sound like a V12 Ferrari. I'll pipe the output to the exhaust. Maybe. 😂
XD oh god
Poggers
everything I do it poggalishious!
very
Y
E
S