Settings

Theme

Show HN: I made a flight simulator, except you're just a passenger

inflightsimulator.com

298 points by rkotcher · 168 comments · 1 min read

Reader

Buckle your seatbelt, secure your tray table, and open your window shade. Now you can simulate flying anywhere in the world as a commercial passenger, from takeoff to touchdown. Terrain, weather, and realtime sun position included. Don't worry, the latest release now features legs, so you can get up and go to the bathroom on longer flights. Enjoy!

62 threads
phugoid

This really made my day! I was a flight simulator engineer for 20 years and it brings back fond memories of a project I worked on.

Simulating the passenger cabin is important for crew evacuation trainers. Those are large, lifelike fuselage sections that you put on a hydraulic motion platform and run flight/crash/evac training scenarios.

To get a realistic out-the-window view, the trainers I worked on had a PC monitor behind each window opening. We used FlightGear in a master-slave setup: the master node simulates physics and feeds accelerations to the hydraulic platform, and the slave nodes generate out-the-window visuals for each window.

  • RobRivera

    [Desire to know more intensifies]

    So if I wanted to create something that could reliably jostle and move in response to a master physics node, like a racetrack simulator, cabin simulator etc. What kind of distributed controller scheme we looking at? Master node with strong compute, hydraulics with microcontrollers type set up?

  • rkotcherOP

    Your comment made my day! Thanks for the insight, and thanks for playing :-)

isomorphic-

I'd love to be able to click on the progress bar to jump ahead or back in the flight path. Perhaps the display on the back of the seats could show the actual flight path imposed on a map, and we could click anywhere on that flight path to move the plane there.

When selecting departing and arrival airports at the beginning, it would be nice to be able to click on the map to select the airport, useful if you don't know the airport code or the name.

  • rkotcherOP

    Thanks for the suggestion. I could actually consider doing this - the flight itself is procedurally generated, so it's entirely possible.

    As for the second suggestion, it actually is possible now! but maybe it's not obvious and I should change the style or something to make that more clear.

    Thank you for playing!

LukaD

Wow, this is so unbelievably unoptimized. The sound of my computer fans makes it so immersive. The shadow map is being rendered twice with 300+ draw calls and 1M+ triangles. Full resolution GTAO is probably even more expensive with a lot of fetches per texel. I'm sure there are a ton of low hanging optimization fruits and I'm confident claude et. al can fix all those issues, but if you don't know where to look and never profile the app then you get a vibe coded unoptimized mess.

  • rkotcherOP

    It's a work in progress. I have cut down on the original mesh size by quite a bit but continue to do that. I also fade out the resolution of the map tiles as you approach the horizon so you aren't loading ihgher res satellite images than you need. I've run entire flights on my 2022 mac pro with no issue, but as this is a side project it remains not as optimal as it could be. Any suggestions for order of operations / what should be fixed next are welcome :-)

    • LukaD

      I have a few suggestions:

      - as I mentioned above, the shadow map is drawn twice, probably it's being auto updated by three.js at some point

      - the entire cabin has a lot of triangles while the player only sees a small portion of it

      - cabin lighting could be baked

      - a lot of triangles seem to be rendered without backface culling, that's probably not intentional

      - don't run GTAO at full resolution, try half

      And also, use the spector.js [1] browser extension to profile the app and have your AI agent analyze the capture.

      [1]: https://spector.babylonjs.com/

      • rkotcherOP

        awesome, I will look at each of these, one at a time. my bigger issue today was that I was not expecting so many people to try the app and have unoptimized bandwidth costs. bringing those down first and then will be looking into optimizations like you have listed. I honestly just built this thing for fun & it was running fine for me. now that others are using it it's time to start thinking about performance more. Appreciate the thoughts.

      • rkotcherOP

        fixed the shadow map being drawn twice, and have deployed that. going through each of these and considering. thank you for your suggestions.

  • ascots

    Googling "gtao graphics" results in "Grand theft auto online"

    "Gtao technique" was more helpful: Ground Truth Ambient Occlusion

  • metabagel

    Sorry this seems to have ruined your day. /s

drayfield

Or you could check out the non-vibe coded Airplane Mode from 2020:

