F18 Interceptor: Building my favorite old Amiga game

I would say it’s definitely the fact that you are doing calculations so far away from the origin.
I have a list of “smallest steps” that can be represented here:

At 32km, the difference between each step is ~2cm!
And that will only compound as, of course, there are calculations made with these numbers.

f: 30000  next: 30000.001953125  diff: 0.00195312

Uggh. Life was so much easier when you could just write pixels yourself.

If we’re talking old school rendering, it is very likely that you would have the same problem with overflowing the fixed point math, so the case would still need to be handled.

The suggestion is to move the sensitive calculations back to origin.
E.g. for each sensitive object, translate them back close to origin, and place the camera accordingly and render.
In this case, it may perhaps suffice with moving the airplane back to origin.

I hope this helps!

1 Like