Page 1 of 1

3d wire frame animated spaceship

Posted: Mon Sep 07, 2020 2:00 am
by desertfish


3d animated Cobra MK3 ship from Elite!  Uses 16 bits integer math and has hidden-line removal..




This is an almost 1-to-1 conversion of the same program I wrote for the C64, but it runs a lot faster on the CommanderX16 ?




Here is the (prog8) source code https://github.com/irmen/prog8/blob/master/examples/cx16/cobramk3-gfx.p8




 




I haven't figured out how to wait for the Vertical blank yet, to reduce the flickering perhaps...



Hidden line removal added