Path: chuka.playstation.co.uk!news From: Robert Swan Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: split-screen? Date: Mon, 23 Feb 1998 13:07:51 +0000 Organization: I wish! Lines: 40 Message-ID: <34F174A7.1DA0@mdx.ac.uk> References: <6cjs0r$m1u1@emeka.playstation.co.uk> <34ED8958.2773@mdx.ac.uk> <34F15DA4.5CE9@127.0.0.1> NNTP-Posting-Host: nova.mdx.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.5 sun4u) > Your method is simpler than the one SCEE posted, although I can't get it > to work. If I put in the PutDrawEnv() the game flickers, well what it > actually > does is a bit weird, the OT is drawn, then there is a black frame.. > although > I haven't called GsSwapDispBuff(), if I take the PutDrawEnv() out, then > everything > works fine (non-split screen of course!). That sounds like a problem I did have, but I solved through trial and error. Obviously, that isn't a great way of approaching things, but there are a couple of things that might be wrong- 1) Um, I might have put up the version that doesn't work properly! I'll check this later tonight (Monday) 2) The routine doesn't take into account the positions of your double buffers in memory. To make the program sipler, I assumed (probably unfairly) that the buffer screens were of res (320, 240) and located at (0,0) and (0,240) in VRAM. Even if this isn't the problem, I'll rewrite it to automaticaly read the location of these screens. Also, trying to edit the InitSplitScreen() function coudl cause problems like that. 3) Does the updating of the game take more than one Vsync? (ie, updates less than 50 times a second) I'm not sure if that would cause a problem as I haven't tested it extensively, but I'll check 4) There might be other synchronisation problems with such things as queuing the drawing of more than one OT. (Notice I don't have a command to wait for the drawing of the first OT to finish before I tell it to draw the 2nd OT) I can check this easily. Other than those... um, not sure! Because I have a problem with attachments from email, you could put up the code onto your web page, Email me, and I'll have download tham and have a look and try to sort it out (if it isn't problems 1 or 2 above). I'll be checking probs 3 and 4 tonight, so there might be a solution on Tuesday Robert rs108@mdx.ac.uk http://www.netyaroze-europe.com/~middex2