Important alert: (current site time 7/16/2013 2:56:56 AM EDT)
 

winzip icon

CUBOID CITY

Email
Submitted on: 12/4/2003 11:01:30 AM
By: Robert Rayment 
Level: Intermediate
User Rating: By 85 Users
Compatibility: VB 6.0
Views: 28498
author picture
(About the author)
 
     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.

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :CUBOID CITY
'**************************************
Not many
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 68 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

12/4/2003 1:34:01 PMCoding Genius

Very impressive! Great work as always Robert. Code is clean and fast, and this is a great unique program. Definetly worth a 5!
(If this comment was disrespectful, please report it.)

 
12/4/2003 3:03:34 PMLight Templer

Hi Robert, nice idea! I like it. It's fast ind IDE, too! 5 from me for. Regards LiTe
(If this comment was disrespectful, please report it.)

 
12/4/2003 5:41:50 PMAmer Khreim

Great work
(If this comment was disrespectful, please report it.)

 
12/4/2003 6:59:55 PMPaul E Collingwood

Great stuff!
(If this comment was disrespectful, please report it.)

 
12/4/2003 7:05:06 PMChris Seelbach

Wow!
(If this comment was disrespectful, please report it.)

 
12/4/2003 8:25:10 PMCodeClub

well, if you do the rendering, i will give you 100 balls
(If this comment was disrespectful, please report it.)

 
12/4/2003 9:35:52 PMgonchuki_

that's plain awesome! you really deserve to win this month.
(If this comment was disrespectful, please report it.)

 
12/4/2003 10:01:29 PMMil-X Pro

Yes, you deserve to win this month, or at least get an excellent votes cause this program is different from others. ;)
(If this comment was disrespectful, please report it.)

 
12/4/2003 10:02:54 PMCodeClub

and if it is wrapped into library, that would be better;)
(If this comment was disrespectful, please report it.)

 
12/5/2003 2:15:18 AMHaru Glory

interesting...5 globes in advance.
(If this comment was disrespectful, please report it.)

 
12/5/2003 3:08:25 AMVeeJay

5 Globes!!!! But what does (Exe WinXP) mean. Will this, or won't this run on XP? Just a Question. But you are truly an awsome programmer...
(If this comment was disrespectful, please report it.)

 
12/5/2003 3:51:53 AMRobert Rayment

Thanks for votes. VeeJay: my VB6 is on a PC with Win98, (Exe WinXP) means I have tested that the compiled programs run OK on a PC with WinXP.
(If this comment was disrespectful, please report it.)

 
12/5/2003 6:31:05 AMNick Ridley

nice job, 5 globes
(If this comment was disrespectful, please report it.)

 
12/5/2003 7:03:38 AMPijn in Reet

awesome!
(If this comment was disrespectful, please report it.)

 
12/5/2003 7:32:20 AMdafhi

every programmer's visual paradise
(If this comment was disrespectful, please report it.)

 
12/5/2003 7:42:27 AMPeter H

Very nice Robert, a well deserved contest winner coming up!
(If this comment was disrespectful, please report it.)

 
12/5/2003 9:48:27 AMLaVolpe

Mr. Rayment, impressive!
(If this comment was disrespectful, please report it.)

 
12/5/2003 12:05:21 PMJerrame Hertz

Way Above Average
(If this comment was disrespectful, please report it.)

 
12/5/2003 1:56:07 PMBattleStorm

Nice!
(If this comment was disrespectful, please report it.)

 
12/5/2003 2:04:35 PMLaVolpe

Mr. Rayment, found your easter egg :)
(If this comment was disrespectful, please report it.)

 
12/5/2003 3:00:30 PMChristopher J. Bradley

Very nice programming Robert. Thank you for sharing that with the rest of the programming community. Keep it up.
(If this comment was disrespectful, please report it.)

 
12/5/2003 3:27:26 PM_cha0s_

Very nice... 5 for me :)
(If this comment was disrespectful, please report it.)

 
12/5/2003 8:42:58 PMJatopian

8-O oh my... I'll have to keep this... 5
(If this comment was disrespectful, please report it.)

 
12/5/2003 10:12:26 PMMil-X Pro

