Thursday, February 1, 2007

We've moved

Hello,

Thanks for joining us on our journey.

I've decided that a Blog is no way to create a tutorial of this nature.

Right now, it's at http://DrRoyal.bravehost.com

However, it may be moving if we get the hosting we desire.


Dr. Dave 'Wheels' Royal

Wednesday, January 31, 2007

Moving to website, don't like blog for a tut.

I think I need to find a free hosting for my tutorials. I don't like the idea of blogging, and then having to use the google document publish to put a link to files. So, while I find someplace to host the site, please play with the lesson01. Maybe use rand() to create random pixels with random colors?

Also, see if you can change the joystick code to detect a different keypress.

Find the site that lists all the axis' and buttons for the PS3.


Dr. Royal

Monday, January 29, 2007

Starting PS3 Linx Programming

Hello,

I'm just learning how to program the PS3 in Linux. I'm using Yellowdog Linux, so if you're using another distribution, you may need to change a few things.

First off, in order to compile my examples, you're going to have to change some things, as there are some errors in the YDL distribution I'm using (2.6.16) as of 1/29/2007.

YDL distribution 1208 does not install 'locate' by default, so I recommend you install the RPM.

It's located on the DVD in /Yellowdog/RPMS, and is named mlocate...

I have to assume some things, so I am making the assumption that you know how to install an RPM and that you know how to find things using locate and the tab key.

You'll need to edit /lib/modules/2.6.16.../build/include/linux/input.h

Find the line, kernel_ulong_t, and the whole structure. Before the structure add...
#ifdef __KERNEL__

And after the structure add...
#endif

I'll discuss this next time. For now, see if you can use the putPixel routine to get some pixels to display on the screen. (Hint, put your code in the Render Scene section of the main loop.)

Source code can be found here...
http://docs.google.com/View?docid=dx44z4v_1hfh3jc&revision=_published

Makefile can be found here...
http://docs.google.com/View?docid=dx44z4v_2hpsnx7&revision=_published

Feel free to email me at DrRoyal@gmail.com


Dr. Dave 'Wheels' Royal