Live data from Hacker News

Translating a Fortran F-16 Simulator to Unity3D

vazgriz.com

101–110 of 129 posts

Re: Translating a Fortran F-16 Simulator to Unity3D

#101
post #64

When I was growing up computers were getting faster by leaps and bounds, and I remember a video game that was so 'sophisticated' that it needed a math (FP) co-processor (80387) to play some parts of it: > The program requires a minimum of a 12MHz 80286, 1MB RAM, DOS 5.0 or DR DOS, one 1.2MB 5 1⁄4" or 1.44MB 3 1⁄2" disk drive, hard drive with 11MB of free disk space, and VGA graphics. In addition, Falcon3.O supports a…

I have fond memories of playing the original Falcon on my Amiga 500. It felt like magic after years of playing F15 Strike Eagle on the Apple IIc. Hearing real sound effects kicking in the afterburner and getting too close to the ground ("Pull Up! Pull Up!") were all so satisfying. I remember being so excited when Falcon 3.0 came out. But it just felt like a let down. The graphics were amazing for the time and it seem…

[deleted]

Re: Translating a Fortran F-16 Simulator to Unity3D

#102
post #49

Earlier quoted context omitted.

In C can't you just offset pointer and then you'll be able to index with arbitrary starting value?

Technically no, a pointer pointing outside of its array (or similar) at any point is undefined behaviour. More importantly for this discussion, without support from the language it's not very ergonomic to work with. What happens when you need to call strlen, memcpy, or free?

It works in this case where you want to move the zero index forward a few cells to a valid offset. It is only UB for the general case where the offset may land outside valid memory. C has always supported negative indices, so moving index zero forward into the middle of the array is fine.

Re: Translating a Fortran F-16 Simulator to Unity3D

#104

When I was growing up computers were getting faster by leaps and bounds, and I remember a video game that was so 'sophisticated' that it needed a math (FP) co-processor (80387) to play some parts of it: > The program requires a minimum of a 12MHz 80286, 1MB RAM, DOS 5.0 or DR DOS, one 1.2MB 5 1⁄4" or 1.44MB 3 1⁄2" disk drive, hard drive with 11MB of free disk space, and VGA graphics. In addition, Falcon3.O supports a…

I did enjoy the maps that came with it.

Granted, I probably would've had an easier border crossing if I didn't have a flight map for Kuwaiti airspace, complete with markings for anti-air defenses in the backseat of my car that one time, but it was _still_ worth it :)

Re: Translating a Fortran F-16 Simulator to Unity3D

#105
post #55

Earlier quoted context omitted.

I wonder how many of the "off by one" issues/bugs we encounter in the wild are because of arrays typically using 0-based indexing vs 1-based indexing.

None, in my experience. 1-based is far, far likely to introduce errors, as you have to keep adjusting the index to the algorithm and/or what is actually going on underneath.

> as you have to keep adjusting the index to the algorithm and/or what is actually going on underneath.

Yeah, that's mixing both of them. Wouldn't it work as well if they all used 1-based indexing or 0-based indexing? Sounds like the issue was that algorithms/stuff underneath wasn't 1-based.

Re: Translating a Fortran F-16 Simulator to Unity3D

#107
post #64

Earlier quoted context omitted.

I have fond memories of playing the original Falcon on my Amiga 500. It felt like magic after years of playing F15 Strike Eagle on the Apple IIc. Hearing real sound effects kicking in the afterburner and getting too close to the ground ("Pull Up! Pull Up!") were all so satisfying. I remember being so excited when Falcon 3.0 came out. But it just felt like a let down. The graphics were amazing for the time and it seem…

Having been the kid who loved to geek out over flight sims, and then the adult who was fortunate enough to have flown military jets, I find the trend for uber-realistic military sims like DCS and such kind of sad in a way. I mean, the software itself is impressive. But the idea of grown adults geeking out over old versions of the NATOPS and trying to develop tactics and such is frankly cringe. You're never going to g…

[deleted]

Re: Translating a Fortran F-16 Simulator to Unity3D

#108
post #64

Earlier quoted context omitted.

I have fond memories of playing the original Falcon on my Amiga 500. It felt like magic after years of playing F15 Strike Eagle on the Apple IIc. Hearing real sound effects kicking in the afterburner and getting too close to the ground ("Pull Up! Pull Up!") were all so satisfying. I remember being so excited when Falcon 3.0 came out. But it just felt like a let down. The graphics were amazing for the time and it seem…

Having been the kid who loved to geek out over flight sims, and then the adult who was fortunate enough to have flown military jets, I find the trend for uber-realistic military sims like DCS and such kind of sad in a way. I mean, the software itself is impressive. But the idea of grown adults geeking out over old versions of the NATOPS and trying to develop tactics and such is frankly cringe. You're never going to g…

[deleted]

Re: Translating a Fortran F-16 Simulator to Unity3D

#109

Earlier quoted context omitted.

FWIW she probably wasn’t breaking any security protocols - basically as long as the kids can’t read well they are fine to be escorted without the red light. I used to take my daughter into the SCIF when she was about 2 when needed, and there was a week where I was took my son into work at the Pentagon. I working for Snake Clark at the time and people kept bringing him candies and treats. I think he was watching carto…

I do a double-take if I see a dog! I've seen babies, but I'm pretty sure anyone that can walk or talk would be a no-go. My assumption is OP wasn't in a facility like that.

Correct.... It was an office in a suburban office park.. I remember there were some areas that I was not allowed in. But I don't know if that was for security reasons, or just due to general non-kid safe areas. I don't remember guards, but it was almost 50 years ago and I really can't recall.

I interviewed at LANL early in my career, and I was struck by how much security there was. My mom's office was nowhere close to that level of security.

Re: Translating a Fortran F-16 Simulator to Unity3D

#110
post #64

Earlier quoted context omitted.

I have fond memories of playing the original Falcon on my Amiga 500. It felt like magic after years of playing F15 Strike Eagle on the Apple IIc. Hearing real sound effects kicking in the afterburner and getting too close to the ground ("Pull Up! Pull Up!") were all so satisfying. I remember being so excited when Falcon 3.0 came out. But it just felt like a let down. The graphics were amazing for the time and it seem…

Having been the kid who loved to geek out over flight sims, and then the adult who was fortunate enough to have flown military jets, I find the trend for uber-realistic military sims like DCS and such kind of sad in a way. I mean, the software itself is impressive. But the idea of grown adults geeking out over old versions of the NATOPS and trying to develop tactics and such is frankly cringe. You're never going to g…

Long-time Navy jet jock finds it "cringe" when people try to get a little break from the stresses of their life by attempting in a very small way to emulate what he achieved.

I get your point but come on man, ease up. At least remember that some of those DCS-playing wage slaves helped fund your adventures.

Post reply on HN