https://store.steampowered.com/app/931310/Airplane_Mode/

  • kkukshtel

    This immediately came to mind for me as well. The game straddles "game" and "performance art", and the totally straight-faced delivery really makes it stand out.

  • NietTim

    > Mixed - 67% of the 355 user reviews for this game are positive.

    And 10 euro, lol. I'll just go with the free one, thank you.

  • apexalpha

    That's... why?

    I can understand slow games like EuroTruck or Farming Sim. But what's the point of this?

    • rogual

      These days it's pretty unusual to think of an idea that hasn't been done yet, so when you do, I guess you just don't think too much and go make it.

      • piltdownman
        • bartread

          That one predates vibe coding by quite a few years though: a lot of hard work went into Goat Simulator, and there were no doubt other more obvious choices for how the developers spent their time, but they still chose to make Goat Simulator.

          • keyringlight

            From what I remember it was a project for Coffee Stain (the studio) to train up/onboard new hires, having started as a modding team with Sanctum for UT3 and later a full standalone release. Then they ran with it for a while after it struck a chord with people willing to give them money.

          • amiga386

            Also it's a geninue game with goals to complete, mainly cribbing from games like the Tony Hawk's series.

            Two separate categories: Meme games[*] don't have to be vibecoded, not all vibecoded things become meme games.

            [*] A "meme game" being a game which is tries to be ridiculous and is predominantly popular because of social media exposure. I would include games like Goat Simulator, Horse Magnifier, Squirrel with a Gun, QWOP, Untitled Goose Game, Trollface Quest...

      • matheusmoreira

        Does everything have to be original and novel? I think reinventing a better wheel is a perfectly good use of AI tokens.

      • fc417fc802

        Is there a mosquito simulator yet?

    • rkotcherOP

      well, I'm the kind of person who stares out the window for the entire flight, so to me this sounded fun to make and recreate that experience. but really, no point at all to this haha

    • wj

      Every once in a while I would put Flight Simulator 2020 on my desktop and work on my laptop. I found that watching the digital world pass by while working put me in a slightly different headspace. Not sure it increased productivity but working while sitting in an actual plane does provide me a bit of focus.

      Train ride videos on YouTube scratch some of the same itch.

    • piltdownman

      Nonwithstanding the human fascination with simulation and simulacra, Airplanes and Air Travel represent a fascinating cultural touchpoint with much insight and depth to plumb depending on what aspects you simulate.

      For example, think of a history class charting flight from the Wright Brothers, through the Golden Age of Aviation, right to the present day. Even showing the drastic differences pre and post 9/11 by reference to the processes and experiences of commercial airline travel would represent a worthy pedagogical endeavour. We do a lot more to achieve a lot less in terms of making 'history come alive' currently.

      • xprnio

        A game where you're narcoleptic and keep falling asleep at random unannounced times. While taking a flight from A to B, you wake up at different times entirely, on the same (or an equivalent) flight, seeing whatever was going on back then. Sometimes it's a flight with the Wright Brothers, sometimes you're flying during WWII, and sometimes you might just be on the plane heading towards the twin towers (right as you wake up back on your own original flight). Maybe even some mini-games where you might have the chance to foil a hijacking in progress, or maybe you need to be "the doctor on the plane", or maybe you wake up as the guy that's carrying the crying baby. You never know when, where, or who you'll wake up as.

    • latexr

      Slow? There’s a Faming Simulator competitive esports league (because of course there is). You can find videos on YouTube.

    • lIl-IIIl

      Might be helpful for people who have never flown.

donkey_brains

It's missing a few elements for realism: - Passengers on either side of you taking both your armrests - Continually crying baby seated just in front of you - Person behind you coughing without covering mouth every 2 minutes - Kids fighting for control of a tablet across the aisle from you - Tiny cans of Coke

lejeanvaljean

