3D Scene on the PSP

During our university course, one of the tasks was to create a 3D scene on the PSP using only samples provided by the devkit documentation. The original specifications were to include: at least 2 “.gmo” models; a movable camera and lighting. 

My original idea was to create a set of table and chairs and then develop it from there. However once looking for table models, I came across a pool table model. This reminded me of a pool demo I created in XNA to teach myself that library, I decided creating a similar game would help me learn. Even though I wasn’t able to complete my demo, due to limited time on the PSP devkits / other assignments due, I managed to get the basics completed. The table model is available at: http://www.max-realms.com/modules/wfdownloads/singlefile.php?cid=36&lid=819. The models for the pool cue and ball I created myself.

After creating a “loadModel” and “drawModel” method importing models was fairly easy – I could show new models through little effort. I started off by adding in a table and a pool cue. Once this was done, I added lighting from above to simulate the lighting that would generally be on a pool table. I also added a movable camera which involved rotating the world axis on the X and Y plane based on input from the directional pad.

After this I added a ball which bounced around the table, and another which remained stationary. The user could then “hit” the ball using the directional buttons; using the pad would have been a better choice, but as the specifications required a smooth camera I decided the pad would be best for that instead. Once the ball had been hit, the calculations would be done to determine the balls direction. 

I also added some sound in the background as a last minute feature after finding a sample for it in the documentation Sony provided.

Comments

Popular posts from this blog

3D Game Engine Using DirectX11 (C++)

MIPS Graphics Library

3D Renderer (C++)