Is there an easy way to render to just half of the screen for a split screen mode. I’d like to add two player split screen completitive mode to gravity battle.
Would glViewport() sort this for me?
Kev
Is there an easy way to render to just half of the screen for a split screen mode. I’d like to add two player split screen completitive mode to gravity battle.
Would glViewport() sort this for me?
Kev
Or maybe the Scissor test? Do most cards support that?
Kev
Both scissor and viewport will do the job, and they’re both 1.1 features so will work on anything (might even be 1.0 features). But they both work slightly differently.
Changing the viewport changes the actual coord system, so an ortho view (for example) will be stretched to fill the new viewport area. Using scissor is basically a rectangular clip area, your coord system stays the same. Both come in handy, but viewport is probably what you want here.
One thing to be careful of is that its only a geometric clipping, not per-pixel. While thats fine most of the time, you can actually draw outside the area with some operations (like wide lines or raster stuff). If you really want to prevent that you can use a stencil test as well, but thats probably overkill.
jME can already do that ;D
DP
Yes, accept I’m working in 2D 
DP, really, I’m going to use jME next, really I am 
Kev
KevGlass try to say Webstart and see if 3xblah also appears magically 
eh?
Kev
ROFL 
[quote]KevGlass try to say Webstart and see if 3xblah also appears magically 
[/quote]
Explaning a joke is like dissecting a frog, noone cares and the frog dies.
The funny part is that noone gets this phrase in danish. Cause we dont dissects frogs in scool (as all US people apparently does in all high scool movies). So the phrase, thats also meant as a joke, dies and becómes a proof in itself of what it tries to joke about…
Now THATS funny 
I thought it was incredibly funny:)
Here’s another cross-culture example, and in recent times one of the funniest things I’ve heard someone say: The set-up is I kidded a Finnish friend and acused him of being a “workaholic”, to which he replied “I suspect they’re putting workahol in our drinks here.” Absolutely brilliant and nothing a native English speaker could have created. Cheers Antti!
Bill