You know what? I had fear of flying. I did a training with a pilot in a simulator, but it was in the cockpit. I don't have fear of flying in a simulator or in the cockpit. I have fear of flying as a passenger, I'm sit in a chair. That's what I would have liked during my training. I told that to Air France and they did not understand but this might seriously be useful.

  • lubujackson

    Also useful for people who want to ride along with someone currently on a plane. "Honey, you are over Kansas right now!"

    Useless things tend to be deeply useful to a select few.

    I am loving this "re-weirding" of the internet. For the younglings, this is very much the sort of pet project that would bubble up in early internet days. No startup raising money, no pain point necessarily being solved, just one person's idea lovingly rendered to life.

    • CamperBob2

      Don't try to build something for everyone, build something that's everything to someone. - paraphrasing Ferry Porsche

      • ocd

        I should have known he had views like this. I've heard similar things expressed and I believe this sentiment personally, but I'm happy to know I can add his name and the original quotation to my archives.

      • zikduruqe

        Or; don't be everyone's cup of tea, be someone's shot of whiskey.

  • aaronbrethorst

    UAL used to let you listen into the cockpit to ATC chatter: https://news.ycombinator.com/item?id=17656352 — I understand this was really helpful for calming some passengers' nerves during flying.

  • cjrp

    BA (and presumably other airlines) run fear-of-flying courses where you have some ground sessions with flight crew explaining what happens during takeoff/landing, what noises you might hear, etc. Then you go up for a short flight as a passenger to sort of re-enforce what you learned earlier.

    https://flyingwithconfidence.com/

  • rkotcherOP

    Interesting, thanks for the idea. Would be pretty cool if this app did have some real-world applications, beyond being a bit of a meme app. Thanks for the comment!

    • sublinear

      This is going to sound insane, but something like this for the backseats of various common, and maybe even exotic, cars would be cool too.

      I have similar problems being a passenger in an uber for more than 15 mins. I lose my mind on roadtrips when it's not my turn to drive.

      • StilesCrisis

        Not at all! Cars are an extremely common trigger for anxiety. You are far from alone in this.

  • password54321

    I don't think you can completely eliminate this as people naturally don't like giving up their agency which is usually going to produce at least a low level of anxiety.

    • recursivecaveat

      Agency and information in a way. I actually feel safer in a tiny 4 seater plane than a jet, even though objectively that's probably backwards. Being able to look at all the parts of the plane, how the movements derive from the pilot's actions, actually see out the front, it is more reassuring. More similar to being a passenger in someone's car. It probably doesn't hurt that it is easier for my mind to imagine a Cessna gliding gently to earth than a passenger jet.

      • amelius

        I like the idea of someone losing hundreds of millions of dollars if my plane goes down.

      • pjerem

        I’m not at ease in an airplane. I rarely fly but i actually like it, but I’m really anxious.

        What helps me is always taking a seat near the wings. First that’s where the plane moves the less. And moreover, it’s pretty reassuring watching them supporting the plane in their great stability, they always move way slower than the cabin.

        • gatio

          Plus you can alert the crew if something's off before take off (eg. loose/missing screws/panels). A forner colleague of mine did that, and got to see the entire maintenance crew come out for an impromptu RCA and incident response.

    • IAmBroom

      Total and complete elimination of anxiety was never the claim.

      Management and reduction is enough.

  • tosti

    I'm not afraid of the flight, for me its customs and surrendering all my data. They even want my balls ffs.

    • IAmBroom

      Do they contain more than 100 mg of liquid?

      • tosti

        The rule on liquids is 100ml and I don't think it applies to semen. I object to the naked scanners, especially if kids have to be scanned. That'd be mass producing CSAM. Is TSA above the laws on producing CSAM?

atonse

Wow, at first, I thought "this is wonderfully silly" but within about 45 seconds of playing with it, I instantly wanted the window seat and thought, wow... I could see what it's like to fly over so many cities from above, just like with a window seat.

Nice idea!

shockwaverider

This is awesome. You know, you should turn this into a game where you play one of the flight attendants and you have to deal with all the crazy shit that happens with passengers on a plane - like people fighting, being too drunk, etc.

etatester

Crashed within 10 seconds on iPhone 17 Pro. Love the vibes

  • minikomi

    You have to turn on airplane mode

  • gizajob

    Looks amazing for the 2 seconds before it implodes on iPhone though.

  • tosti

    It's slow in FF, too. Cool for a flight simulator to crash, but it should simulate a plane crash. Not crash the simulator itself :)

  • djmips

    ahhh your phone crashed! I was a bit confused for a moment... Could you imagine if the airplane crashed like 1 in every million plays?! :O

  • PUSH_AX

    It uses too much RAM, it’s vibe coded so makes sense

    • rkotcherOP

      well, actually I had tested in iphone and did some things to but back on mesh size & also streaming terrain so that I'm not overrendering textures. I have not tested on all devices as I only have one mobile device. The tradeoff is render quality - maybe I'll make a lower triangle or 2K texture mode?

  • sdcfgy

    Yeah same here.

GreyMolecules

Hahaha this is awesome. I can teach what it's like to be on an airplane to my friend who has never flown before.

Currently playing on my usual route, ICN -> HKG. The flight path is too ideal. Due to airspace restrictions in china, almost every flight has to divert over taiwan in real life, but this one cuts thru mainland china.

inopinatus

