Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2   Go Down

Author Topic: Sonic boom ''fix''  (Read 4667 times)

0 Members and 1 Guest are viewing this topic.

Hangman

  • Modder
  • member
  • Offline Offline
  • Posts: 819
Sonic boom ''fix''
« on: September 11, 2013, 02:56:48 AM »

I have been thinking this for long time, if some coding expert could try to make sonic boom audible when plane is doing flyby and planes speed is above speed of sound.

Now sonic boom appears only then when plane is exceeding Mach 1.

In Lock On you hear sonic boom every time when plane makes a flyby when speed is greater than speed of sound that is what I am looking for our game.

I hope you understand what I am meaning I am waking up little slowly this morning :)
 
Logged

F22-Raptor-2006

  • Aviator Mod Team
  • SAS Honourable Member
  • member
  • Offline Offline
  • Posts: 1855
    • Aviator Mod Team
Re: Sonic boom ''fix''
« Reply #1 on: September 11, 2013, 08:38:42 AM »

As far as I'm aware the sonic boom should only occur at the moment the plane transitions from below the speed of sound into a state where it is faster than the speed of sound, otherwise known as mach 1. It shouldn't constantly make boom sounds whilst it is flying above mach 1.... that would be rather weird. Hence from what you describe the bug is in lock on and not IL2...
Logged

ANDYTOTHED

  • Modder
  • member
  • Offline Offline
  • Posts: 855
  • angle computing gunsights
Re: Sonic boom ''fix''
« Reply #2 on: September 11, 2013, 09:20:42 AM »

As far as I'm aware the sonic boom should only occur at the moment the plane transitions from below the speed of sound into a state where it is faster than the speed of sound, otherwise known as mach 1. It shouldn't constantly make boom sounds whilst it is flying above mach 1.... that would be rather weird. Hence from what you describe the bug is in lock on and not IL2...

What he means is that in flyby view (in lockon) each successive time the aircraft goes past, it makes a sonic boom. You only hear this sonic boom once, until the view again switches ahead.
Logged

mikoyan99

  • Modder
  • member
  • Offline Offline
  • Posts: 764
  • I'd give up rice fields to fight like you
Re: Sonic boom ''fix''
« Reply #3 on: September 11, 2013, 09:22:31 AM »

Quote
As far as I'm aware the sonic boom should only occur at the moment the plane transitions from below the speed of sound into a state where it is faster than the speed of sound, otherwise known as mach 1. It shouldn't constantly make boom sounds whilst it is flying above mach 1.... that would be rather weird. Hence from what you describe the bug is in lock on and not IL2...

IIRC that's not true. The "boom" is the shockwave generated by an aircraft traveling above the speed of sound reaching an observer. The observer will perceive it as a single bang, but in reality it's being continuously generated by the aircraft.

To give you an example, RAF Typhoon jets were recently scrambled to intercept an airliner over england - they took the rare step of breaking the sound barrier over the land; the shock wave was heard, and I believe shattered windows in three counties. Each county heard the boom at different times after the aircraft passed overhead.
-Matt
Logged

Hangman

  • Modder
  • member
  • Offline Offline
  • Posts: 819
Re: Sonic boom ''fix''
« Reply #4 on: September 11, 2013, 09:24:42 AM »

Another thing I've been thinking when plane flys faster than speed of sound and human is listening on the ground plane sound will come while after the plane pass over. Is this correct or other mine misunderstood and is it possible to model that for IL-2
Logged

SAS~Anto

  • Aussie Bush Pilot
  • Editor
  • member
  • Offline Offline
  • Posts: 4439
  • Retired from modding
Re: Sonic boom ''fix''
« Reply #5 on: September 11, 2013, 09:28:42 AM »

The sonic boom effect in the JetWar pack is currently fine (it would be way too hard to model the wave propagation considering Il-2s primitive environmental audio). The one problem we do have with it is that due to an error in the Il-2 sound code, it doesn't always trigger properly.

To sum up: unless someone rewrites Il-2s environmental audio model, it ain't going to happen. The sonic boom we have is sufficient for gameplay purposes.
Logged

SAS~Malone

  • flying as #46 with the FAC
  • Editor
  • member
  • Offline Offline
  • Posts: 14562
  • proud member of that 'other' site
Re: Sonic boom ''fix''
« Reply #6 on: September 11, 2013, 11:01:28 AM »

