Author Topic: 3D Tie Fighter Demo  (Read 891 times)

Vectrex32

  • Administrator
  • Full Member
  • *****
  • Posts: 105
    • View Profile
3D Tie Fighter Demo
« on: October 20, 2016, 11:00:28 AM »
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

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 3D Tie Fighter Demo
« Reply #1 on: October 21, 2016, 11:08:53 AM »
Can you do some videos ? (I've sent my cart back to you).


Thanks

Vectrex32

  • Administrator
  • Full Member
  • *****
  • Posts: 105
    • View Profile
Re: 3D Tie Fighter Demo
« Reply #2 on: October 21, 2016, 09:23:57 PM »
I've been thinking about it. I don't feel like I have a lot of material for a video yet.

- Bob

Vectrex32

  • Administrator
  • Full Member
  • *****
  • Posts: 105
    • View Profile
Re: 3D Tie Fighter Demo
« Reply #3 on: November 14, 2016, 06:56:04 PM »
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

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: 3D Tie Fighter Demo
« Reply #4 on: November 24, 2016, 09:27:18 PM »

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

have a good day!