Skip to content

mbeltoft/elite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elite

Animate spaceships from Elite

This repository builds on tsoding's "One Formula That Demystifies 3D Graphics" repository https://github.com/tsoding/formula.

The video behind the repository explains how very basic 3D projection onto a 2D screen works.

I wanted to view the wireframe spaceships from the Elite space computer game, which I found here: https://elite.bbcelite.com/deep_dives/ship_blueprints.html

The format was not directly usable, but after converting into arrays of points and edges I added scaling of the points in the models to the "unit" world and the ship models displayed fine.

I've added displaying the ship models as solid objects, just like the old Elite game.

Visibility of each face in the ship model is determined using a dot product between the face normal and the camera vector, and then only visible faces are drawn.

Screenshot of Cobra spaceship from Elite.

About

Animate spaceships from Elite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors