Playstation 2 Linux Games Programming

 

 (The new site can be found here )

 

I lecture on the BSc and MSc Computer Games Technology courses in The School of Computing and Creative Technologies at The University of Abertay Dundee (UK). My teaching interests are mainly associated with programming games consoles; I've programmed the Sony Playstation 1 Net Yaroze for a number of years and more recently have moved to programming the Playstation 2 Linux Kit. At Abertay we have two games console programming laboratories, one containing PlayStation 2 Linux Kits the other containing Playstation 1 Net Yarozes. These pages hope to help those of you who would like to get started with games programming using the Playstation 2 Linux Kit.

 

If you have any comment on these tutorials, I can be contacted via the email address at the bottom of this page. If you don’t know what the Playstation 2 Linux kit is then visit http://playstation2-linux.com/.

 

I would like to thank:

 

Jonathan Hobson (kazan) for providing some of the program code and text.

Alex Mole (lordbosh) for providing the controller pad code.

Maarten Hofman for providing the Audio code.

Steven Osman (sauce) for developing and making available SPS2.

And Sony for making the PlayStation2 Linux Kit Available.

 

For the majority of these tutorials you will need the Direct PS2 Access Environment which can be obtained from https://playstation2-linux.com/projects/sps2.

 

One final word – these tutorials are not coded in the highly optimised manner that you might find in professional game code. The tutorials are meant to illustrate certain methods and techniques and are therefore written in an instructive manner that should enlighten the reader.

 

Have fun.

 

(Note: The manuals referred to in the text of the tutorials can be found in the directory sm_pdf which is in the root directory of DVD 1 that comes with the Kit.)

 

 

PlayStation2 In Higher Education - So You Want To Be A Games Programmer? - Read Atricle.

The PS2 Direct Memory Access Controller - Read Atricle.

Using the DMAC in Games Programming - Read Atricle.

 

A selection of PS2-Linux games and demos can be found - here.

 

 

Tutorial

sps2dev-0.4.0

 Screen Shots

Getting Started

Download Code

 

Controllers

Download Code

 

Drawing Graphics

Download Code

Screen Shot

Developing With Microsoft Visual C++ .NET

Download Code

Screen Shot

Using The DMAC

Download Code

Screen Shot

PS2 Z-Buffer

Download Code

Screen Shot

Simple Game

Download Code

Screen Shot

Using DMAC Tags

Download Code

 

DMAC Packet Stitching

Download Code

Screen Shot

2D Texture Mapping

Download Code

Screen Shot

2D Sprite Movement & Animation

Download Code

Screen Shot

2D Sprite Movement With Angles

Download Code

Screen Shot

2D Sprite Movement With Matrices (3D?)

Download Code

Screen Shot

Understanding The World Matrix

Download Code

Screen Shot

Palletised Textures

Download Code

Screen Shot

Rendering Text

Download Code

Screen Shot

Rendering Text With In-Built SPS2 Functions

Download Code

Screen Shot

Using a Performance Timer

Download Code

Screen Shot

Using Inline Assembly

Download Code

Screen Shot

Using Vector Unit 0 In MACRO Mode

Download Code

Screen Shot

2D Collision Detection and Response

Download Code

Screen Shot

SPS2 Wrapper Class

Download Code

Screen Shot

Introducing The Third Dimension

Download Code

 

Viewing In Three Dimensions

Download Code

 

Putting The 3D Components Together

Download Code

Screen Shot

Perspective Correct Texture Mapping

Download Code

Screen Shot

A 3D Model Loader

Download Code

Screen Shot

Viewing and Manipulating a Model in 3D

Download Code

Screen Shot

Sending Geometry Data Via Path 2 (VIF1)

Download Code

Screen Shot

Sending Texture Data Via Path 2 (VIF1)

Download Code

Screen Shot

A simple VU1 Micro Program (PATH 1)

Download Code

Screen Shot

Vector Unit Command Line Pre-Processor (VCL)

Download Code

Screen Shot

Simple Vertex Transformation With VU1

Download Code

Screen Shot

2D Sprite Rotation Using VU1

Download Code

Screen Shot

Capturing The Screen to a File

Download Code

Screen Shot

Simple Matrix Transformation with VU1

Download Code

Screen Shot

Using Audio Under PS2 Linux

Download Code

 

 

 

(These tutorials and accompanying program code are used at your own risk. The author accepts no responsibility for any damage caused by running these programs.)

 

 

h.s.fortuna@abertay.ac.uk