by Simon Price (36 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (6 Votes)
# IMPORTANT - COMPILE THE PROGRAM BEFORE RUNNING #
This is a 3D starfield made using Win32 API but NO DIRECTX or other graphics DLLs. To give you some idea of the power, on my 400 Mhz PC it can render and animate 10000 stars at over 30 FPS! The # of stars is variable. The program is designed for pure speed and therefore does not have many features. This program is an example of
1/ Using pointers in VB
2/ Getting direct access to GDI graphics memory
3/ 3D to 2D transformations
4/ Fast manipulation of huge amounts of data (the stars coords)
I know there are lots of other starfields on VBC, but I dare to claim that this is the fastest! Please leave feedback and rate the code.