4 ms·
The lines are always drawn vertically from the point of view of the viewport, so they're always aligned to pixels. This does limit the rotation allowed before
by pjc50 6y ago
The lines are always drawn vertically from the point of view of the viewport, so they're always aligned to pixels.
This does limit the rotation allowed before the user starts to notice!
- s-macke 6y agoAuthor here. That is exactly what is going on here. I just move the horizon line up and down. This works very well as long as the rotation remains small. That is also the reason, why Comanche was a helicopter game and not an airplane game.
- degenerate 6y agoI played Comanche on a Sony VAIO display laptop at Circuit City for hours when I was young (my dad worked there). The speed and detail was indeed mind blowing back then, thanks for your excellent writeup and examples on how it worked!
- JKCalhoun 6y agoYeah, I've written this code twice now after seeing the algorithm described years ago in an article. I did add my own "skew" parameter that would fake a little bit of horizon roll (skew by shifting up and down the column-renders to the screen along a shallow diagonal ... if you know what I mean). If you kept it small it looked like roll and added a sense of realism to the motion.
- deleted 6y ago[deleted]