Kindly simulate two hours of queuing at the Schengen border, a coin toss minigame over whether security is “laptops in” or “laptops out”, bonus if your belt pings, lounge access roulette, wailing infant(s), guy two rows back with the worst most productive cough you ever heard (still got that old N95?), retaining status planning spreadsheets, baggage systems failure at Denver, people using the loos in their socks, unstaffed rentals counter, tired neighbour using your shoulder as a pillow, Franz Kafka’s “The SSSS Boarding Pass”, guy who won’t close the damn window shade, creepily accurate PRC face recognition systems, shuttle bus orienteering challenge, Emerald ass-kissing, lost at Doha, cabin uncomfortably warm mid-flight, world’s most disappointing beef, go-around three times at Queenstown and diverted to Christchurch again, passport reader unresponsive, 7.1kg carryon rule nazi, 30 minutes of taxiing, US domestic “lounge” with no facilities at all and nowhere to sit, drunk British lady, gigantic American guy, bassinet accident, Tight Connection Sprint, can’t quite name the minor TV celeb in 1A, Hong Kong Monsoon Warning, crew yelling “sit down sir the seatbelt sign is still on”, toilet scrum during long final after breakfast on the redeye, and (my favourite) the consequences of sitting in an exit row and when they give you the briefing and ask if you’re willing to follow these instructions in an emergency, saying brightly “Looking forward to it!”

I love air travel.

  • ArekDymalski

    This is the most comprehensive collection of first world problems I've ever seen. And hilariously accurate :)

  • BobBagwill

    It needs a Health HUD with indicators for boredom, thirst, hunger, bladder distention, etc. Also cabin indicators for noise, temperature and humidity, CO2, methane, smells, etc.

  • 2d8a875f-39a2-4

    you missed (not a complete list): the TSA travelling over to your country to give to their "was it as good for you as it was for me" inspection on your home soil, the non stop 16h conversation between two strangers right behind you, 45min of bus ride following the 30min of taxi, followed by catching an uber between the international and domestic terminals, carry-on luggage overhead tetris, people somehow coming on the plane with 4 or 5 large pieces of carry-on, the "can you swap seats with me and my middle seat because my partner/child is next to you" tap on the shoulder, the "Missed The Tight Connection" walk of shame, the overnight in a cheap hotel miles out of town because it was the airlines fault, the body odour buddy, the snorer, the last minute departure gate change, the 2h on the tarmac at ATL due to thunder storms, and the ironic applause when a nervous pilot puts you all down rather bumpily.

  • Ylpertnodi

    > creepily accurate PRC face recognition systems

    Gait recognition, too?

mikeshi42

3 overhead reading lights for a 2-2 configuration? On a trans pacific flight? Literally unplayable.

Would love to see this open source and extended!

kinduff

I asked for beef, they only had chicken. 10/10, average flight experience.

flawed_crater

Please remove the login screen. Is love to try this.

pattle

This is brilliant. Some improvements I'd suggest

- Let me use the arrow keys to walk around the plane, having to keep double clicking on the floor to move is quite annoying

- Would be good if there was business class seat

- Add video to the inflight entertainment, you could probably just embed youtube

- Optimise it. Run okay on my M5 mac air but not that smooth

naich

I like the way it smashes the CPU so that the fans sound like jet engines.

thoughtsimple

Seems to hate not having location access on iOS. Keeps refreshing until eventually Safari just gives up.

RobRivera

This is rad

wafflemaker

Had to use uBlockOrigin to remove the login prompt. Think there could be a way to dismiss it without tricks like that.

  • ffsm8

    I just closed the window instead, it wasn't that interesting

ndr42

Sitting all alone in the plane I'm reminded of the movie Knight and Day (Tom Cruise, Cameron Diaz) where they are nearly the only passengers (with some adversaries).

d--b

Nice.

Waiting eagerly for the "crying baby" extension pack. The "get to your seat" MMO. And the "I want to pee, but the guy next to me is sleeping" campaign.

Also, inflightsimulator: 1980, with ashtrays and lethal weapon playing on dropdown TV sets

  • bigfishrunning

    Dropdown TV sets, luxury! i seem to remember a projector and a screen at the front of the aisle :)

  • EagnaIonat

    Or the passenger who is friendly and wants your window seat, but doesn't want to straight out say it. Then turns deranged when they find out they are in the middle seat for the whole flight.

  • rkotcherOP

    Thanks for playing! I'll be sure to consider so of those for the next release!

  • nullify88

    The Boeing extension pack and watch how the plane deteriorates in the air in real time! Door plugs, MCAS, the works!

  • fortran77

    What a great idea! How about, a kid behind kicking your chair, the person in front of you abruptly putting his seat back all the way, and a person of size next to you spilling into your seat.

unreal37

This is brilliant. Future enhancements can match the inner design of the plane to the actual plane used for that route by that airline, and the ability to choose economy, premium plus, busines class, etc...

zhaoziyuan2000

This is really cool! Also, my girlfriend suggested it would be nice if she can login and be on the same flight so we can fly home together.

  • rkotcherOP

    thank you! I had actually made that feature and then removed it to simplify. I will consider adding it back :-)

