Page 1 of 1

changing video mode in ps2tut_02a

Posted: Sun Aug 03, 2008 1:57 am
by NoobWithBoobs
Hello all,
I am tryin to learn all this, it seems the default video mode is PAL,cuz I changed the image displayed,and it shows fine in pcsx2 ,which indicates it is running in PAL mode,but my ntsc ps2 rolls the image.
So which file and what do I change for the video mode?
Ive read the pdf,over and over,and im not clear still,it seems i should be using the gs init() function ,but not sure which file contains that. the gs.h?

p.s. i am refering to the example ps2tut_02a

Posted: Sun Aug 03, 2008 3:32 am
by Lukasz
In g2.c change

Code: Select all

gs_set_crtc(NON_INTERLACED, v->ntsc_pal, FRAME);
to

Code: Select all

gs_set_crtc(NON_INTERLACED, NTSC, FRAME);
This will hardcode the video mode to NTSC. As an alternative you can change the vmodes[] struct in the top g2.c

Recompiling the code might require some work, as the tutorials are from very beginning of ps2dev :-)

Posted: Sun Aug 03, 2008 3:46 am
by NoobWithBoobs
thanks again!
Seemed to work,got an error on my first try to compile,but got it goin in pcsx2,and it said it was running in ntsc mode.

Posted: Mon Aug 04, 2008 5:47 am
by LBGSHI
noobwithboobs: Nice to see you're really getting into PS2 dev; it's good to see new blood from time to time.

Lukasz: She (or he?) is using the PS2Tut set I included in the compilable compilation I put together; source has been updated for compatibility with the latest PS2SDK.