Advertisement

Results for "Author: peter wilson"

ASP_Volume2 #39075
A 3D Shoot-em-up using heat seeking missles.

Have fun flying around in 3D whilst shooting heat-seeking rockets at a UFO. Pure VB; no DirectX or OpenGL; I did all the maths myself. This is *** VERSION 8 *** - if you want to understand this code, I suggest you start with version 2 which is available on PlanetSourceCode... just search for "Peter Wilson" under the Visual Basic section. * The 'heat-seeking' rockets always point at the UFO. * The 'heat-seeking' rockets only have a short fuel supply, so after the fuel is exhausted they tumble back to Earth. * This is a quick-and-nasty submission.... there is heaps of unused code in here. * There's a few extra 3D models in the 'xfiles' folder - it's pretty easy to substitute values. * There's comments everywhere... I suggest stepping through the application using the F8 key (instead of pressing f5) * I promise to clean this up, and make a good game out of it... or something. I'm getting to the stage where I need to redesign my data structures a little better to accomodate the particle effects (like smoke, and bullets etc.)

ASP_Volume2 #39378
A 3D Studio v6.0 beta

Learn how to create your own 3D graphics library without using OpenGL or DirectX. This 3D application allows you to load DirectX data files into the application and view them in 3D. The virtual camera is cantered on the origin (although you can change this). Use the mouse to move the virtual camera around the object. This 3D application uses a Right-Handed Coordinate system (as opposed to DirectX that uses a left-handed coordinate system). The 3D maths is based on industry recognized standards as found in 'Computer Graphics Principles and Practice, Foley*vanDam*Feiner*Hughes'. The 3D maths uses column-vector notation and is very stable; it won't change too much in the future, so this would be a good project to get familiar with. This is a solid project that I will be improving on. I've listed the code as intermediate as I don't think its too hard to follow. Comments are everywhere. For those of you familiar with my previous works (look them up), this one does not have any fancy music or animation as it's focus is somewhat more serious.

ASP_Volume3 #59610
A 2D game - Froggies, a game of leap frog.

Simple game of leap-frog suitable for all ages. Uses multi-dimension arrays, images and bitmaps, drag-n-drop, simple game logic, auto-creation of new swamps, registry setting! Unlike other games, this one has a well-rounded finish to it, including help file. Code is commented, and does not assume too much VB knowledge. If you are not too good at Arrays, then you may need a quick refresher course, otherwise this is a good learning project for them.

ASP_Volume3 #59611
Radar Simulation

This is a simple radar simulation. The radar sweeps around in a circle looking for aircraft using the 'Dot Product'. Once it finds the aircraft it remembers it's location and plots it on the scope. The aircrafts last known location will then gradually fade until the next time it gets hit. If you swing the radar too fast you will miss an aircraft (just like a real radar unit). This radar demo was inspired by the following two submissions: 1) Title: Air Traffic Control Simulator Author: seyi Ogunbanjo http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=66211&lngWId=1 2) Title: A Radar Screen Author: Kenneth Foster http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=66278&lngWId=1

ASP_Volume3 #59612
A Vacuum Fluorescent Display Simulator v1.0

This is a small application designed to mimick the look of Vacuum Fluorescent Displays (VFD). Use my VFD print method to enhance the look and feel of your next sci-fi game.

ASP_Volume3 #59613
A collision avoidance system for games using DotProduct.

Demonstrates how to code an intelligent early warning collision detection system for a simple game of Asteroids. Uses matrix multiplication, vector maths and clearly demonstrates an excellent use for the DotProduct between two vectors. I placed this in the games section, because this is the start of a game, however I wanted to show you my debugging code before I pull it all out, as this debugging code very clearly demonstrates how to use the DotProduct between vectors. Making a good game is sometimes about Maths!

ASP_Volume3 #59614
A Matrix Multiplication Lesson using the game Asteroids

Originally started off as a lesson in Matrix Multiplication using 3D vectors; And by "3D vectors", I don't mean 3D computer graphics... I mean "vectors". I was actually half way through coding a 3D computer graphics program, when I decided I needed a refresher course in matrix multiplication... for you see to do 3D graphics, I actually use "4D vectors". Confused? Well... so was I, so I decided to drop back a dimension and learn all over from "2D graphics using 3D vectors", so that I could understand "3D graphics using 4D vectors". Anyway... so the matrix math is going well, when I think to myself, "Hmmm... maybe I should create an Asteroids game" Well... I'm half-way through debugging the AI routine for the enemy spaceships, when I decide that with all of my debugging graphics turned on, it looked kind of cool, so I thought you would want to see it before I pull out all the debugging graphics. The actually Asteroids game will probably be finished in another month or so. I don't want to release it until I've got a kick-ass AI routine for the enemy space ships (basically I want to make computer controlled ships, just as smart as human players)

ASP_Volume3 #59615
A 2D Rotation Lesson - Fly a UFO

I can't believe how much trouble I went to, to show you how to rotate objects (like a space-ship) around the Z-Axis. This should be a great learning project for people wanting to create their own vector-graphics games... like Asteroids.

ASP_Volume3 #59616
Convert Fonts to Vector Graphics using GetGlyphOutline

This application can convert any True-Type Font into a series of polygons made entirely of straight lines defined by vertices. Possible Uses: Create your own 3D font applications ala "Xara 3D" style. Design assistance with large signs, corporate logos or banners. Create vector-style game graphics based on exotic fonts (ie. Wingdings)

ASP_Volume3 #59617
TechniColor Mouse Trails