" Ex-serious VB programmer, now just for fun.". Hmm..., out of context question, how old are you, Mr. Rayment. (if you don't mind to answer). You are very good in VB. And this prog. got 30 votes sor far with 5/5 from our fellow coders. Hope you win this month, good luck.
(If this comment was disrespectful, please report it.)

 
12/6/2003 9:16:40 AMElias Barbosa

Very cool!! 5 planets from me...
(If this comment was disrespectful, please report it.)

 
12/7/2003 2:19:09 PMKeith Weimer

City1 reminded me of Jurassic Park. Very nice.
(If this comment was disrespectful, please report it.)

 
12/7/2003 4:24:27 PMPaul Caton

Robert, you've been busy!!! 5g's
(If this comment was disrespectful, please report it.)

 
12/8/2003 2:06:58 AMMArio Flores G

can this be render with textures like dx does? well not exactly but can it? ;) ...any way very good implementation...
(If this comment was disrespectful, please report it.)

 
12/8/2003 2:58:25 AMRobert Rayment

MArio Flores G: Rendering, in principle yes. The coords of all quadrilaterals are known so they could be filled in & from normals, hidden planes & lighting could be done. It's a question of speed and probably needs DX to make that adequate for thousands of shapes. But I'm sure, if you wanted to, you're in a much better position than me to write a DirectX version. About 33% of DX progs fail on my PC.
(If this comment was disrespectful, please report it.)

 
12/9/2003 2:11:51 PMAli Akbar

Great Code. 5 from me.
(If this comment was disrespectful, please report it.)

 
12/9/2003 6:47:58 PMUlli

Great stuff, Robert... Not much gardening to do during this time of the year, hmmm? :-)
(If this comment was disrespectful, please report it.)

 
12/10/2003 9:55:40 AMCodeFester

Some cool stuff to absorb here... 5 christmas ballz for you... great as always; thanks for posting.
(If this comment was disrespectful, please report it.)

 
12/10/2003 3:32:23 PMMad Compie

Ok, that's worth a 5, not?
(If this comment was disrespectful, please report it.)

 
12/17/2003 7:00:42 PMAlexandru Ionescu

Great job Robert!!

Alex Ionescu
(If this comment was disrespectful, please report it.)

 
12/28/2003 4:57:53 PMFred.cpp

excellent work Mr. Rayment. I wonder If everyone there found this so usefull as I do:P
you got my five balls
(If this comment was disrespectful, please report it.)

 
12/30/2003 1:09:57 AMMasino Sinaga

Good job. 5 globes.
(If this comment was disrespectful, please report it.)

 
12/30/2003 1:17:35 AMMasino Sinaga

You deserve medals for the winner of the month. Not only the winner of the month, but the winner of the year!
(If this comment was disrespectful, please report it.)

 
1/14/2004 7:03:09 PMGiannis_B

Just perfect (code and effect)...
5 shiny, big, great, awesome globes...
(If this comment was disrespectful, please report it.)

 
1/16/2004 6:31:38 AMAlpha Binary

wonderful!
make the rendering part and you can sell it! lol
thanks for sharing and keep up the gr8 works ;)
(If this comment was disrespectful, please report it.)

 
2/24/2004 9:46:21 AMHappy Lobster

Excellent code. Good documentation. Interesting idea. Thanks for sharing. 5 globes
(If this comment was disrespectful, please report it.)

 
7/6/2004 11:19:33 AMjames kahl

Excellent stuff as always!
(If this comment was disrespectful, please report it.)

 
7/8/2004 6:35:15 PMJon Wheeler

Easily one of the best submission i've ever seen, if not THE best.....awesome
(If this comment was disrespectful, please report it.)

 
7/16/2004 7:15:40 PMPaul Turcksin

What else can I say? Just a humble "Thanks".
(If this comment was disrespectful, please report it.)

 
7/6/2005 4:25:37 PMMajed A.Khaznadar

Not so bad!

(If this comment was disrespectful, please report it.)

 
12/19/2005 9:35:51 AMshnurman

very cool !!!
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.