indeed - no way anyone here is going to rework the entire sound engine just for a more correct sonic boom .
we should be happy enough to now have planes that are capable of going supersonic - that alone, was just a dream for IL-2 only a few years back ;)
Logged
.....taking fun seriously since 1968.....  8)

Hangman

  • Modder
  • member
  • Offline Offline
  • Posts: 819
Re: Sonic boom ''fix''
« Reply #7 on: September 11, 2013, 11:19:11 AM »

Thank's for good sum up Anto I respect everyone hard work for jetwar pack and I can live with our current sonic boom

And Malone I really don't except someone doing that I just asked what I've been thinking. I didn't meant to sound demanding if someone gets my writings that way
Logged

SAS~Malone

  • flying as #46 with the FAC
  • Editor
  • member
  • Offline Offline
  • Posts: 14562
  • proud member of that 'other' site
Re: Sonic boom ''fix''
« Reply #8 on: September 11, 2013, 11:57:52 AM »

i didn't take your post as demanding, mate - i was just seconding Anto's post, with a bit of my own typical embellishments in, lol
nothing wrong with what you asked at all.
apologies if it seemed harsh at all, it wasn't intended to be. ;)
Logged
.....taking fun seriously since 1968.....  8)

Hangman

  • Modder
  • member
  • Offline Offline
  • Posts: 819
Re: Sonic boom ''fix''
« Reply #9 on: September 11, 2013, 01:29:43 PM »

That's ok then  :)
Logged

Herra Tohtori

  • Modder
  • member
  • Offline Offline
  • Posts: 671
Re: Sonic boom ''fix''
« Reply #10 on: September 11, 2013, 01:31:11 PM »

WARNING: FOLLOWING POST CONTAINS SCIENCE

What people are saying here is essentially right (but with varying degree of accuracy).

The sonic boom is a transient pressure peak that happens when the pressure waves caused by aircraft's movement through air form a shock cone when traveling at or more than speed of sound. It is observed some time after the aircraft has passed (this time depends on perpendicular passing distance and atmospheric properties that define the speed of sound).

If you were traveling along the aircraft, you would not be hearing a sonic boom, because the shockwave is usually fairly stable in the aircraft's reference frame. The only thing is, if your vantage point was AHEAD of the shock cone, you would only hear sound of passing airflow, but the sound from aircraft would not be making it to you. Conversely, if the camera position was moved behind the shock cone, then you would suddenly hear the sound the aircraft makes.

Sonic boom itself should only be audible in fly-by views, but even though IL-2 supports doppler-shift in sound samples, it does not simulate the travel time of sound, or sound delays. All sounds played in the game are heard instantaneously. If the sound system actually supported delayed propagation of sounds, we would not be having this problem - the system itself would take care of producing a sonic boom in appropriate conditions.

However, as it stands, the best we can do is either the current system - which, by the way, is a pretty bad idea if you want my opinion - or figure out a way to make the game play different fly-by sound at Mach 1 and above.

The modeling of the shock cone limit for external camera sound would probably be a bit too complicated. However, fly-by camera sound would be reasonably simple to craft so that there would be the correct length of silence at the beginning of audio, then sonic boom as the aircraft passes camera point, and regular jet sound with doppler shift after that. I've noticed that the time from hitting fly-by camera key (F3) to passing of the aircraft tends to be the same regardless of the speed; the game just throws the camera further ahead when flying at higher speeds.

Therefore, the only piece of the puzzle missing would be some kind of code (probably java) that switches the fly-by sound sample if the condition of going faster than Mach 1 is true. This system would be quite a bit better than the current, completely fake sonic boom that only appears when speeds goes above Mach 1.


So there you have it, the probably best and simplest way to fake sonic booms in a way that at least appears to imitate how sonic booms happen in real world.

Whether or not this is possible, I leave to people with more complete understanding and skill of java coding for IL-2. I hope someone is skilled enough to implement this, as I think it would be a significant improvement for supersonic jets.
Logged

Typhoon Ib

  • SAS Enfant terrible
  • member
  • Offline Offline
  • Posts: 1632
  • unlock.inc
Re: Sonic boom ''fix''
« Reply #11 on: September 12, 2013, 08:15:41 AM »

*applause*
double thumbs up - because you seem to have a grip of what you are talking about.
(not that i do supersonic...yet)
Logged
Collecting dislikes since December '82.
Pages: [1] 2   Go Up
 

Page created in 0.038 seconds with 24 queries.