forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

changing video mode in ps2tut_02a

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
NoobWithBoobs



Joined: 16 Jul 2008
Posts: 23

PostPosted: Sun Aug 03, 2008 1:57 am    Post subject: changing video mode in ps2tut_02a Reply with quote

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
Back to top
View user's profile Send private message
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Sun Aug 03, 2008 3:32 am    Post subject: Reply with quote

In g2.c change

Code:
gs_set_crtc(NON_INTERLACED, v->ntsc_pal, FRAME);


to

Code:
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 :-)
_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
NoobWithBoobs



Joined: 16 Jul 2008
Posts: 23

PostPosted: Sun Aug 03, 2008 3:46 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Mon Aug 04, 2008 5:47 am    Post subject: Reply with quote

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.
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group