Simple mouse trails using recursion. Move the mouse over the form to display a colourful rainbow of colours that follow the mouse movement. You'll enjoy this, if you like watching pretty colours dance about the screen.

ASP_Volume3 #59618
TechniColor Mouse Trails v 2

TechniColor Mouse Trails using recursion. Move the mouse over the form to display a colourful rainbow of colours that follow the mouse movement. Click the mouse button to change the Offset values (and thus the patterns). You'll enjoy this, if you like watching pretty colours dance about the screen.

ASP_Volume3 #59619
A Simple Solar System Simulator, v1.0

This Solar System Simulator is a very simple application designed to teach you how to rotate/animate planets around a sun, but also how to rotate moons around their planets. I have also implemented a very simple yet effective zoom functionality simply by changing the form's scale settings. The position, timing and distances are not to scale. You will need to change these if you want an accurate system, however everything is commented so it should be no problem.

ASP_Volume3 #59620
A 2D Asteroids Game

Smooth animation, excellent wire frame graphics, No BitBlt, DirectX or OpenGL. Pure VB. You probably won't believe what a nice game you can make with VB. Very smooth vector-style graphics with unique pan & zoom functionality. This game is not finished, but you can still have fun. It's certainly not your average Asteroids game.

ASP_Volume3 #59621
A 3D Lesson v4, Advanced

Learn how to program in 3D using only Visual Basic - no OpenGL or DirectX. The major update in version 4 is the synchronization of MIDI music (2001 - A Space Odyssey) and 3D animation. I also wanted to experiment with some opening credits at the beginning. You can press the ESC key to skip the animation. The other major change is the various Camera variables have been cleaned up and placed into their own data type: 'mdr3DCamera'. You might also notice that I've created some additional data types (ie. mdr3DObject, mdrPolyhedron & mdrVertex). This is in anticipation of getting rid of the dots, and creating some lines drawings... should be exciting! Thanks go to everyone that has voted for my previous versions (look them up, they are easier than this one). The votes have helped me continue to improve this 3D application.

ASP_Volume3 #59622
A 3D Lesson v3.1, Moderate

This is version three of my simple 3D lessons. The major update in this lesson, is the Virtual Camera code. You can move the camera anywhere (using the keyboard), and make the camera 'look at' a certain point. Only Dots between the Near and Far Clipping distances are visible. This 3D lesson includes some very advanced 'mathematical' topics, however I have listed the code as 'Moderate' or 'Intermediate' because you don't need to understand the advanced parts to have fun with this project.

ASP_Volume3 #59623
A 3D Lesson v2, Very Simple

This 3D application shows you just how simple 3D computer graphics can be to program. Pure VB code and the only mathematics is division. Simple hey? Objects that are far away, appear smaller. Thus simply divide our 3D object's X and Y coordinates by it's Z coordinate. NewPixelX = X / Z NewPixelY = Y / Z That's all you need for 3D computer graphics, and that's all this program does.

ASP_Volume3 #59624
RGB Colour Wheel

You may never again want to use VB's internal RGB function, after seeing how much simpler and better this HSV function is. Use the full colour spectrum in new and exciting ways, that are simply difficult (if not impossible) using VB's internal RGB function. It saddens me to realize that Microsoft programmers could have easily placed this routine into VB, but didn't. I wonder if this functionality is even in .NET yet? Anyone?

ASP_Volume3 #59625
A 2D DotProduct Demonstration

This application is a simple and clear demonstration of the DotProduct in two dimensions. The DotProduct is almost always used by game programmers, especially in shooting games like Unreal Tournament. The DotProduct allows the programmers to decide is the user is pointing his weapon at a monster, a pickup or a door. The DotProduct is also used for Back-Face culling and lighting effects. You can even use the DotProduct for real world physics calculations like "Newton's Conservation of Momentum". In fact, this is the real reason I created this little demo. I'm currently working on my Asteroids game (also on PSC) and wanted the Asteroids to bounce off each other convincingly. Since angles were involved, I figured I could probably use the DotProduct to save on calculations. I needed a little refresher course in the DotProduct, thus this project was born. If you are not interested in the DotProduct, you may be interested in the Splash screen. It has a built in Ant Simulator which probably deserves it's own submission.

ASP_Volume3 #59626
Asteroid Collisions (using the DotProduct)

Watch Asteroids floating around in space bouncing off each other with the same realistic precision as billiard balls. No DirectX or OpenGL, just pure VB code that produces the most wonderful, mesmerizing zero-G display. This application builds on two of my previous submissions, namely the Asteroids game, and the DotProduct demonstration. It would be trivial to turn this into a 2D game of billiards. It’s also easy to change the shape of the asteroids into perfect speheres by adjusting variables in the “CreateRandomShapeAsteroid” routine. Comments are scattered everywhere throughout the code. As always, compile for speed. Press the space-bar to reset.

ASP_Volume3 #59627
A 2D Rotation Demo using SIN() and COS()

This VB code graphically shows the relationship between Sine and Cosine when drawing a cirlce. In my humble opinion, I think drawing a circle is the first thing all graphics programmers need to learn. Although it may look like I'm just plotting a single dot in a cirlce, there is another way of looking at this. You could say I am rotating the dot around it's origin. This is exactly the sort of code you will need to rotate a space ship around it's origin, ala 'Asteroids' style. In all my years of programming, I've never once seen an application such as this one. Hopefully, it will clear up what SIN and COS actually look like when plotted.

Languages
Top Categories
Global Discovery