Main Menu

3D Tie Fighter Demo

Started by Vectrex32, October 20, 2016, 11:00:28 AM

Previous topic - Next topic

Vectrex32

While adding 3D graphics features to the Vectrex32, I wrote a BASIC program to demo them. The program allowed you to create Tie fighters (like in the original vector graphics Star Wars arcade game) on the screen and rotate them. But there was a problem: the Tie fighter is such a complex drawing that the Vectrex exhibits the dreaded pen drift, and one side of the Tie fighter starts oscillating, being drawn in a slightly different position in each frame.

So I switched from Tie fighters to pyramids and that's what I included on the Vectrex32's USB drive (see the program Demo3D.bas).

However, some people might want to experiment with the Tie fighter or use it as a code example, so I'm posting it here. You must have Vectrex32 version 1.10 or later to use this.

- Bob


Minestorm

Can you do some videos ? (I've sent my cart back to you).


Thanks

Vectrex32

I've been thinking about it. I don't feel like I have a lot of material for a video yet.

- Bob

Vectrex32

I made a few tweaks to the Tie Fighter demo:

  • - The frame rate is higher, so there's less flickering
  • - I added parameters to the TieFighter function so you instead of hexagonal wings and octagonal pods, you can use other shapes (e.g. square wings and hexagonal pods). With fewer lines to draw, maybe there will be less pen drift.

The higher frame rate also seems to have reduced pen drift a bit, though I don't understand why that would be. Unfortunately, there's still a noticeable wobble in the second wing.

I've attached the code.

- Bob

bug88


hi Bob, would also love to see some videos if you do get the chance at some point

have a good day!