3d wire frame animated spaceship

For Scene Demos that display animations, graphics, and music. Also for tech demos of graphics capability of VERA or the audio capabilities of the PSG, FM, or PCM audio channels.
Post Reply
User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

3d wire frame animated spaceship

Post 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




 


Attachments
3d wire frame animated spaceship
3d wire frame animated spaceship
Screenshot_20200910_013222.png (26.68 KiB) Viewed 720 times
3d wire frame animated spaceship
3d wire frame animated spaceship
Screenshot_20200910_013222.png (8.22 KiB) Viewed 720 times
3d wire frame animated spaceship
3d wire frame animated spaceship
Screenshot_20200910_013222.png (7.86 KiB) Viewed 720 times
3d wire frame animated spaceship
3d wire frame animated spaceship
Screenshot_20200907_035540.png (7.27 KiB) Viewed 720 times
cobramk3-gfx.prg
3d wire frame animated spaceship
(4.33 KiB) Downloaded 152 times
cobramk3-gfx.prg
3d wire frame animated spaceship
(3.34 KiB) Downloaded 133 times
cobramk3-gfx.prg
3d wire frame animated spaceship
(2.89 KiB) Downloaded 135 times
cube3d-gfx.prg
3d wire frame animated spaceship
(2.49 KiB) Downloaded 133 times
Post Reply