by Robert Rayment (69 Submissions)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (85 Votes)
CUBOID CITY by Robert Rayment. Demo of what can be done with wire-frame cuboids, using pure VB & a couple of APIs for creating & animating scenes. Several thousand cuboids can be happily handled but make sure to compile the animation program!. Two progs, one to draw cuboid pictures (including random mazes) and the other to use the output files (*.ccc) and animate them. There are lots of options to help with drawing - too many to describe here. The animation program uses planar perspective for speed with mostly pure VB. Speed & direction set by distance of cursor from center of display, eye (camera) level and block heights changeable, collison detection and reaching the pyramid in the mazes explodes all. These progs provide a start for a full 3D wire-frame drawing program. Example ccc files included. See Notes. (Exe tested on WinXP) Win98. Zip 115 KB.
Assumes
Just run
Code Returns
Spec graphic files
API DeclarationsNot many
Download CUBOID CITY (112 KB)