vavooom

Selfie mode was too funny these characters are ridiculous. Also a whole plane to myself? What a steal!

  • 10729287

    >Also a whole plane to myself? What a steal!

    Except if you're the main character of a plot !

classictraffic

This is really neat! I loved flying from MDW to ORD

gabriel666smith

This is fun. I would love if it used real flights, and filled the cabin with the avatars of anyone else "on" that flight.

Slight bug report - might just be HN hug-of-death related - on Arc browser, mostly without it as the active tab, I seem to have been stuck over Slough for some time (an ignoble fate).

I believe Arc reduces resources allocated to background tabs, and I don't think it likes being a background tab.

ramigb

Nice concept but It would've been better if you don't force people to sign in with the auth box always shown I had to delete it from the node tree using chrome devtools. also why not enable WASD keys or even arrow keys to move?

  • rkotcherOP

    yes, a few people have mentioned this. I am making it toggleable in the view menu and will push shortly. Thanks for suggesting

baalimago

3 dolphins and 2 acres of rainforest well spent. I like it.

jebarker

Survival horror, my favorite genre

quietfox

That’s a nice idea. Taking off from Frankfurt am Main felt like that ultra long runway in Fast & Furious 6 though.

lateatdesk

I like how much work you've put into just being a passenger :) I'm building a little world in the browser myself, so I like finding projects like this.

kh_hk

Unfortunately the flight plan is incorrect.

ehliu

Geez how strong is the chess engine? No chance on hard... even on medium this is a struggle.

EDIT: which is true to form on some airlines lol (but on others, even hard is trivial)

ironhaven

I was hoping for a very detailed menu with more flight avionics in the in flight entertainment screen but I guess the speed and altitude in the HUD is all I get. I want to know the exact plane T am flying in

edwardbonnett

can you pause halfway through a flight and come back to it?

khazhoux

Genius doesn’t always look like you expect it will. Well done!

(Kill the login panel though —- it wouldn’t go away for me)

onaclov2000

When will having to go through TSA be added?

noufalibrahim

It's very nicely done. I snapped the seatbelt on and that dread of a long boring flight automatically hit me. :)

moralestapia

Amazing reproduction, I even got some PTSD from it :D.

zubspace

Can't press the Continue button, because the footer overlaps it. Firefox on mobile.

WesolyKubeczek

This cannot be a true passenger simulation unless it also contains full airport experience, complete with TSA cavity search and CBP detaining you or denying entry for the pettiest reasons imaginable (in case of the US).

tnolet

Is this visual style Fable or Astra. I see it everywhere now. It’s the new black and purple

ferflowhq

Nice idea. But would be better if there are other passengers as well. Also somehow has slow frame rate.

darknavi

Missing FCA (Glacier international airport in Kalispell, Montana, USA).

It's small but a beautiful flight!

  • rkotcherOP

    I will look into adding it.. I'm all for beautiful takeoffs and landings!

modinfo

I love that this is in real time and this jokes :D Even we have chess game :3

orliesaurus

Flying to NYC, sitting next to nobody, never happened to me before :) - see you in 4h

jolmg

Stuck on 0h 01m elapsed after 12 minutes.

amelius

Wow, that's quite some leg space!

DylanMerigaud

Congrats on shipping this.

razzbee

kind of unique idea, but who becomes the pilot? an ai ??

zergrush

really wish i could sit by the window

  • rkotcherOP

    You can! just have to get out of your seat to then choose the next seat to sit in. can probably improve on that

smallstepforman

Now if we can watch fresh movies, that would be ideal …

groestl

Next up: Airport Simulator! Enjoy security, customs, and the inevitable panic of missing your gate across more than 50 international airports around the world!

bitwize

It's lovely, but its flight physics model could use some updates. For example, there's no SkyMall, no Biscoff cookies, and no flight attendant (or on-screen video) giving a humorous, memeable explanation of the plane's rules and safety features.

  • rkotcherOP

    Thank you! I will definitely be adding things like this! Just wanted to get something out there, and then add to it! Thanks for playing!

wazoox

Ah, it's flying Paris to Bogota in a 1 aisle, 4 seats per rank regional plane, pretty unusual if you ask me :)

wossab

I dig it. Got it bookmarked. Nice job, keep it up.

nader

haha this is fun!

khantsithu

cool

playoverbid

nice one!

tony-ay

Pretty cool! I could see leaving it up on another screen to enjoy while I go about my workday.

fortran77

I'd pay $1 to upgrade to first class. $2 if I get a hot towel, a pre-departure beverage, and warm nuts.

seemaze

no

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection