VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



3D spaceimproved

by JoshD (13 Submissions)
Category: Games
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

A demo of an incomplete 3d engine for a strategy (space) game. It features a "sky box"(cylinder of stars) and the ability to load different models (with points, lines, faces and 2d sprites[eg. for planets]). Yet to implement filled faces and click detection. Can someone help me with this. When the user clicks on the screen I want to detect where it is in 3d space (it always be on the same plane as the planets [horizontal plane 15 below 0]).
Tell me how it runs on your computer. I get about 20 on my 1Ghz (uncompiled). Leave a comment/suggestion and PLEASE vote if you like it.
Controls are now:
Left, right, up and down: strafe around y plane.
w,s: move up and down.
a,d: spin.
r,f: look, up/down.
I've done this kind of control because of the intended genre (obviously it won't br keyboard operated.
Now backface removal is implemented, i might try to make this more efficient though.
Next up I will add filled faces, shading(ie angle of face determines face colour), and implement painters algorithm. This simply determins which face is fartest away and draws it first etc.

API Declarations
StretchBlt

Rate 3D spaceimproved

Upload

Download this snippet    Add to My Saved Code

3D spaceimproved Comments

No comments have been posted about 3D spaceimproved. Why not be the first to post a comment about 3D spaceimproved.

Post your comment

Subject:
Message:
0/1000 characters