2D/3D – Game

I am currently working on learning and developing a 2D/3D game. The 3D game look will be something like that of FPS (First Person Shooter) e.g. KingPin, Unreal Tourment, but the first game will be a 2D game scrolling game.

I am in the learning process of openGL and SDL

This is a demonstration of some aspects of OpenGL and SDL that I have learned. I shall be updating the demonstration probably on a weekly basis.

Inner Solar System

The movement has been implemented so that the mouse moves the screen center point, with the mouse left/right button moving the eye position backwards/forwarding accordlying.

Linux Download here (Binary)

I shall include the source code once I have got it in a nice format

This is a screen shot of the demostration

Inner Solar System (OpenGL + SDL)
Inner Solar System (OpenGL + SDL)

Room/Street

This is a demostration of a 3D room, with the same movement with the mouse as above. At the minute there is only a room, but I shall be implementing a street and also collision detection.

Linux Download here (Binary)

I shall include the source code once I have got it in a nice format

This is a screen shot of the Room/Street, the top left part of the image is the room from the outside with the rest of the picture the inside of the room.

Room test (OpenGL + SDL)
Room test (OpenGL + SDL)

Stars

This demonstration of stars is a test to see how to get the frustum rule to work. The frustum rule is that you are looking at through the top of a pyramid, this allows only the details that you can see are sent to the graphics card, thus allowing for speed increase.

The screen shot of the stars demostartion is just basically stars of different colours on a black backdrop. So could not see a reason for displaying this.
Linux source download with KDevelop files
Linux Download here (Binary)

Octree’s

A basic definition of the Octree idea is here

Octree (OpenGL + SDL)
Octree (OpenGL + SDL)

The basic idea of Octree’s is to free up the bus to the graphics card. This is achieved with only sending data that is in view (with the frustum law above) but instead of checking every point inside the 3d area, split the 3d area into blocks of 8 (octree’s) and only test if any of the 8 blocks are in view and thus send the data that is associated with the viewable blocks to the graphics card.

Linux exectable (Binary)
Linux source code (KDevelop files)

Leave a Reply

Your email address will not be published. Required fields are marked *